aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/report/plugins/ceph_common.py20
1 files 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",