09f84cbeab
When cert generation during upgrade was fixed it was omitted to also redirect stderr to the log file. This commit fixes that. Introduced-By: Ib257f8342c392b78e02ae31588ce5c6f8943f5b8 Closes-Bug: #2078364 Signed-off-by: Sven Kieske <kieske@osism.tech> Change-Id: I43ca7d782bdcc53dcbc59dcf82ac1daa48e85ad5
27 lines
781 B
Bash
Executable File
27 lines
781 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o xtrace
|
|
set -o errexit
|
|
|
|
# Enable unbuffered output for Ansible in Jenkins.
|
|
export PYTHONUNBUFFERED=1
|
|
|
|
|
|
function upgrade {
|
|
RAW_INVENTORY=/etc/kolla/inventory
|
|
|
|
source $KOLLA_ANSIBLE_VENV_PATH/bin/activate
|
|
|
|
kolla-ansible -i ${RAW_INVENTORY} -vvv certificates &> /tmp/logs/ansible/certificates
|
|
kolla-ansible -i ${RAW_INVENTORY} -vvv prechecks &> /tmp/logs/ansible/upgrade-prechecks
|
|
kolla-ansible -i ${RAW_INVENTORY} -vvv pull &> /tmp/logs/ansible/pull-upgrade
|
|
kolla-ansible -i ${RAW_INVENTORY} -vvv upgrade &> /tmp/logs/ansible/upgrade
|
|
|
|
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
|
|
}
|
|
|
|
|
|
upgrade
|