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: Ib3d3d14a3a6222f4362def29b4765cf5bad3d285
This commit is contained in:
parent
4e03149ce2
commit
712a9078da
@ -19,18 +19,32 @@
|
|||||||
become: true
|
become: true
|
||||||
vars:
|
vars:
|
||||||
working_dir: "{{ lookup('env', 'WORKING_DIR') }}"
|
working_dir: "{{ lookup('env', 'WORKING_DIR') }}"
|
||||||
|
upgrade_venv_folder: "/openstack/venvs/upgrades"
|
||||||
|
upgrade_test_packages:
|
||||||
|
- "python-keystoneclient"
|
||||||
|
- "python-glanceclient"
|
||||||
|
- "openstacksdk"
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install openstack sdk
|
- name: Install openstack sdk
|
||||||
pip:
|
pip:
|
||||||
name: "{{ item }}"
|
name: "{{ upgrade_test_packages }}"
|
||||||
with_items:
|
virtualenv: "{{ upgrade_venv_folder }}"
|
||||||
- "python-openstacksdk"
|
virtualenv_site_packages: "no"
|
||||||
- "python-keystoneclient"
|
extra_args: >-
|
||||||
- "python-glanceclient"
|
{{ (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
|
- name: Run rolling test script
|
||||||
command: ./openstack-ansible-ops/bowling_ball/rolling_tests.py neutron
|
shell: |
|
||||||
|
source {{ upgrade_venv_folder }}/bin/activate
|
||||||
|
./openstack-ansible-ops/bowling_ball/rolling_tests.py neutron
|
||||||
args:
|
args:
|
||||||
chdir: "{{ working_dir }}"
|
chdir: "{{ working_dir }}"
|
||||||
|
executable: /bin/bash
|
||||||
async: 100000
|
async: 100000
|
||||||
poll: 0
|
poll: 0
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user