]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/ceph_manager: enable log for ceph_objectstore_tool
authorSage Weil <sage@redhat.com>
Fri, 3 Oct 2014 15:32:35 +0000 (08:32 -0700)
committerSage Weil <sage@redhat.com>
Tue, 7 Oct 2014 15:37:53 +0000 (08:37 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
tasks/ceph_manager.py

index 2ac7195b1167034e9fa1d34133410883cf75b4ea..65f10da8830f6698b9bde077d14b029f96754412 100644 (file)
@@ -130,7 +130,7 @@ class Thrasher:
             if len(self.dead_osds) > 1 and random.random() < self.chance_move_pg:
                 exp_osd = random.choice(self.dead_osds[:-1])
                 (exp_remote,) = self.ceph_manager.ctx.cluster.only('osd.{o}'.format(o=exp_osd)).remotes.iterkeys()
-            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: