From 77bcb274331db2bc217c3a82a322cd7a9cf18546 Mon Sep 17 00:00:00 2001 From: huangjun Date: Wed, 20 Sep 2017 00:04:04 +0800 Subject: [PATCH] qa/ceph_manager: check pg state again before timedout Pg state maybe all in active+clean when no recovering going on, so check it again before timedout. Fixes: http://tracker.ceph.com/issues/21294 Signed-off-by: huangjun --- qa/tasks/ceph_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qa/tasks/ceph_manager.py b/qa/tasks/ceph_manager.py index 32834c2ded8fc..974d35ea09d57 100644 --- a/qa/tasks/ceph_manager.py +++ b/qa/tasks/ceph_manager.py @@ -2217,6 +2217,8 @@ class CephManager: else: self.log("no progress seen, keeping timeout for now") if now - start >= timeout: + if self.is_recovered(): + break self.log('dumping pgs') out = self.raw_cluster_cmd('pg', 'dump') self.log(out) -- 2.39.5