From: Guillaume Abrioux Date: Wed, 30 Mar 2022 14:18:26 +0000 (+0200) Subject: ceph-volume/tests: reject loop devices in lvm.conf X-Git-Tag: v18.0.0~1129^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F45349%2Fhead;p=ceph.git ceph-volume/tests: reject loop devices in lvm.conf 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 --- diff --git a/src/ceph-volume/ceph_volume/tests/functional/batch/playbooks/setup_mixed_type.yml b/src/ceph-volume/ceph_volume/tests/functional/batch/playbooks/setup_mixed_type.yml index 5460fdd0db9..1fa9f66fc86 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/batch/playbooks/setup_mixed_type.yml +++ b/src/ceph-volume/ceph_volume/tests/functional/batch/playbooks/setup_mixed_type.yml @@ -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