Added virtualenv and tox installation
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>
This commit is contained in:
parent
b5a543fcfe
commit
5985479ecf
@ -23,6 +23,17 @@
|
||||
- name: Setup Tempest Data Directory
|
||||
include_role:
|
||||
name: setup-tempest-data-dir
|
||||
|
||||
# NOTE: devstack jobs are failing on Run Tempest task
|
||||
# it is because tox command is not found. Adding 'ensure-tox'
|
||||
# role here to make sure that tox is installed and it
|
||||
# will not break the tempest tests.
|
||||
- name: Ensure tox is installed
|
||||
include_role:
|
||||
name: ensure-tox
|
||||
vars:
|
||||
ensure_global_symlinks: True
|
||||
|
||||
- name: ACL devstack files
|
||||
include_role:
|
||||
name: acl-devstack-files
|
||||
@ -38,6 +49,7 @@
|
||||
- name: Generate tempest configuration file based on cloud credentials
|
||||
include_role:
|
||||
name: generate-tempestconf-file-cloud
|
||||
|
||||
# run-tempest role is inherited from openstack/tempest project
|
||||
- name: Run Tempest Tests
|
||||
include_role:
|
||||
|
@ -23,12 +23,24 @@
|
||||
name: setup-devstack-source-dirs
|
||||
# setup-tempest-* and acl-devstack-files roles are inherited from
|
||||
# openstack/tempest project
|
||||
|
||||
- name: Setup Tempest Run Directory
|
||||
include_role:
|
||||
name: setup-tempest-run-dir
|
||||
- name: Setup Tempest Data Directory
|
||||
include_role:
|
||||
name: setup-tempest-data-dir
|
||||
|
||||
# NOTE: packstack jobs are failing on Run Tempest task
|
||||
# it is because tox command is not found. Adding 'ensure-tox'
|
||||
# role here to make sure that tox is installed and it
|
||||
# will not break the tempest tests.
|
||||
- name: Ensure tox is installed
|
||||
include_role:
|
||||
name: ensure-tox
|
||||
vars:
|
||||
ensure_global_symlinks: True
|
||||
|
||||
- name: ACL devstack files
|
||||
include_role:
|
||||
name: acl-devstack-files
|
||||
|
@ -1,4 +1,8 @@
|
||||
- block:
|
||||
- name: Ensure python-virtualenv is present
|
||||
include_role:
|
||||
name: ensure-virtualenv
|
||||
|
||||
- name: Create tempest venv with latest pip, setuptools and pbr
|
||||
pip:
|
||||
virtualenv: "{{ virtualenvs.tempest }}"
|
||||
|
@ -1,4 +1,8 @@
|
||||
- block:
|
||||
- name: Ensure python-virtualenv is present
|
||||
include_role:
|
||||
name: ensure-virtualenv
|
||||
|
||||
- name: Create python-tempestconf venv with latest pip, setuptools and pbr
|
||||
pip:
|
||||
virtualenv: "{{ virtualenvs.tempestconf }}"
|
||||
|
@ -2,6 +2,10 @@
|
||||
- debug:
|
||||
var: source_credentials_commands
|
||||
|
||||
- name: Ensure python-virtualenv is present
|
||||
include_role:
|
||||
name: ensure-virtualenv
|
||||
|
||||
- name: Create python-tempestconf venv with latest pip, setuptools and pbr
|
||||
pip:
|
||||
virtualenv: "{{ virtualenvs.tempestconf }}"
|
||||
|
@ -1,3 +1,7 @@
|
||||
- name: Ensure tox is installed
|
||||
include_role:
|
||||
name: ensure-tox
|
||||
|
||||
- name: Prepare tempest venv
|
||||
become: yes
|
||||
command: tox -r --notest -efull
|
||||
|
Loading…
x
Reference in New Issue
Block a user