diff --git a/tests/run.yml b/tests/run.yml index bc05b34ea1..78eca77131 100644 --- a/tests/run.yml +++ b/tests/run.yml @@ -60,13 +60,6 @@ when: - ansible_architecture == 'aarch64' - - name: Ensure tox is installed - pip: - name: tox - extra_args: "-c {{ upper_constraints_file }}" - when: need_build_image - become: true - # NOTE(yoctozepto): required to template template_overrides.j2 for Zuul - name: Include kolla Zuul vars if building new images include_vars: diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index b7a6df46cb..7dfae456c8 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -2,11 +2,11 @@ set -o xtrace set -o errexit +set -o pipefail # Enable unbuffered output for Ansible in Jenkins. export PYTHONUNBUFFERED=1 -GIT_PROJECT_DIR=$(mktemp -d) function setup_openstack_clients { # Prepare virtualenv for openstack deployment tests @@ -28,7 +28,11 @@ function setup_openstack_clients { ~/openstackclient-venv/bin/pip install -c $UPPER_CONSTRAINTS ${packages[@]} } -function setup_config { +function prepare_images { + if [[ "${BUILD_IMAGE}" == "False" ]]; then + return + fi + if [[ $SCENARIO != "bifrost" ]]; then GATE_IMAGES="^cron,^fluentd,^glance,^haproxy,^keepalived,^keystone,^kolla-toolbox,^mariadb,^memcached,^neutron,^nova-,^openvswitch,^rabbitmq,^horizon,^chrony,^heat,^placement" else @@ -70,7 +74,8 @@ function setup_config { if [[ "debian" == $BASE_DISTRO ]]; then PUSH="false" fi - cat < /tmp/logs/ansible/bootstrap-servers + prepare_images