Fix upgrade test

openstacksdk was updated to 0.10.0 which has a different
connection.Connection object, which doesn't take our auth_url.

We should respect the constraints, install the tooling in a venv,
and restrict to a known version of the sdk until more robust code
is written.

Change-Id: I0fb7872dbc2c295616c319cd7e373dd8e868b028
(cherry picked from commit 82fd8b6109)
This commit is contained in:
Jean-Philippe Evrard 2018-01-19 14:55:10 +00:00
parent 94241fe2b1
commit f887837cf1
2 changed files with 21 additions and 7 deletions

View File

@ -18,7 +18,7 @@ tempest_run: yes
tempest_plugins:
- name: cinder
repo: https://git.openstack.org/openstack/cinder
branch: master
branch: stable/pike
tempest_test_whitelist:
- cinder.tests.tempest.api.volume.*

View File

@ -21,18 +21,32 @@
vars:
test_keystone_host: openstack1
working_dir: "{{ lookup('env', 'WORKING_DIR') }}"
upgrade_venv_folder: "/openstack/venvs/upgrades"
upgrade_test_packages:
- "python-keystoneclient"
- "python-glanceclient"
- "openstacksdk"
tasks:
- name: Install openstack sdk
pip:
name: "{{ item }}"
with_items:
- python-openstacksdk
- python-keystoneclient
- python-glanceclient
name: "{{ upgrade_test_packages }}"
virtualenv: "{{ upgrade_venv_folder }}"
virtualenv_site_packages: "no"
extra_args: >-
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
{{ pip_install_options | default('') }}
register: install_packages
until: install_packages | success
retries: 5
delay: 2
- name: Run rolling test script
command: ./openstack-ansible-ops/bowling_ball/rolling_tests.py cinder
shell: |
source {{ upgrade_venv_folder }}/bin/activate
./openstack-ansible-ops/bowling_ball/rolling_tests.py cinder
args:
chdir: "{{ working_dir }}"
executable: /bin/bash
async: 100000
poll: 0
environment: