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

Method get_pg_stats

qa/tasks/ceph_manager.py:2477–2486  ·  view source on GitHub ↗

Dump the cluster and get pg stats

(self)

Source from the content-addressed store, hash-verified

2475 return r
2476
2477 def get_pg_stats(self):
2478 """
2479 Dump the cluster and get pg stats
2480 """
2481 out = self.raw_cluster_cmd('pg', 'dump', '--format=json')
2482 j = json.loads('\n'.join(out.split('\n')[1:]))
2483 try:
2484 return j['pg_map']['pg_stats']
2485 except KeyError:
2486 return j['pg_stats']
2487
2488 def get_osd_df(self, osdid):
2489 """

Callers 15

get_pgids_to_forceMethod · 0.95
compile_pg_statusMethod · 0.95
get_single_pg_statsMethod · 0.95
get_num_creatingMethod · 0.95
get_num_active_cleanMethod · 0.95
get_num_activeMethod · 0.95
get_num_downMethod · 0.95
get_num_active_downMethod · 0.95
get_num_peeredMethod · 0.95

Calls 3

raw_cluster_cmdMethod · 0.95
joinMethod · 0.45
splitMethod · 0.45

Tested by 3

wait_for_victim_pgFunction · 0.36
test_create_from_peerFunction · 0.36
test_objectstoreFunction · 0.36