CI: Keep stderr in ansible logs
Otherwise ara had only the stderr part and logs only the stdout part which made ordered analysis harder. Additionally add -vvv for the bootstrap-servers run. Change-Id: Ia42ac9b90a17245e9df277c40bda24308ebcd11d Signed-off-by: Radosław Piliszek <radoslaw.piliszek@gmail.com>
This commit is contained in:
parent
8b1e637905
commit
b9aa8b38f4
@ -14,7 +14,7 @@ function deploy_bifrost {
|
|||||||
# Deploy the bifrost container.
|
# Deploy the bifrost container.
|
||||||
# TODO(mgoddard): add pull action when we have a local registry service in
|
# TODO(mgoddard): add pull action when we have a local registry service in
|
||||||
# CI.
|
# CI.
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv deploy-bifrost > /tmp/logs/ansible/deploy-bifrost
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv deploy-bifrost &> /tmp/logs/ansible/deploy-bifrost
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,12 +16,12 @@ function deploy {
|
|||||||
#TODO(inc0): Post-deploy complains that /etc/kolla is not writable. Probably we need to include become there
|
#TODO(inc0): Post-deploy complains that /etc/kolla is not writable. Probably we need to include become there
|
||||||
sudo chmod -R 777 /etc/kolla
|
sudo chmod -R 777 /etc/kolla
|
||||||
# Actually do the deployment
|
# Actually do the deployment
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks > /tmp/logs/ansible/deploy-prechecks
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks &> /tmp/logs/ansible/deploy-prechecks
|
||||||
# TODO(jeffrey4l): add pull action when we have a local registry
|
# TODO(jeffrey4l): add pull action when we have a local registry
|
||||||
# service in CI
|
# service in CI
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv deploy > /tmp/logs/ansible/deploy
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv deploy &> /tmp/logs/ansible/deploy
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv post-deploy > /tmp/logs/ansible/post-deploy
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv post-deploy &> /tmp/logs/ansible/post-deploy
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv check > /tmp/logs/ansible/check-deploy
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv check &> /tmp/logs/ansible/check-deploy
|
||||||
. /etc/kolla/admin-openrc.sh
|
. /etc/kolla/admin-openrc.sh
|
||||||
# Wait for service ready
|
# Wait for service ready
|
||||||
sleep 15
|
sleep 15
|
||||||
|
@ -12,9 +12,9 @@ function reconfigure {
|
|||||||
|
|
||||||
# TODO(jeffrey4l): make some configure file change and
|
# TODO(jeffrey4l): make some configure file change and
|
||||||
# trigger a real reconfigure
|
# trigger a real reconfigure
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks > /tmp/logs/ansible/reconfigure-prechecks
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks &> /tmp/logs/ansible/reconfigure-prechecks
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv reconfigure > /tmp/logs/ansible/reconfigure
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv reconfigure &> /tmp/logs/ansible/reconfigure
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv check > /tmp/logs/ansible/check-reconfigure
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv check &> /tmp/logs/ansible/check-reconfigure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ function upgrade_bifrost {
|
|||||||
# CI.
|
# CI.
|
||||||
# TODO(mgoddard): make some configuration file changes and trigger a real
|
# TODO(mgoddard): make some configuration file changes and trigger a real
|
||||||
# upgrade.
|
# upgrade.
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv deploy-bifrost > /tmp/logs/ansible/upgrade-bifrost
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv deploy-bifrost &> /tmp/logs/ansible/upgrade-bifrost
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,11 +11,11 @@ function upgrade {
|
|||||||
RAW_INVENTORY=/etc/kolla/inventory
|
RAW_INVENTORY=/etc/kolla/inventory
|
||||||
|
|
||||||
# TODO(jeffrey4l): need run a real upgrade
|
# TODO(jeffrey4l): need run a real upgrade
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks > /tmp/logs/ansible/upgrade-prechecks
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks &> /tmp/logs/ansible/upgrade-prechecks
|
||||||
# TODO(mgoddard): add pull action when we have a local registry service in
|
# TODO(mgoddard): add pull action when we have a local registry service in
|
||||||
# CI.
|
# CI.
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv upgrade > /tmp/logs/ansible/upgrade
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv upgrade &> /tmp/logs/ansible/upgrade
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv check > /tmp/logs/ansible/check-upgrade
|
tools/kolla-ansible -i ${RAW_INVENTORY} -vvv check &> /tmp/logs/ansible/check-upgrade
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -135,5 +135,5 @@ setup_ansible
|
|||||||
setup_config
|
setup_config
|
||||||
setup_node
|
setup_node
|
||||||
|
|
||||||
tools/kolla-ansible -i ${RAW_INVENTORY} -e ansible_user=$USER bootstrap-servers > /tmp/logs/ansible/bootstrap-servers
|
tools/kolla-ansible -i ${RAW_INVENTORY} -e ansible_user=$USER -vvv bootstrap-servers &> /tmp/logs/ansible/bootstrap-servers
|
||||||
prepare_images
|
prepare_images
|
||||||
|
Loading…
Reference in New Issue
Block a user