]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/ceph_manager: check pg state again before timedout 17810/head
authorhuangjun <huangjun@xsky.com>
Tue, 19 Sep 2017 16:04:04 +0000 (00:04 +0800)
committerhuangjun <huangjun@xsky.com>
Tue, 19 Sep 2017 16:04:04 +0000 (00:04 +0800)
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 <huangjun@xsky.com>
qa/tasks/ceph_manager.py

index 2616e4e05be13b64bdbf14c88ae33e49ccab89f7..d7c2e014ac45005328d0d67e4fce49956eab66f0 100644 (file)
@@ -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)