Blame SOURCES/sos-bz1291347-ceph-collect-var-lib-var-run.patch

28e5f0
From 6b4b361c8b4814160d6fab2fb447f28957977e95 Mon Sep 17 00:00:00 2001
28e5f0
From: Pavel Moravec <pmoravec@redhat.com>
28e5f0
Date: Fri, 27 Nov 2015 12:43:33 +0100
28e5f0
Subject: [PATCH] [ceph] Collect (parts of) /var/lib/ceph and /var/run/ceph
28e5f0
28e5f0
Collect the two directories without some forbidden paths.
28e5f0
28e5f0
Reorder self.add_forbidden_path(..) to have some logical ordering there.
28e5f0
28e5f0
Resolves: #693
28e5f0
28e5f0
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
28e5f0
---
28e5f0
 sos/plugins/ceph.py | 7 ++++++-
28e5f0
 1 file changed, 6 insertions(+), 1 deletion(-)
28e5f0
28e5f0
diff --git a/sos/plugins/ceph.py b/sos/plugins/ceph.py
28e5f0
index 6ccb930..10fee88 100644
28e5f0
--- a/sos/plugins/ceph.py
28e5f0
+++ b/sos/plugins/ceph.py
28e5f0
@@ -40,6 +40,8 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
28e5f0
         self.add_copy_spec([
28e5f0
             "/etc/ceph/",
28e5f0
             "/var/log/ceph/",
28e5f0
+            "/var/lib/ceph/",
28e5f0
+            "/var/run/ceph/",
28e5f0
             "/etc/calamari/",
28e5f0
             "/var/log/calamari",
28e5f0
             "/var/log/radosgw"
28e5f0
@@ -58,7 +60,10 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
28e5f0
         ])
28e5f0
 
28e5f0
         self.add_forbidden_path("/etc/ceph/*keyring")
28e5f0
-        self.add_forbidden_path("/var/lib/ceph/*/*keyring")
28e5f0
         self.add_forbidden_path("/var/lib/ceph/*keyring")
28e5f0
+        self.add_forbidden_path("/var/lib/ceph/*/*keyring")
28e5f0
+        self.add_forbidden_path("/var/lib/ceph/*/*/*keyring")
28e5f0
+        self.add_forbidden_path("/var/lib/ceph/osd/*")
28e5f0
+        self.add_forbidden_path("/var/lib/ceph/osd/mon/*")
28e5f0
 
28e5f0
 # vim: et ts=4 sw=4
28e5f0
-- 
28e5f0
2.4.3
28e5f0