Update cinder-tempest-plugin-lvm-lio (revamp)
The changes should make this job a valid replacement for the legacy
cinder-tempest-dsvm-lvm-lio-barbican job defined inside cinder.git.
- rename as cinder-tempest-plugin-lvm-lio-barbican;
- add it to the gate queue as well, together with
devstack-plugin-ceph-tempest-py3;
- use the proper functional tox environment provided by cinderlib;
- synchronize the blacklist with the one used by the legacy job,
and use the same devstack options;
- remove barbicanclient and os-brick from required-projects,
so that the stable libraries are used, as usual for normal jobs.
Child jobs can add them if they need to test against
the master version of those libraries.
And a few minor changes (namespaces for the repositories,
prepare it to be multinode-compatible).
Change-Id: I0ed43c8eda445af8da61d861536da1efdd5a7b1f
diff --git a/playbooks/tempest-and-cinderlib-run.yaml b/playbooks/tempest-and-cinderlib-run.yaml
new file mode 100644
index 0000000..5dddf7f
--- /dev/null
+++ b/playbooks/tempest-and-cinderlib-run.yaml
@@ -0,0 +1,28 @@
+# Playbook imported from https://opendev.org/openstack/tempest/src/tag/23.0.0/playbooks/devstack-tempest.yaml
+
+# Changes that run through devstack-tempest are likely to have an impact on
+# the devstack part of the job, so we keep devstack in the main play to
+# avoid zuul retrying on legitimate failures.
+- hosts: all
+ roles:
+ - orchestrate-devstack
+
+# We run tests only on one node, regardless how many nodes are in the system
+- hosts: tempest
+ environment:
+ # This enviroment variable is used by the optional tempest-gabbi
+ # job provided by the gabbi-tempest plugin. It can be safely ignored
+ # if that plugin is not being used.
+ GABBI_TEMPEST_PATH: "{{ gabbi_tempest_path | default('') }}"
+ roles:
+ - setup-tempest-run-dir
+ - setup-tempest-data-dir
+ - acl-devstack-files
+ - role: run-tempest
+ # ignore the errors, so that run-cinderlib-tests is always executed
+ ignore_errors: yes
+ - role: change-devstack-data-owner
+ devstack_data_subdir_changed: cinder
+ devstack_data_subdir_owner: zuul
+ - role: run-cinderlib-tests
+ cinderlib_base_dir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/cinderlib'].src_dir }}"