]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
thrashosds: sync before doing powercycle testing
authorSage Weil <sage@inktank.com>
Mon, 20 May 2013 19:26:49 +0000 (12:26 -0700)
committerSage Weil <sage@inktank.com>
Mon, 20 May 2013 19:27:38 +0000 (12:27 -0700)
Hopefully fixes #5112
(cherry picked from commit 6c9292c80fc75b3e3f4f2489463e1098abf7d2cd)

teuthology/task/thrashosds.py

index 7e4e04d339bc980938cfdcb0f2a0f1bb8c24150f..f6924215af684791df9652e6c90eff219a7a335d 100644 (file)
@@ -93,6 +93,10 @@ def task(ctx, config):
 
     if 'powercycle' in config:
 
+        # sync everyone first to avoid collateral damage to / etc.
+        log.info('Doing preliminary sync to avoid collateral damage...')
+        ctx.cluster.run(args=['sync'])
+
         if 'ipmi_user' in ctx.teuthology_config:
             for t, key in ctx.config['targets'].iteritems():
                 host = t.split('@')[-1]