]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
thrasher: Can't test ceph-objectstore-tool if nodes turned off (powercycle)
authorDavid Zafman <dzafman@redhat.com>
Tue, 9 Jun 2015 21:11:46 +0000 (14:11 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 9 Jun 2015 21:21:55 +0000 (14:21 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 8a9bcd1eb7e8e7acb132b09574bb5bf6d6d52b10)

Conflicts:
tasks/ceph_manager.py
        Logging message

tasks/ceph_manager.py

index e3053e58ae7738ad67a9455103e2c0dd652197a2..484c4bcecd659918bcb44bac3fa719ec20dd888f 100644 (file)
@@ -102,16 +102,20 @@ class Thrasher:
             manager.raw_cluster_cmd('--', 'mon', 'tell', '*', 'injectargs',
                                     '--mon-osd-down-out-interval 0')
         self.thread = gevent.spawn(self.do_thrash)
-        if self.cmd_exists_on_osds("ceph-objectstore-tool"):
+        if self.config.get('powercycle') or not self.cmd_exists_on_osds("ceph-objectstore-tool"):
+            self.ceph_objectstore_tool = False
+            self.test_rm_past_intervals = False
+            if self.config.get('powercycle'):
+                self.log("Unable to test ceph-objectstore-tool, "
+                         "powercycle testing")
+            else:
+                self.log("Unable to test ceph-objectstore-tool, "
+                         "not available on all OSD nodes")
+        else:
             self.ceph_objectstore_tool = \
                 self.config.get('ceph_objectstore_tool', True)
             self.test_rm_past_intervals = \
                 self.config.get('test_rm_past_intervals', True)
-        else:
-            self.ceph_objectstore_tool = False
-            self.test_rm_past_intervals = False
-            self.log("Unable to test ceph_objectstore_tool, "
-                     "not available on all OSD nodes")
 
     def cmd_exists_on_osds(self, cmd):
         allremotes = self.ceph_manager.ctx.cluster.only(\