From 20af01f23ba932cb97cb40bba89bff546e10c461 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 24 Jan 2013 16:23:33 -0800 Subject: [PATCH] ceph_manager: fix get_num_active_recovered() The states now have 'backfill' *or* 'recover' in them. --- teuthology/task/ceph_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/task/ceph_manager.py b/teuthology/task/ceph_manager.py index 5a89716bcbed3..c3b29d999a9ed 100644 --- a/teuthology/task/ceph_manager.py +++ b/teuthology/task/ceph_manager.py @@ -507,7 +507,7 @@ class CephManager: pgs = self.get_pg_stats() num = 0 for pg in pgs: - if pg['state'].count('active') and not pg['state'].count('recovering') and not pg['state'].count('stale'): + if pg['state'].count('active') and not pg['state'].count('recover') and not pg['state'].count('backfill') and not pg['state'].count('stale'): num += 1 return num -- 2.39.5