MCPcopy Create free account
hub / github.com/ceph/ceph / get_osd_dump_json

Method get_osd_dump_json

qa/tasks/ceph_manager.py:2665–2671  ·  view source on GitHub ↗

osd dump --format=json converted to a python object :returns: the python object

(self)

Source from the content-addressed store, hash-verified

2663 return json.loads('\n'.join(out.split('\n')[1:]))
2664
2665 def get_osd_dump_json(self):
2666 """
2667 osd dump --format=json converted to a python object
2668 :returns: the python object
2669 """
2670 out = self.raw_cluster_cmd('osd', 'dump', '--format=json')
2671 return json.loads('\n'.join(out.split('\n')[1:]))
2672
2673 def get_osd_dump(self):
2674 """

Callers 15

list_poolsMethod · 0.95
get_pool_dumpMethod · 0.95
stop_pg_num_changesMethod · 0.95
get_osd_dumpMethod · 0.95
taskFunction · 0.95
test_pool_min_sizeMethod · 0.80
__init__Method · 0.80
osd_scrub_pgsFunction · 0.80
_osd_countMethod · 0.80
setUpMethod · 0.80
tearDownMethod · 0.80

Calls 3

raw_cluster_cmdMethod · 0.95
joinMethod · 0.45
splitMethod · 0.45

Tested by 5

taskFunction · 0.76
test_pool_min_sizeMethod · 0.64
_osd_countMethod · 0.64
setUpMethod · 0.64
tearDownMethod · 0.64