Andrea Frittoli (andreaf) | 7d5445d | 2017-10-03 18:43:05 +0100 | [diff] [blame] | 1 | # 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 Frittoli | 688f36e | 2018-02-18 22:27:34 +0000 | [diff] [blame] | 6 | - orchestrate-devstack |
Andrea Frittoli (andreaf) | 7d5445d | 2017-10-03 18:43:05 +0100 | [diff] [blame] | 7 | |
| 8 | # We run tests only on one node, regardless how many nodes are in the system |
| 9 | - hosts: tempest |
Martin Kopec | f62dbc1 | 2019-12-12 00:20:41 +0000 | [diff] [blame] | 10 | 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 | |
| 23 | - name: Run tempest cleanup init-saved-state |
| 24 | include_role: |
| 25 | name: tempest-cleanup |
| 26 | vars: |
| 27 | init_saved_state: true |
Martin Kopec | 05c35eb | 2020-08-12 09:17:35 +0000 | [diff] [blame] | 28 | when: (run_tempest_dry_cleanup is defined and run_tempest_dry_cleanup | bool) or |
| 29 | (run_tempest_cleanup is defined and run_tempest_cleanup | bool) or |
Luigi Dino Tamagnone | 9052dfc | 2023-04-09 15:24:45 +0000 | [diff] [blame^] | 30 | (run_tempest_fail_if_leaked_resources is defined and run_tempest_fail_if_leaked_resources | bool) or |
| 31 | (run_tempest_cleanup_prefix is defined and run_tempest_cleanup_prefix | bool) |
Martin Kopec | f62dbc1 | 2019-12-12 00:20:41 +0000 | [diff] [blame] | 32 | |
Ghanshyam Mann | 1e4cb1d | 2021-04-21 18:25:18 -0500 | [diff] [blame] | 33 | - name: Run Tempest version <= 26.0.0 |
| 34 | include_role: |
| 35 | name: run-tempest-26 |
| 36 | when: (zuul.branch is defined and zuul.branch in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein"]) or |
| 37 | (zuul.override_checkout is defined and zuul.override_checkout in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein"]) |
| 38 | |
Martin Kopec | f62dbc1 | 2019-12-12 00:20:41 +0000 | [diff] [blame] | 39 | - name: Run Tempest |
| 40 | include_role: |
| 41 | name: run-tempest |
Ghanshyam Mann | 1e4cb1d | 2021-04-21 18:25:18 -0500 | [diff] [blame] | 42 | 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 |
| 43 | (zuul.override_checkout is defined and zuul.override_checkout not in ["stable/ocata", "stable/pike", "stable/queens", "stable/rocky", "stable/stein"]) |
Martin Kopec | f62dbc1 | 2019-12-12 00:20:41 +0000 | [diff] [blame] | 44 | |
| 45 | - name: Run tempest cleanup dry-run |
| 46 | include_role: |
| 47 | name: tempest-cleanup |
| 48 | vars: |
| 49 | dry_run: true |
Martin Kopec | 05c35eb | 2020-08-12 09:17:35 +0000 | [diff] [blame] | 50 | when: run_tempest_dry_cleanup is defined and run_tempest_dry_cleanup | bool |
Martin Kopec | f62dbc1 | 2019-12-12 00:20:41 +0000 | [diff] [blame] | 51 | |
| 52 | - name: Run tempest cleanup |
| 53 | include_role: |
| 54 | name: tempest-cleanup |
Martin Kopec | 05c35eb | 2020-08-12 09:17:35 +0000 | [diff] [blame] | 55 | when: run_tempest_cleanup is defined and run_tempest_cleanup | bool |