Blame SOURCES/sos-bz2121774-vdsm-set-use_devicesfile-0.patch

722aca
From 7d1ee59fc659467e6860e72322e976ddc5c17db3 Mon Sep 17 00:00:00 2001
722aca
From: Juan Orti Alcaine <jortialc@redhat.com>
722aca
Date: Mon, 6 Jun 2022 16:35:51 +0200
722aca
Subject: [PATCH] [vdsm] Set LVM option use_devicesfile=0
722aca
722aca
Since RHV 4.4 SP1, vdsm configures LVM to use devicesfile, causing that
722aca
the LVM filter configuration used by sos is ignored.
722aca
722aca
This change disables the use of the devicesfile, so that the information
722aca
of the devices used for RHV storage domains can be collected.
722aca
722aca
Fixes: RHBZ#2093993
722aca
722aca
Signed-off-by: Juan Orti <jortialc@redhat.com>
722aca
---
722aca
 sos/report/plugins/vdsm.py | 4 +++-
722aca
 1 file changed, 3 insertions(+), 1 deletion(-)
722aca
722aca
diff --git a/sos/report/plugins/vdsm.py b/sos/report/plugins/vdsm.py
722aca
index ee5befbb..146d223c 100644
722aca
--- a/sos/report/plugins/vdsm.py
722aca
+++ b/sos/report/plugins/vdsm.py
722aca
@@ -29,7 +29,8 @@ import re
722aca
 # use_lvmetad is set to 0 in order not to show cached, old lvm metadata.
722aca
 # use_lvmetad=0
722aca
 #
722aca
-# preferred_names and filter config values are set to capture Vdsm devices.
722aca
+# preferred_names, use_devicesfile and filter config values are set to
722aca
+# capture Vdsm devices.
722aca
 # preferred_names=[ '^/dev/mapper/' ]
722aca
 # filter=[ 'a|^/dev/mapper/.*|', 'r|.*|' ]
722aca
 LVM_CONFIG = """
722aca
@@ -43,6 +44,7 @@ devices {
722aca
     ignore_suspended_devices=1
722aca
     write_cache_state=0
722aca
     disable_after_error_count=3
722aca
+    use_devicesfile=0
722aca
     filter=["a|^/dev/disk/by-id/dm-uuid-mpath-|", "r|.+|"]
722aca
 }
722aca
 """
722aca
-- 
722aca
2.27.0
722aca