Blame SOURCES/sos-bz1925419-all-gluster-files.patch

bffc8a
From 4fb834ec862228afb276ccbd45aa86c66044ea66 Mon Sep 17 00:00:00 2001
bffc8a
From: Pavel Moravec <pmoravec@redhat.com>
bffc8a
Date: Mon, 15 Mar 2021 09:09:51 +0100
bffc8a
Subject: [PATCH] [gluster] collect public keys from the right dir
bffc8a
bffc8a
Collection of glusterfind dir is achieved by /var/lib/gluster
bffc8a
so it doesn't be collected explicitly.
bffc8a
bffc8a
/var/lib/glusterd/glusterfind/.keys/ subdir is required to be
bffc8a
explicitly collected, as add_copy_spec uses glob.glob() that skips
bffc8a
hidden files.
bffc8a
bffc8a
Resolves: #2451
bffc8a
bffc8a
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
bffc8a
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
bffc8a
---
bffc8a
 sos/report/plugins/gluster.py | 5 ++---
bffc8a
 1 file changed, 2 insertions(+), 3 deletions(-)
bffc8a
bffc8a
diff --git a/sos/report/plugins/gluster.py b/sos/report/plugins/gluster.py
bffc8a
index e1a89df2..952cab63 100644
bffc8a
--- a/sos/report/plugins/gluster.py
bffc8a
+++ b/sos/report/plugins/gluster.py
bffc8a
@@ -76,9 +76,8 @@ class Gluster(Plugin, RedHatPlugin):
bffc8a
             "/var/lib/glusterd/",
bffc8a
             # collect nfs-ganesha related configuration
bffc8a
             "/run/gluster/shared_storage/nfs-ganesha/",
bffc8a
-            # collect status files and public ssh keys
bffc8a
-            "/var/lib/glusterd/.keys/",
bffc8a
-            "/var/lib/glusterd/glusterfind/"
bffc8a
+            # collect public ssh keys (a_s_c skips implicit hidden files)
bffc8a
+            "/var/lib/glusterd/glusterfind/.keys/",
bffc8a
         ] + glob.glob('/run/gluster/*tier-dht/*'))
bffc8a
 
bffc8a
         if not self.get_option("all_logs"):
bffc8a
-- 
ba407d
2.26.3
bffc8a