Skip to content

Commit

Permalink
[ceph_mds] Capture alternative mds file path
Browse files Browse the repository at this point in the history
Newer versions of Ceph place information in
/var/lib/ceph/<fsid>/mds* instead of
/var/lib/ceph/mds/*, so we need to capture
the new path as well.

Related: RH: SUPDEV-154

Signed-off-by: Jose Castillo <jcastillo@redhat.com>
  • Loading branch information
jcastill committed May 17, 2024
1 parent 11879fb commit 0573184
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sos/report/plugins/ceph_mds.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class CephMDS(Plugin, RedHatPlugin, UbuntuPlugin):
plugin_name = 'ceph_mds'
profiles = ('storage', 'virt', 'container', 'ceph')
containers = ('ceph-(.*-)?fs.*',)
files = ('/var/lib/ceph/mds/*', '/var/snap/microceph/common/data/mds/*')
files = ('/var/lib/ceph/mds/*', '/var/lib/ceph/*/mds.*',
'/var/snap/microceph/common/data/mds/*')

def setup(self):
all_logs = self.get_option("all_logs")
Expand Down Expand Up @@ -48,6 +49,7 @@ def setup(self):
self.add_copy_spec([
"/var/lib/ceph/bootstrap-mds/",
"/var/lib/ceph/mds/",
"/var/lib/ceph/*/mds.*",
"/run/ceph/ceph-mds*",
])

Expand Down

0 comments on commit 0573184

Please sign in to comment.