diff --git a/playbooks/legacy/bifrost-integration-dhcp/run.yaml b/playbooks/legacy/bifrost-integration-dhcp/run.yaml index c3cd28efe..2562e424c 100644 --- a/playbooks/legacy/bifrost-integration-dhcp/run.yaml +++ b/playbooks/legacy/bifrost-integration-dhcp/run.yaml @@ -66,6 +66,7 @@ openstack/requirements export GIT_BASE=$(pwd) export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + export USE_VENV={{ use_venv | default(false) | bool | lower }} cd openstack/bifrost scripts/test-bifrost-inventory-dhcp.sh executable: /bin/bash diff --git a/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml b/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml index 9dcc6271b..e7906d080 100644 --- a/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml +++ b/playbooks/legacy/bifrost-integration-dibipa-debian/run.yaml @@ -66,6 +66,7 @@ openstack/requirements export GIT_BASE=$(pwd) export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + export USE_VENV={{ use_venv | default(false) | bool | lower }} cd openstack/bifrost scripts/test-bifrost-build-images.sh executable: /bin/bash diff --git a/playbooks/legacy/bifrost-integration-tinyipa/run.yaml b/playbooks/legacy/bifrost-integration-tinyipa/run.yaml index c33439d30..bc710780d 100644 --- a/playbooks/legacy/bifrost-integration-tinyipa/run.yaml +++ b/playbooks/legacy/bifrost-integration-tinyipa/run.yaml @@ -75,6 +75,7 @@ openstack/requirements export GIT_BASE=$(pwd) export UPPER_CONSTRAINTS_FILE=$WORKSPACE/upper-constraints.txt + export USE_VENV={{ use_venv | default(false) | bool | lower }} cd openstack/bifrost "{{ script_name }}" executable: /bin/bash diff --git a/scripts/test-bifrost.sh b/scripts/test-bifrost.sh index 0063e5807..f3d174c6d 100755 --- a/scripts/test-bifrost.sh +++ b/scripts/test-bifrost.sh @@ -8,7 +8,7 @@ BIFROST_HOME=$SCRIPT_HOME/.. ANSIBLE_INSTALL_ROOT=${ANSIBLE_INSTALL_ROOT:-/opt/stack} ENABLE_VENV="false" USE_DHCP="false" -USE_VENV="false" +USE_VENV="${USE_VENV:-false}" BUILD_IMAGE="false" BAREMETAL_DATA_FILE=${BAREMETAL_DATA_FILE:-'/tmp/baremetal.json'} diff --git a/zuul.d/legacy-bifrost-jobs.yaml b/zuul.d/legacy-bifrost-jobs.yaml index 81b20627a..c5e045532 100644 --- a/zuul.d/legacy-bifrost-jobs.yaml +++ b/zuul.d/legacy-bifrost-jobs.yaml @@ -48,11 +48,15 @@ name: bifrost-integration-dhcp-opensuse-423 parent: bifrost-integration-dhcp nodeset: opensuse-423 + vars: + use_venv: true - job: name: bifrost-integration-dhcp-opensuse-150 parent: bifrost-integration-dhcp nodeset: opensuse-150 + vars: + use_venv: true - job: name: bifrost-integration-dibipa-debian @@ -75,11 +79,15 @@ name: bifrost-integration-dibipa-debian-opensuse-423 parent: bifrost-integration-dibipa-debian nodeset: opensuse-423 + vars: + use_venv: true - job: name: bifrost-integration-dibipa-debian-opensuse-150 parent: bifrost-integration-dibipa-debian nodeset: opensuse-150 + vars: + use_venv: true - job: name: bifrost-integration-tinyipa @@ -109,8 +117,12 @@ name: bifrost-integration-tinyipa-opensuse-423 parent: bifrost-integration-tinyipa nodeset: opensuse-423 + vars: + use_venv: true - job: name: bifrost-integration-tinyipa-opensuse-150 parent: bifrost-integration-tinyipa nodeset: opensuse-150 + vars: + use_venv: true