diff options
| author | Mark Goddard <mark@stackhpc.com> | 2020-02-25 10:22:27 +0000 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2020-02-25 11:21:06 +0000 |
| commit | d8733b290e298be098c044fa5c92030faea7c798 (patch) | |
| tree | d3d4e6e4063cf6ed4cd2cbd9a1fe41f5519f3b4d /tools | |
| parent | c00e1be43ec2f367849124f1d9d9a515edb01f5f (diff) | |
| download | kolla-ansible-d8733b290e298be098c044fa5c92030faea7c798.tar.gz kolla-ansible-d8733b290e298be098c044fa5c92030faea7c798.zip | |
CI: Use upper constraints when installing clients
Clients are starting to release versions that don't support Python 2.
The ironic scenario is currently failing on stable branches for this
reason.
Use upper constraints to avoid installing these new versions on stable
branches.
Change-Id: I4f91b53cbf2297d70da4b54d6c402c1427aacdd9
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/setup_gate.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh index d30d829ea..c06a0bb88 100755 --- a/tools/setup_gate.sh +++ b/tools/setup_gate.sh @@ -10,22 +10,22 @@ GIT_PROJECT_DIR=$(mktemp -d) function setup_openstack_clients { # Prepare virtualenv for openstack deployment tests - if [[ "debian" == $BASE_DISTRO ]]; then - sudo apt -y install python3-venv - fi - python3 -m venv ~/openstackclient-venv - ~/openstackclient-venv/bin/pip install -U pip - ~/openstackclient-venv/bin/pip install python-openstackclient - ~/openstackclient-venv/bin/pip install python-heatclient + local packages=(python-openstackclient python-heatclient) if [[ $SCENARIO == zun ]]; then - ~/openstackclient-venv/bin/pip install python-zunclient + packages+=(python-zunclient) fi if [[ $SCENARIO == ironic ]]; then - ~/openstackclient-venv/bin/pip install python-ironicclient + packages+=(python-ironicclient) fi if [[ $SCENARIO == masakari ]]; then - ~/openstackclient-venv/bin/pip install python-masakariclient + packages+=(python-masakariclient) fi + if [[ "debian" == $BASE_DISTRO ]]; then + sudo apt -y install python3-venv + fi + python3 -m venv ~/openstackclient-venv + ~/openstackclient-venv/bin/pip install -U pip + ~/openstackclient-venv/bin/pip install -c $UPPER_CONSTRAINTS ${packages[@]} } function setup_config { |
