blob: 7ee74110d401ed22652446d6c7ff81eff9d9f719 [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
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