Blame SOURCES/sos-bz1925419-gluster-pubkeys-statusfile.patch

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