From be1088718cf4b6d2532db6e8f2d24b085cda5201 Mon Sep 17 00:00:00 2001 From: Ponnuvel Palaniyappan Date: Fri, 19 Apr 2024 09:46:07 +0100 Subject: [ceph] Add more microceph commands Signed-off-by: Ponnuvel Palaniyappan --- sos/report/plugins/ceph_common.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/sos/report/plugins/ceph_common.py b/sos/report/plugins/ceph_common.py index 89a84bb7..37df9aae 100644 --- a/sos/report/plugins/ceph_common.py +++ b/sos/report/plugins/ceph_common.py @@ -95,12 +95,22 @@ class CephCommon(Plugin, RedHatPlugin, UbuntuPlugin): "/var/snap/microceph/common/logs/ceph.audit.log*", ]) - self.add_cmd_output("microceph status", subdir="microceph") self.add_cmd_output("snap info microceph", subdir="microceph") - # Collect all but exclude any keyrings - self.add_cmd_output("microceph cluster sql 'select * from config \ - where key NOT LIKE \"%keyring%\"'", - subdir="microceph") + + cmds = [ + 'client config list', + 'cluster config list', + 'cluster list', + # exclude keyrings from the config db + 'cluster sql \'select * from config where key NOT LIKE \ + \"%keyring%\"\'', + 'disk list', + 'log get-level', + 'status', + ] + + self.add_cmd_output([f"microceph {cmd}" for cmd in cmds], + subdir='microceph') self.add_cmd_output([ "ceph -v", -- cgit