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 |
Chris Dent | 9b4c50c | 2018-10-03 10:24:40 +0100 | [diff] [blame] | 10 | environment: |
| 11 | # This enviroment variable is used by the optional tempest-gabbi |
| 12 | # job provided by the gabbi-tempest plugin. It can be safely ignored |
| 13 | # if that plugin is not being used. |
Paul Belanger | 4c7b79a | 2019-03-19 19:24:37 -0400 | [diff] [blame] | 14 | GABBI_TEMPEST_PATH: "{{ gabbi_tempest_path | default('') }}" |
Martin Kopec | f62dbc1 | 2019-12-12 00:20:41 +0000 | [diff] [blame] | 15 | tasks: |
| 16 | - name: Setup Tempest Run Directory |
| 17 | include_role: |
| 18 | name: setup-tempest-run-dir |
| 19 | |
| 20 | - name: Setup Tempest Data Directory |
| 21 | include_role: |
| 22 | name: setup-tempest-data-dir |
| 23 | |
| 24 | - name: ACL devstack files |
| 25 | include_role: |
| 26 | name: acl-devstack-files |
| 27 | |
| 28 | - name: Run tempest cleanup init-saved-state |
| 29 | include_role: |
| 30 | name: tempest-cleanup |
| 31 | vars: |
| 32 | init_saved_state: true |
| 33 | when: |
| 34 | - run_tempest_dry_cleanup is defined |
| 35 | - run_tempest_cleanup is defined |
| 36 | |
| 37 | - name: Run Tempest |
| 38 | include_role: |
| 39 | name: run-tempest |
| 40 | |
| 41 | - name: Run tempest cleanup dry-run |
| 42 | include_role: |
| 43 | name: tempest-cleanup |
| 44 | vars: |
| 45 | dry_run: true |
| 46 | when: |
| 47 | - run_tempest_dry_cleanup is defined |
| 48 | |
| 49 | - name: Run tempest cleanup |
| 50 | include_role: |
| 51 | name: tempest-cleanup |
| 52 | when: run_tempest_cleanup is defined |