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