diff options
author | Jose Castillo <jcastillo@redhat.com> | 2024-05-17 11:57:31 +0100 |
---|---|---|
committer | Arif Ali <arif-ali@users.noreply.github.com> | 2024-05-20 08:10:58 +0100 |
commit | ed04ba7fc727fd3f1d8b553bc88c383d21c99cd0 (patch) | |
tree | 2f57f732935c4ecdfacb894745f80fed93f71a16 | |
parent | 11879fbb1adc33d8abc0cb70dc63e7e88c39fc3f (diff) | |
download | sos-ed04ba7fc727fd3f1d8b553bc88c383d21c99cd0.tar.gz |
[ceph_mds] Capture alternative mds file pathmain
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>
-rw-r--r-- | sos/report/plugins/ceph_mds.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/report/plugins/ceph_mds.py b/sos/report/plugins/ceph_mds.py index c9253a8d..6a12a0af 100644 --- a/sos/report/plugins/ceph_mds.py +++ b/sos/report/plugins/ceph_mds.py @@ -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") @@ -48,6 +49,7 @@ class CephMDS(Plugin, RedHatPlugin, UbuntuPlugin): self.add_copy_spec([ "/var/lib/ceph/bootstrap-mds/", "/var/lib/ceph/mds/", + "/var/lib/ceph/*/mds.*", "/run/ceph/ceph-mds*", ]) |