python-tempestconf/playbooks/python-tempestconf-tempest-devstack.yaml
Martin Kopec 448ff51dec Drop py3.6/7, T, U jobs and fix neutron discovery
python 3.6 and 3.7 are dropped (upstream tooling as e.g.
Devstack doesn't support this those anymore) together with
train and ussuri jobs.

refstack-client jobs are non-voting now until a fix on
refstack-client's side has landed. Also victoria jobs are
marked as non-voting because they require a patch on devstack's
side which isn't ready to be merged yet [1].

manila-tempest-plugin needs to be pinned in Victoria and
Wallaby because the plugin requires newer tempest version
than is available there.

The patch also makes neutron version discovery with a not
top level URL, seems like something changed because
the discovery has been failing.

[1] https://review.opendev.org/c/openstack/devstack/+/844774

Change-Id: Ia3d78e84ad9eee515eb8ca017ea84df1fd160929
2022-08-19 09:13:03 +02:00

83 lines
2.5 KiB
YAML

- hosts: all
roles:
# the role is inherited from openstack/devstack project
- run-devstack
- hosts: tempest
vars:
devstack_base_dir: "/opt/stack"
test_demo_user: "{{ test_demo is defined }}"
tasks:
# 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: 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
- name: Edit clouds.yaml file
include_role:
name: tempestconf-workaround-auth-url
- name: Generate tempest configuration file
include_role:
name: generate-tempestconf-file
vars:
create_accounts_file: True
source_credentials_commands: "export HOST_IP={{ ansible_default_ipv4.address }}; source {{ devstack_base_dir }}/devstack/openrc {{ user }} {{ user }}"
- 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:
name: run-tempest
when:
- plugins_paths is not defined
- branch is not defined or (branch is defined and branch not in ["stable/victoria"])
- name: Run Tempest Tests Tempest version <= 26.0.0
include_role:
name: run-tempest-26
when:
- plugins_paths is not defined
- branch is defined
- branch in ["stable/victoria"]
- when: plugins_paths is defined
block:
- name: Install tempest plugins
include_role:
name: install-plugins
- name: Setup Tempest Run Directory
include_role:
name: setup-tempest-run-dir
- name: Run Tempest Tests including plugins
include_role:
name: run-tempest
vars:
tox_envlist: "all"
tempest_test_regex: "{{ test_regex|join('|') }}"
tempest_exclude_regex: "{{ exclude_regex|join('|') }}"