Blame SOURCES/sos-bz1449904-ceph-tmp-mount-exclude.patch

084cc6
From 7da0d24619928690f4999ffc1693b643b612f130 Mon Sep 17 00:00:00 2001
084cc6
From: Tomas Petr <tpetr@redhat.com>
084cc6
Date: Thu, 11 May 2017 11:16:33 +0200
084cc6
Subject: [PATCH] [ceph] exclude temporary mount locations from collection
084cc6
084cc6
Do not collect temporary mount paths at /var/lib/ceph/tmp/mnt.XXXX.
084cc6
084cc6
Resolves #1006
084cc6
Replaces #1005
084cc6
084cc6
Signed-off-by: Tomas Petr <tpetr@redhat.com>
084cc6
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
084cc6
---
084cc6
 sos/plugins/ceph.py | 7 +++++++
084cc6
 1 file changed, 7 insertions(+)
084cc6
084cc6
diff --git a/sos/plugins/ceph.py b/sos/plugins/ceph.py
084cc6
index 1be7fd9..0b375d1 100644
084cc6
--- a/sos/plugins/ceph.py
084cc6
+++ b/sos/plugins/ceph.py
084cc6
@@ -81,6 +81,13 @@ class Ceph(Plugin, RedHatPlugin, UbuntuPlugin):
084cc6
         self.add_forbidden_path("/var/lib/ceph/*/*/*keyring*")
084cc6
         self.add_forbidden_path("/var/lib/ceph/osd/*")
084cc6
         self.add_forbidden_path("/var/lib/ceph/mon/*")
084cc6
+
084cc6
+# Excludes temporary ceph-osd mount location like
084cc6
+# /var/lib/ceph/tmp/mnt.XXXX from sos collection.
084cc6
+# In the /var/lib/ceph/tmp/ can still other files of potential
084cc6
+# interest exists, so exclude only known temporary mount locations.
084cc6
+
084cc6
+        self.add_forbidden_path("/var/lib/ceph/tmp/*mnt*")
084cc6
         self.add_forbidden_path("/etc/ceph/*bindpass*")
084cc6
 
084cc6
 # vim: set et ts=4 sw=4 :
084cc6
-- 
084cc6
2.7.4
084cc6