- number of monitors, managers, OSDs, MDSs, radosgws, or other daemons
- software version currently being used
- number and types of RADOS pools and CephFS file systems
+ - names of configuration options that have been changed from their
+ default (but *not* their values)
* **crash** (default: on): Information about daemon crashes, including
'name': 'channel_basic',
'type': 'bool',
'default': True,
- 'description': 'Share basic cluster information (size, version)',
+ 'desc': 'Share basic cluster information (size, version)',
},
{
'name': 'channel_ident',
return metadata
+ def gather_configs(self):
+ configs = set()
+ r, outb, outs = self.mon_command({
+ 'prefix': 'config dump',
+ 'format': 'json'
+ });
+ if r != 0:
+ return {}
+ try:
+ dump = json.loads(outb)
+ except json.decoder.JSONDecodeError:
+ return {}
+ for opt in dump:
+ name = opt.get('name')
+ if name:
+ configs.add(name)
+ return {
+ 'non_default_options': [ sorted(list(configs)) ]
+ }
+
def gather_crashinfo(self):
crashlist = list()
errno, crashids, err = self.remote('crash', 'do_ls', '', '')
'features': mon_map['features']
}
+ report['config'] = self.gather_configs()
+
num_pg = 0
report['pools'] = list()
for pool in osd_map['pools']: