From: huangjun Date: Tue, 19 Sep 2017 16:04:04 +0000 (+0800) Subject: qa/ceph_manager: check pg state again before timedout X-Git-Tag: v13.0.1~798^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fa40add7f0123dfeac30986f3d53cdfa77736a87;p=ceph-ci.git 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 --- diff --git a/qa/tasks/ceph_manager.py b/qa/tasks/ceph_manager.py index 2616e4e05be..d7c2e014ac4 100644 --- a/qa/tasks/ceph_manager.py +++ b/qa/tasks/ceph_manager.py @@ -2198,6 +2198,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)