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: Ibcfe3d69705833b0c743e6303feb351a464abdcf
This commit is contained in:
Jean-Philippe Evrard 2018-01-19 14:52:04 +00:00
parent 0f26b461f8
commit ae5def5f8f

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 swift
shell: |
source {{ upgrade_venv_folder }}/bin/activate
./openstack-ansible-ops/bowling_ball/rolling_tests.py swift
args:
chdir: "{{ working_dir }}"
executable: /bin/bash
async: 100000
poll: 0
environment: