Use a virtualenv in openSUSE CI testing
Currently all of the opensuse 150 jobs are failing due to being unable to install virtualbmc via pip. The failure signature is: Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. The usual solution to this problem is to install Python packages in a virtual environment. This change modifies the zuul CI jobs to use a virtual environment for all openSUSE jobs. Change-Id: I2840ec32cffcaf5d7f32a91907d51c1a500f19f1
This commit is contained in:
parent
ec7d295d3c
commit
ff7621c0d2
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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'}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user