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
Depends-On: Ia78ea53a99923844f40fb4e9fe22ec0da4b0c335
This commit is contained in:
Jean-Philippe Evrard 2018-01-19 14:55:10 +00:00
parent 08c563e93c
commit 82fd8b6109
2 changed files with 25 additions and 7 deletions

View File

@ -15,10 +15,14 @@
tempest_run: yes
# Cinder repo is needed because it's imported from cinder-tempest-plugin
tempest_plugins:
- name: cinder
repo: https://git.openstack.org/openstack/cinder
branch: master
- name: cinder-plugins
repo: https://git.openstack.org/openstack/cinder-tempest-plugin
branch: master
tempest_test_whitelist:
- cinder.tests.tempest.api.volume.*
- cinder_tempest_plugin.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: