blob: 8e26913cdd041c0b89044e177da408f2c9eadbd9 [file] [log] [blame]
Luigi Toscanoc6215bd2020-02-21 12:42:58 +01001# Playbook imported from https://opendev.org/openstack/tempest/src/tag/23.0.0/playbooks/devstack-tempest.yaml
2
3# Changes that run through devstack-tempest are likely to have an impact on
4# the devstack part of the job, so we keep devstack in the main play to
5# avoid zuul retrying on legitimate failures.
6- hosts: all
7 roles:
8 - orchestrate-devstack
9
10# We run tests only on one node, regardless how many nodes are in the system
11- hosts: tempest
12 environment:
13 # This enviroment variable is used by the optional tempest-gabbi
14 # job provided by the gabbi-tempest plugin. It can be safely ignored
15 # if that plugin is not being used.
16 GABBI_TEMPEST_PATH: "{{ gabbi_tempest_path | default('') }}"
17 roles:
18 - setup-tempest-run-dir
19 - setup-tempest-data-dir
20 - acl-devstack-files
21 - role: run-tempest
Luigi Toscano5ae79242020-04-17 13:31:30 +020022 # ignore the errors for now, so that run-cinderlib-tests is always executed
Luigi Toscanoc6215bd2020-02-21 12:42:58 +010023 ignore_errors: yes
24 - role: change-devstack-data-owner
25 devstack_data_subdir_changed: cinder
26 devstack_data_subdir_owner: zuul
27 - role: run-cinderlib-tests
Luigi Toscano0ca94af2020-06-26 09:21:07 +020028 tox_install_siblings: false
Luigi Toscanoc6215bd2020-02-21 12:42:58 +010029 cinderlib_base_dir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/cinderlib'].src_dir }}"
Luigi Toscano5ae79242020-04-17 13:31:30 +020030 post_tasks:
31 - name: Fail if the first tempest run did not work
32 fail:
33 msg: "tempest run returned with an error"
34 when: tempest_run_result is defined and tempest_run_result.rc != 0