Merge "CI: Run validate-config at the end of deploy"
This commit is contained in:
commit
786a2e226e
@ -23,6 +23,10 @@ function deploy {
|
|||||||
kolla-ansible -i ${RAW_INVENTORY} -vvv pull &> /tmp/logs/ansible/pull
|
kolla-ansible -i ${RAW_INVENTORY} -vvv pull &> /tmp/logs/ansible/pull
|
||||||
kolla-ansible -i ${RAW_INVENTORY} -vvv deploy &> /tmp/logs/ansible/deploy
|
kolla-ansible -i ${RAW_INVENTORY} -vvv deploy &> /tmp/logs/ansible/deploy
|
||||||
kolla-ansible -i ${RAW_INVENTORY} -vvv post-deploy &> /tmp/logs/ansible/post-deploy
|
kolla-ansible -i ${RAW_INVENTORY} -vvv post-deploy &> /tmp/logs/ansible/post-deploy
|
||||||
|
|
||||||
|
if [[ $HAS_UPGRADE == 'no' ]]; then
|
||||||
|
kolla-ansible -i ${RAW_INVENTORY} -vvv validate-config &> /tmp/logs/ansible/validate-config
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -388,6 +388,7 @@
|
|||||||
environment:
|
environment:
|
||||||
TLS_ENABLED: "{{ tls_enabled }}"
|
TLS_ENABLED: "{{ tls_enabled }}"
|
||||||
KOLLA_ANSIBLE_VENV_PATH: "{{ kolla_ansible_venv_path }}"
|
KOLLA_ANSIBLE_VENV_PATH: "{{ kolla_ansible_venv_path }}"
|
||||||
|
HAS_UPGRADE: "{{ is_upgrade | bool | ternary('yes', 'no') }}"
|
||||||
|
|
||||||
# NOTE(yoctozepto): this is nice as the first step after the deployment
|
# NOTE(yoctozepto): this is nice as the first step after the deployment
|
||||||
# because it waits for the services to stabilize well enough so that
|
# because it waits for the services to stabilize well enough so that
|
||||||
|
@ -20,6 +20,8 @@ function upgrade {
|
|||||||
# TODO(yoctozepto): Remove after Zed.
|
# TODO(yoctozepto): Remove after Zed.
|
||||||
kolla-ansible -i ${RAW_INVENTORY} -vvv deploy --tags keystone &> /tmp/logs/ansible/upgrade-deploy
|
kolla-ansible -i ${RAW_INVENTORY} -vvv deploy --tags keystone &> /tmp/logs/ansible/upgrade-deploy
|
||||||
kolla-ansible -i ${RAW_INVENTORY} -vvv post-deploy &> /tmp/logs/ansible/upgrade-post-deploy
|
kolla-ansible -i ${RAW_INVENTORY} -vvv post-deploy &> /tmp/logs/ansible/upgrade-post-deploy
|
||||||
|
|
||||||
|
kolla-ansible -i ${RAW_INVENTORY} -vvv validate-config &> /tmp/logs/ansible/validate-config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user