]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume/tests: reject loop devices in lvm.conf 45964/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 30 Mar 2022 14:18:26 +0000 (16:18 +0200)
committerAdam King <adking@redhat.com>
Tue, 17 May 2022 14:25:59 +0000 (10:25 -0400)
The current task doesn't works (typo?).
Otherwise api/lvm.py can't work properly, functions such as
`get_single_lv()` and many other don't return the expected results.
Indeed, lvm is confused because of the nvme_loop setup.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit a5fab15e44517ac63f3fd257989e81b8127b86d9)

src/ceph-volume/ceph_volume/tests/functional/batch/playbooks/setup_mixed_type.yml

index 5460fdd0db98c338c4d1d23bb6de6d618f45cc9d..1fa9f66fc8636c00127bc560fa030d293396fc00 100644 (file)
@@ -10,8 +10,8 @@
     - name: tell lvm to ignore loop devices
       lineinfile:
         path: /etc/lvm/lvm.conf
-        line: '        global_filter = [ "r|loop|", "a|.*|" ]'
-        insertafter: '^devices {'
+        line: "\tfilter = [ 'r|loop.*|' ]"
+        insertafter: 'devices {'
     - name: lvm allow changes depsite duplicate PVIDs
       lineinfile:
         path: /etc/lvm/lvm.conf