aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Petr <tpetr@redhat.com>2017-05-11 11:16:33 +0200
committerBryn M. Reeves <bmr@redhat.com>2017-05-22 16:12:08 +0100
commit7da0d24619928690f4999ffc1693b643b612f130 (patch)
treeaa568e1e4c961b9d85930ef9e6b2a37ca5177b32
parentf9484c84b8329f693e5517eef5e3fe064ceee5aa (diff)
downloadsos-7da0d24619928690f4999ffc1693b643b612f130.tar.gz
[ceph] exclude temporary mount locations from collection
Do not collect temporary mount paths at /var/lib/ceph/tmp/mnt.XXXX. Resolves #1006 Replaces #1005 Signed-off-by: Tomas Petr <tpetr@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/ceph.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/plugins/ceph.py b/sos/plugins/ceph.py
index 1be7fd97..0b375d17 100644
--- a/sos/plugins/ceph.py
+++ b/sos/plugins/ceph.py
@@ -81,6 +81,13 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
self.add_forbidden_path("/var/lib/ceph/*/*/*keyring*")
self.add_forbidden_path("/var/lib/ceph/osd/*")
self.add_forbidden_path("/var/lib/ceph/mon/*")
+
+# Excludes temporary ceph-osd mount location like
+# /var/lib/ceph/tmp/mnt.XXXX from sos collection.
+# In the /var/lib/ceph/tmp/ can still other files of potential
+# interest exists, so exclude only known temporary mount locations.
+
+ self.add_forbidden_path("/var/lib/ceph/tmp/*mnt*")
self.add_forbidden_path("/etc/ceph/*bindpass*")
# vim: set et ts=4 sw=4 :