diff options
author | 2017-12-13 09:29:45 +0000 | |
---|---|---|
committer | 2017-12-13 09:32:20 +0000 | |
commit | 55916bc06fe49653441c899f9982e16ef1ef894b (patch) | |
tree | fcb449614ffe6282d5bb0e51cd0637243896fd56 /bifrost | |
parent | 304a45bbdc52aa5e7f4374d027e4e17f42d2cd75 (diff) |
xci: Reduce noise during bootstrapping
There is too much noise when XCI is cloning repositories, installing
packages etc so lets make the console output somewhat more readable.
Change-Id: I15667e0349f943ad5488daf0e3cea9336c9166d1
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'bifrost')
-rwxr-xr-x | bifrost/scripts/bifrost-provision.sh | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/bifrost/scripts/bifrost-provision.sh b/bifrost/scripts/bifrost-provision.sh index 0a2987dd..d705f31f 100755 --- a/bifrost/scripts/bifrost-provision.sh +++ b/bifrost/scripts/bifrost-provision.sh @@ -7,7 +7,7 @@ # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -set -eux +set -eu set -o pipefail export PYTHONUNBUFFERED=1 @@ -71,7 +71,7 @@ export EXTRA_DIB_ELEMENTS=${EXTRA_DIB_ELEMENTS:-"openssh-server"} if [ ${USE_VENV} = "true" ]; then export VENV=/opt/stack/bifrost - $SCRIPT_HOME/env-setup.sh + $SCRIPT_HOME/env-setup.sh &>/dev/null # Note(cinerama): activate is not compatible with "set -u"; # disable it just for this line. set +u @@ -80,29 +80,13 @@ if [ ${USE_VENV} = "true" ]; then ANSIBLE=${VENV}/bin/ansible-playbook ENABLE_VENV="true" else - $SCRIPT_HOME/env-setup.sh + $SCRIPT_HOME/env-setup.sh &>/dev/null ANSIBLE=${HOME}/.local/bin/ansible-playbook fi -logs_on_exit() { - $SCRIPT_HOME/collect-test-info.sh -} -trap logs_on_exit EXIT - # Change working directory cd $BIFROST_HOME/playbooks -# Syntax check of dynamic inventory test path -for task in syntax-check list-tasks; do - ${ANSIBLE} ${XCI_ANSIBLE_VERBOSITY} -i inventory/localhost \ - test-bifrost-create-vm.yaml \ - --${task} - ${ANSIBLE} ${XCI_ANSIBLE_VERBOSITY} -i inventory/localhost \ - ${TEST_PLAYBOOK} \ - --${task} \ - -e testing_user=${TESTING_USER} -done - # NOTE(hwoarang): Disable selinux as we are hitting issues with it from time to # time. Remove this when Centos7 is a proper gate on bifrost so we know that # selinux works as expected. |