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

Method get_num_creating

qa/tasks/ceph_manager.py:2708–2717  ·  view source on GitHub ↗

Find the number of pgs in creating mode.

(self)

Source from the content-addressed store, hash-verified

2706 return status['pgmap'].get('unfound_objects', 0)
2707
2708 def get_num_creating(self):
2709 """
2710 Find the number of pgs in creating mode.
2711 """
2712 pgs = self.get_pg_stats()
2713 num = 0
2714 for pg in pgs:
2715 if 'creating' in pg['state']:
2716 num += 1
2717 return num
2718
2719 def get_num_active_clean(self):
2720 """

Callers 3

expand_poolMethod · 0.95
contract_poolMethod · 0.95
set_pool_pgpnumMethod · 0.95

Calls 1

get_pg_statsMethod · 0.95

Tested by

no test coverage detected