5985479ecf
python-tempestconf-tempest-devstack-* jobs were failing due to missing virtualenv and tox. Added 'ensure-tox' role in packstack and devstack deployment playbook. To make sure that tox is installed and it will not break the tempest tests run. Change-Id: I554eb41b2e070d86c3d9f6e807a973f70d6b5f83 Signed-off-by: Amol Kahat <amolkahat@gmail.com>
28 lines
725 B
YAML
28 lines
725 B
YAML
- name: Ensure tox is installed
|
|
include_role:
|
|
name: ensure-tox
|
|
|
|
- name: Prepare tempest venv
|
|
become: yes
|
|
command: tox -r --notest -efull
|
|
args:
|
|
chdir: "{{devstack_base_dir}}/tempest"
|
|
|
|
- name: Install plugins
|
|
become: yes
|
|
command:
|
|
cmd: >
|
|
tox -evenv-tempest --
|
|
pip install {{ item }}
|
|
--constraint {{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt
|
|
with_items: "{{ plugins_paths }}"
|
|
args:
|
|
chdir: "{{devstack_base_dir}}/tempest"
|
|
when: plugins_paths is defined
|
|
|
|
- name: List installed tempest plugins
|
|
become: yes
|
|
command: tox -evenv-tempest -- tempest list-plugins
|
|
args:
|
|
chdir: "{{devstack_base_dir}}/tempest"
|