]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
erasure-code: do not prepend 'ceph' to the erasure-code-profile command
authorLoic Dachary <loic@dachary.org>
Tue, 1 Jul 2014 10:21:17 +0000 (12:21 +0200)
committerLoic Dachary <loic@dachary.org>
Tue, 1 Jul 2014 10:21:17 +0000 (12:21 +0200)
When used in the radosgw context, the 'ceph' string must be present but
when used in ceph_manager, the 'ceph' string is already included.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/task_util/rados.py

index 4b42b309bcc6cd1b804e24183de95835a84eba94..f8264d396c4df027c036251874da2d191c371814 100644 (file)
@@ -25,7 +25,7 @@ def rados(ctx, remote, cmd, wait=True, check_status=False):
         return proc
 
 def create_ec_pool(remote, name, profile_name, pgnum, profile):
-    remote.run(args=cmd_erasure_code_profile(profile_name, profile))
+    remote.run(args=['ceph'] + cmd_erasure_code_profile(profile_name, profile))
     remote.run(args=[
         'ceph', 'osd', 'pool', 'create', name,
         str(pgnum), str(pgnum), 'erasure', profile_name,
@@ -73,6 +73,6 @@ def cmd_erasure_code_profile(profile_name, profile):
             'ruleset-failure-domain': 'osd'
         }
     return [
-        'ceph', 'osd', 'erasure-code-profile', 'set',
+        'osd', 'erasure-code-profile', 'set',
         profile_name
         ] + [ str(key) + '=' + str(value) for key, value in profile.iteritems() ]