Codebase list cinder-tempest-plugin / 87d4802
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 Gorka Eguileor authored 3 years ago Luigi Toscano committed 3 years ago
2 changed file(s) with 58 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1414 voting: false
1515 - cinder-tempest-plugin-lvm-lio-barbican-fips:
1616 voting: false
17 - cinder-tempest-plugin-lvm-nvmet-barbican
1718 - nova-ceph-multistore:
1819 voting: false
1920 - cinder-tempest-plugin-cbak-ceph
3031 gate:
3132 jobs:
3233 - cinder-tempest-plugin-lvm-lio-barbican
34 - cinder-tempest-plugin-lvm-nvmet-barbican
3335 # FIXME: no sense running a non-voting gate job. See comment above.
3436 # - cinder-tempest-plugin-lvm-tgt-barbican
3537 - cinder-tempest-plugin-cbak-ceph
293295 tempest_exclude_regex: 'test_encrypted_cinder_volumes_cryptsetup'
294296
295297 - job:
298 name: cinder-tempest-plugin-lvm-nvmet-barbican
299 description: |
300 This jobs configures Cinder with LVM, nvmet, barbican and
301 runs tempest tests and cinderlib tests. nvmet is
302 configured to use the new connection information format,
303 NVMe-oF native multipathing, and sharing the NVMe-oF
304 namespace for all the connections to the same node.
305 # TODO: switch to cinder-tempest-plugin-lvm-barbican-base
306 # when cinderlib support for NVMe is fixed
307 parent: cinder-tempest-plugin-lvm-barbican-base-abstract
308 pre-run: playbooks/install-multipath.yaml
309 vars:
310 devstack_localrc:
311 CINDER_TARGET_HELPER: nvmet
312 CINDER_TARGET_PROTOCOL: nvmet_tcp
313 TEMPEST_STORAGE_PROTOCOL: nvmeof
314 devstack_local_conf:
315 test-config:
316 $TEMPEST_CONFIG:
317 volume-feature-enabled:
318 # NotImplementedError: Revert volume to snapshot not implemented for thin LVM.
319 volume_revert: False
320 post-config:
321 $NOVA_CONF:
322 libvirt:
323 volume_use_multipath: true
324 $CINDER_CONF:
325 lvmdriver-1:
326 nvmeof_conn_info_version: 2
327 lvm_share_target: true
328 target_secondary_ip_addresses: 127.0.0.1
329 use_multipath_for_image_xfer: true
330
331 - job:
296332 name: cinder-tempest-plugin-lvm-tgt-barbican
297333 description: |
298334 This jobs configures Cinder with LVM, tgt, barbican and
0 - hosts: tempest
1 vars:
2 mpath_package: "{{ 'device-mapper-multipath' if ansible_os_family == 'RedHat' else 'multipath-tools' }}"
3 tasks:
4 - name: Install multipath package on RedHat systems
5 package:
6 name: "{{ mpath_package }}"
7 state: present
8 become: yes
9
10 - name: Create configuration
11 command: mpathconf --enable --with_multipathd y --user_friendly_names n --find_multipaths y
12 args:
13 creates: /etc/multipath.conf
14 become: yes
15
16 - name: Start and enable on boot the multipath daemon
17 service:
18 name: multipathd
19 state: started
20 enabled: yes
21 become: yes