From ed1b74a35b05b9f198a5a54f307266f61eac2a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Sun, 15 Mar 2020 15:16:04 +0100 Subject: [PATCH] CI: Avoid tox (and clean up gate setup) We don't need tox nor tell our users to use it when doing kolla builds. Tox is going away from base infra images. It's already gone from aarch64 (arm64) ones. Change-Id: I2eb5203ad93c011b8806f4b6fb56db081c14a2cb --- tests/run.yml | 7 ------- tools/setup_gate.sh | 33 ++++++++++++++++++++------------- 2 files changed, 20 insertions(+), 20 deletions(-) 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