]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
mon_thrash: tolerate scrub command failure
authorSage Weil <sage@inktank.com>
Sat, 20 Jul 2013 04:53:33 +0000 (21:53 -0700)
committerSage Weil <sage@inktank.com>
Sat, 20 Jul 2013 04:53:33 +0000 (21:53 -0700)
We can get EBUSY if there is an election going on.

teuthology/task/mon_thrash.py

index e56d8761ffb60dcad597e261d41c637e1eadd8e5..2035bf1e332b851b3c31e8b3c1e0490b45a2d003 100644 (file)
@@ -256,7 +256,10 @@ class MonitorThrasher:
 
       if self.scrub:
         self.log('triggering scrub')
-        self.manager.raw_cluster_cmd('scrub')
+        try:
+          self.manager.raw_cluster_cmd('scrub')
+        except:
+          pass
 
       if self.thrash_delay > 0.0:
         self.log('waiting for {delay} secs before continuing thrashing'.format(