Skip to content

Commit

Permalink
[ceph] exclude temporary mount locations from collection
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ToprHarley authored and bmr-cymru committed May 22, 2017
1 parent f9484c8 commit 7da0d24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sos/plugins/ceph.py
Expand Up @@ -81,6 +81,13 @@ def setup(self):
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 :

0 comments on commit 7da0d24

Please sign in to comment.