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: v16.2.11~576^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F45964%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 (cherry picked from commit a5fab15e44517ac63f3fd257989e81b8127b86d9) --- 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 5460fdd0db98..1fa9f66fc863 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