]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: timeout thrasher if fs does not stabilize
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 26 Jan 2017 05:25:48 +0000 (00:25 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 6 Feb 2017 19:07:12 +0000 (14:07 -0500)
After 5 minutes of waiting, it's reasonable to stop as the cluster is
probably stuck.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/mds_thrash.py

index c9f25451da0c3339a1c348408995fbc3f09ddd24..b697125d6f837bd96fb46557e7375cda627639d3 100644 (file)
@@ -187,7 +187,9 @@ class MDSThrasher(Greenlet):
                     self.log('mds cluster has {count} alive and active, now stable!'.format(count = count))
                     return status, None
             itercount = itercount + 1
-            if itercount > 10:
+            if itercount > 300/2: # 5 minutes
+                 raise RuntimeError('timeout waiting for cluster to stabilize')
+            elif itercount > 10:
                 self.log('mds map: {status}'.format(status=self.fs.status()))
             time.sleep(2)
             status = self.fs.status()