blob: 5fb1afcb89e4ab6445be346d57e672117f0a050e [file] [log] [blame]
Andrea Frittoli (andreaf)7d5445d2017-10-03 18:43:05 +01001# Changes that run through devstack-tempest are likely to have an impact on
2# the devstack part of the job, so we keep devstack in the main play to
3# avoid zuul retrying on legitimate failures.
4- hosts: all
5 roles:
Andrea Frittoli688f36e2018-02-18 22:27:34 +00006 - orchestrate-devstack
Andrea Frittoli (andreaf)7d5445d2017-10-03 18:43:05 +01007
8# We run tests only on one node, regardless how many nodes are in the system
9- hosts: tempest
Martin Kopecf62dbc12019-12-12 00:20:41 +000010 tasks:
11 - name: Setup Tempest Run Directory
12 include_role:
13 name: setup-tempest-run-dir
14
15 - name: Setup Tempest Data Directory
16 include_role:
17 name: setup-tempest-data-dir
18
19 - name: ACL devstack files
20 include_role:
21 name: acl-devstack-files
22
Martin Kopec450096d2024-02-12 22:40:45 +010023 - name: Set source and destination host
24 include_role:
25 name: set-src-dest-host
26 when: tempest_set_src_dest_host is defined and tempest_set_src_dest_host | bool
27
Martin Kopecf62dbc12019-12-12 00:20:41 +000028 - name: Run tempest cleanup init-saved-state
29 include_role:
30 name: tempest-cleanup
31 vars:
32 init_saved_state: true
Martin Kopec05c35eb2020-08-12 09:17:35 +000033 when: (run_tempest_dry_cleanup is defined and run_tempest_dry_cleanup | bool) or
34 (run_tempest_cleanup is defined and run_tempest_cleanup | bool) or
Luigi Dino Tamagnone9052dfc2023-04-09 15:24:45 +000035 (run_tempest_fail_if_leaked_resources is defined and run_tempest_fail_if_leaked_resources | bool) or
36 (run_tempest_cleanup_prefix is defined and run_tempest_cleanup_prefix | bool)
Martin Kopecf62dbc12019-12-12 00:20:41 +000037
Ghanshyam Mann1e4cb1d2021-04-21 18:25:18 -050038 - name: Run Tempest version <= 26.0.0
39 include_role:
40 name: run-tempest-26
41 when: (zuul.branch is defined and zuul.branch in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein"]) or
42 (zuul.override_checkout is defined and zuul.override_checkout in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein"])
43
Martin Kopecf62dbc12019-12-12 00:20:41 +000044 - name: Run Tempest
45 include_role:
46 name: run-tempest
Ghanshyam Mann1e4cb1d2021-04-21 18:25:18 -050047 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
48 (zuul.override_checkout is defined and zuul.override_checkout not in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein"])
Martin Kopecf62dbc12019-12-12 00:20:41 +000049
50 - name: Run tempest cleanup dry-run
51 include_role:
52 name: tempest-cleanup
53 vars:
54 dry_run: true
Martin Kopec05c35eb2020-08-12 09:17:35 +000055 when: run_tempest_dry_cleanup is defined and run_tempest_dry_cleanup | bool
Martin Kopecf62dbc12019-12-12 00:20:41 +000056
57 - name: Run tempest cleanup
58 include_role:
59 name: tempest-cleanup
Martin Kopec05c35eb2020-08-12 09:17:35 +000060 when: run_tempest_cleanup is defined and run_tempest_cleanup | bool