From: David Zafman Date: Tue, 9 Jun 2015 21:11:46 +0000 (-0700) Subject: thrasher: Can't test ceph-objectstore-tool if nodes turned off (powercycle) X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cf01b53f1ac5319a03413a877be8d58fc5bdc5e9;p=ceph.git thrasher: Can't test ceph-objectstore-tool if nodes turned off (powercycle) Signed-off-by: David Zafman (cherry picked from commit 8a9bcd1eb7e8e7acb132b09574bb5bf6d6d52b10) Conflicts: tasks/ceph_manager.py Logging message --- diff --git a/tasks/ceph_manager.py b/tasks/ceph_manager.py index e3053e58ae7..484c4bcecd6 100644 --- a/tasks/ceph_manager.py +++ b/tasks/ceph_manager.py @@ -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(\