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/roles/change-devstack-data-owner/README.rst b/roles/change-devstack-data-owner/README.rst
new file mode 100644
index 0000000..33ddddc
--- /dev/null
+++ b/roles/change-devstack-data-owner/README.rst
@@ -0,0 +1,23 @@
+Change the ownership of a specific devstack data subdirectory
+
+This is needed in order to have cinderlib functional tests,
+which are normally executed by the `zuul` user, run under
+a devstack deployment where the `stack` user is the owner.
+
+**Role Variables**
+
+.. zuul:rolevar:: devstack_data_dir
+ :default: /opt/stack/data
+
+ The devstack data directory.
+
+.. zuul:rolevar:: devstack_data_subdir_changed
+ :default: cinder
+
+ The devstack data subdirectory whose ownership
+ is changed.
+
+.. zuul:rolevar:: devstack_data_subdir_owner
+ :default: zuul
+
+ The new owner of the specified devstack data subdirectory.
diff --git a/roles/change-devstack-data-owner/defaults/main.yaml b/roles/change-devstack-data-owner/defaults/main.yaml
new file mode 100644
index 0000000..ea86874
--- /dev/null
+++ b/roles/change-devstack-data-owner/defaults/main.yaml
@@ -0,0 +1,3 @@
+devstack_data_dir: /opt/stack/data
+devstack_data_subdir_changed: cinder
+devstack_data_subdir_owner: zuul
diff --git a/roles/change-devstack-data-owner/tasks/main.yaml b/roles/change-devstack-data-owner/tasks/main.yaml
new file mode 100644
index 0000000..bd1977a
--- /dev/null
+++ b/roles/change-devstack-data-owner/tasks/main.yaml
@@ -0,0 +1,6 @@
+- name: Change the owner of specific devstack data files
+ file:
+ path: "{{ devstack_data_dir }}/{{ devstack_data_subdir_changed }}"
+ owner: "{{ devstack_data_subdir_owner }}"
+ recurse: yes
+ become: yes