From: Sage Weil Date: Fri, 3 Oct 2014 15:32:35 +0000 (-0700) Subject: tasks/ceph_manager: enable log for ceph_objectstore_tool X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=985b21abafcfb79dd2852c1a534c92a07b927826;p=ceph.git tasks/ceph_manager: enable log for ceph_objectstore_tool Signed-off-by: Sage Weil (cherry picked from commit 7ba50e0c89eead17e7fc37232f8c9a91855ebd8c) Conflicts: tasks/ceph_manager.py --- diff --git a/tasks/ceph_manager.py b/tasks/ceph_manager.py index f473fa6bece08..da6f912bbe250 100644 --- a/tasks/ceph_manager.py +++ b/tasks/ceph_manager.py @@ -130,9 +130,9 @@ class Thrasher: exp_osd = random.choice(self.dead_osds[:-1]) (exp_remote,) = self.ceph_manager.ctx.cluster.only('osd.{o}'.format(o=exp_osd)).remotes.iterkeys() if 'keyvaluestore_backend' in self.ceph_manager.ctx.ceph.conf['osd']: - prefix = "sudo ceph_objectstore_tool --data-path {fpath} --journal-path {jpath} --type keyvaluestore-dev ".format(fpath=FSPATH, jpath=JPATH) + prefix = "sudo ceph_objectstore_tool --data-path {fpath} --journal-path {jpath} --type keyvaluestore-dev --log-file=/var/log/ceph/objectstore_tool.\\$pid.log ".format(fpath=FSPATH, jpath=JPATH) else: - prefix = "sudo ceph_objectstore_tool --data-path {fpath} --journal-path {jpath} ".format(fpath=FSPATH, jpath=JPATH) + prefix = "sudo ceph_objectstore_tool --data-path {fpath} --journal-path {jpath} --log-file=/var/log/ceph/objectstore_tool.\\$pid.log ".format(fpath=FSPATH, jpath=JPATH) cmd = (prefix + "--op list-pgs").format(id=exp_osd) proc = exp_remote.run(args=cmd, wait=True, check_status=True, stdout=StringIO()) if proc.exitstatus: