From a5fab15e44517ac63f3fd257989e81b8127b86d9 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 30 Mar 2022 16:18:26 +0200 Subject: [PATCH] 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 --- .../tests/functional/batch/playbooks/setup_mixed_type.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 5460fdd0db98c..1fa9f66fc8636 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 -- 2.39.5