blob: 4539bf90e32b5a234b92adb4bd171800ac1f0e58 [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
Chris Dent9b4c50c2018-10-03 10:24:40 +010010 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 Belanger4c7b79a2019-03-19 19:24:37 -040014 GABBI_TEMPEST_PATH: "{{ gabbi_tempest_path | default('') }}"
Martin Kopecf62dbc12019-12-12 00:20:41 +000015 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
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
35 (run_tempest_fail_if_leaked_resources is defined and run_tempest_fail_if_leaked_resources | bool)
Martin Kopecf62dbc12019-12-12 00:20:41 +000036
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
Martin Kopec05c35eb2020-08-12 09:17:35 +000046 when: run_tempest_dry_cleanup is defined and run_tempest_dry_cleanup | bool
Martin Kopecf62dbc12019-12-12 00:20:41 +000047
48 - name: Run tempest cleanup
49 include_role:
50 name: tempest-cleanup
Martin Kopec05c35eb2020-08-12 09:17:35 +000051 when: run_tempest_cleanup is defined and run_tempest_cleanup | bool