]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
included an option to ceph_objectstore_tool, whenever we have keyvaluestore_backend...
authortamil <tamil.muthamizhan@inktank.com>
Tue, 23 Sep 2014 14:50:49 +0000 (07:50 -0700)
committertamil <tamil.muthamizhan@inktank.com>
Tue, 23 Sep 2014 14:50:49 +0000 (07:50 -0700)
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
tasks/ceph_manager.py

index 2ac7195b1167034e9fa1d34133410883cf75b4ea..47e63fc2cbdbb4c84f0510668b50a190434f0a96 100644 (file)
@@ -130,7 +130,10 @@ 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)
+            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)
+            else:
+                prefix = "sudo ceph_objectstore_tool --data-path {fpath} --journal-path {jpath} ".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: