Luigi Toscano | c6215bd | 2020-02-21 12:42:58 +0100 | [diff] [blame] | 1 | # 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 Toscano | 5ae7924 | 2020-04-17 13:31:30 +0200 | [diff] [blame] | 22 | # ignore the errors for now, so that run-cinderlib-tests is always executed |
Luigi Toscano | c6215bd | 2020-02-21 12:42:58 +0100 | [diff] [blame] | 23 | 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 Toscano | 0ca94af | 2020-06-26 09:21:07 +0200 | [diff] [blame] | 28 | tox_install_siblings: false |
Luigi Toscano | c6215bd | 2020-02-21 12:42:58 +0100 | [diff] [blame] | 29 | cinderlib_base_dir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/cinderlib'].src_dir }}" |
Luigi Toscano | 5ae7924 | 2020-04-17 13:31:30 +0200 | [diff] [blame] | 30 | 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 |