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

Method get_num_down

qa/tasks/ceph_manager.py:2777–2789  ·  view source on GitHub ↗

Find the number of pgs that are down.

(self)

Source from the content-addressed store, hash-verified

2775 return num
2776
2777 def get_num_down(self):
2778 """
2779 Find the number of pgs that are down.
2780 """
2781 pgs = self.get_pg_stats()
2782 num = 0
2783 for pg in pgs:
2784 if ((pg['state'].count('down') and not
2785 pg['state'].count('stale')) or
2786 (pg['state'].count('incomplete') and not
2787 pg['state'].count('stale'))):
2788 num += 1
2789 return num
2790
2791 def get_num_active_down(self):
2792 """

Callers 2

test_incomplete_pgsFunction · 0.95
taskFunction · 0.80

Calls 2

get_pg_statsMethod · 0.95
countMethod · 0.45

Tested by 1

test_incomplete_pgsFunction · 0.76