2017-10-03 18:43:05 +01:00
# Changes that run through devstack-tempest are likely to have an impact on
# the devstack part of the job, so we keep devstack in the main play to
# avoid zuul retrying on legitimate failures.
- hosts : all
roles :
2018-02-18 22:27:34 +00:00
- orchestrate-devstack
2017-10-03 18:43:05 +01:00
# We run tests only on one node, regardless how many nodes are in the system
- hosts : tempest
2019-12-12 00:20:41 +00:00
tasks :
- name : Setup Tempest Run Directory
include_role :
name : setup-tempest-run-dir
- name : Setup Tempest Data Directory
include_role :
name : setup-tempest-data-dir
- name : ACL devstack files
include_role :
name : acl-devstack-files
2024-02-12 22:40:45 +01:00
- name : Set source and destination host
include_role :
name : set-src-dest-host
when : tempest_set_src_dest_host is defined and tempest_set_src_dest_host | bool
2019-12-12 00:20:41 +00:00
- name : Run tempest cleanup init-saved-state
include_role :
name : tempest-cleanup
vars :
init_saved_state : true
2020-08-12 09:17:35 +00:00
when : (run_tempest_dry_cleanup is defined and run_tempest_dry_cleanup | bool) or
(run_tempest_cleanup is defined and run_tempest_cleanup | bool) or
2023-04-09 15:24:45 +00:00
(run_tempest_fail_if_leaked_resources is defined and run_tempest_fail_if_leaked_resources | bool) or
(run_tempest_cleanup_prefix is defined and run_tempest_cleanup_prefix | bool)
2019-12-12 00:20:41 +00:00
2021-04-21 18:25:18 -05:00
- name : Run Tempest version <= 26.0.0
include_role :
name : run-tempest-26
when : (zuul.branch is defined and zuul.branch in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein"]) or
(zuul.override_checkout is defined and zuul.override_checkout in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein"])
2019-12-12 00:20:41 +00:00
- name : Run Tempest
include_role :
name : run-tempest
2021-04-21 18:25:18 -05:00
when : (zuul.branch is defined and zuul.branch not in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein"] and zuul.override_checkout is not defined) or
(zuul.override_checkout is defined and zuul.override_checkout not in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein"])
2019-12-12 00:20:41 +00:00
- name : Run tempest cleanup dry-run
include_role :
name : tempest-cleanup
vars :
dry_run : true
2020-08-12 09:17:35 +00:00
when : run_tempest_dry_cleanup is defined and run_tempest_dry_cleanup | bool
2019-12-12 00:20:41 +00:00
- name : Run tempest cleanup
include_role :
name : tempest-cleanup
2020-08-12 09:17:35 +00:00
when : run_tempest_cleanup is defined and run_tempest_cleanup | bool