blob: 3b969f294636079dae2fee065abff4bd981fa97b [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
23 - name: Run tempest cleanup init-saved-state
24 include_role:
25 name: tempest-cleanup
26 vars:
27 init_saved_state: true
Martin Kopec05c35eb2020-08-12 09:17:35 +000028 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
30 (run_tempest_fail_if_leaked_resources is defined and run_tempest_fail_if_leaked_resources | bool)
Martin Kopecf62dbc12019-12-12 00:20:41 +000031
32 - name: Run Tempest
33 include_role:
34 name: run-tempest
35
36 - name: Run tempest cleanup dry-run
37 include_role:
38 name: tempest-cleanup
39 vars:
40 dry_run: true
Martin Kopec05c35eb2020-08-12 09:17:35 +000041 when: run_tempest_dry_cleanup is defined and run_tempest_dry_cleanup | bool
Martin Kopecf62dbc12019-12-12 00:20:41 +000042
43 - name: Run tempest cleanup
44 include_role:
45 name: tempest-cleanup
Martin Kopec05c35eb2020-08-12 09:17:35 +000046 when: run_tempest_cleanup is defined and run_tempest_cleanup | bool