zuul: new LVM/nvmet job (relevant scenario)
This is a patch that adds a new LVM/nvmet job which also
exercises a few relevant code paths in os-brick
which are likely to be used in a production environment:
- Uses the new NVMe-oF connection information.
- Uses NVMe-oF native multipathing, even if it's by using the local IP
address, which is not real multipathing.
- Shares the namespace for all connections on the same node.
Change-Id: I35beb893ad135043deb5a4ea283e0d668692a438
diff --git a/playbooks/install-multipath.yaml b/playbooks/install-multipath.yaml
new file mode 100644
index 0000000..bc51810
--- /dev/null
+++ b/playbooks/install-multipath.yaml
@@ -0,0 +1,22 @@
+- hosts: tempest
+ vars:
+ mpath_package: "{{ 'device-mapper-multipath' if ansible_os_family == 'RedHat' else 'multipath-tools' }}"
+ tasks:
+ - name: Install multipath package on RedHat systems
+ package:
+ name: "{{ mpath_package }}"
+ state: present
+ become: yes
+
+ - name: Create configuration
+ command: mpathconf --enable --with_multipathd y --user_friendly_names n --find_multipaths y
+ args:
+ creates: /etc/multipath.conf
+ become: yes
+
+ - name: Start and enable on boot the multipath daemon
+ service:
+ name: multipathd
+ state: started
+ enabled: yes
+ become: yes