aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2015-11-27 12:43:33 +0100
committerPavel Moravec <pmoravec@redhat.com>2015-11-27 12:43:33 +0100
commit6b4b361c8b4814160d6fab2fb447f28957977e95 (patch)
tree355d6c3a000aea076c5b96ec96013c9d47fc8b72
parent7da50d6ee5afce577f02339fdc285891c8485bc0 (diff)
downloadsos-6b4b361c8b4814160d6fab2fb447f28957977e95.tar.gz
[ceph] Collect (parts of) /var/lib/ceph and /var/run/ceph
Collect the two directories without some forbidden paths. Reorder self.add_forbidden_path(..) to have some logical ordering there. Resolves: #693 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/ceph.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sos/plugins/ceph.py b/sos/plugins/ceph.py
index 6ccb930d..10fee88c 100644
--- a/sos/plugins/ceph.py
+++ b/sos/plugins/ceph.py
@@ -40,6 +40,8 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
self.add_copy_spec([
"/etc/ceph/",
"/var/log/ceph/",
+ "/var/lib/ceph/",
+ "/var/run/ceph/",
"/etc/calamari/",
"/var/log/calamari",
"/var/log/radosgw"
@@ -58,7 +60,10 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
])
self.add_forbidden_path("/etc/ceph/*keyring")
- self.add_forbidden_path("/var/lib/ceph/*/*keyring")
self.add_forbidden_path("/var/lib/ceph/*keyring")
+ self.add_forbidden_path("/var/lib/ceph/*/*keyring")
+ self.add_forbidden_path("/var/lib/ceph/*/*/*keyring")
+ self.add_forbidden_path("/var/lib/ceph/osd/*")
+ self.add_forbidden_path("/var/lib/ceph/osd/mon/*")
# vim: set et ts=4 sw=4 :