From dd8f0980aabe4a75f2fce1edaa23efe7a4056272 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Tue, 1 Jul 2014 12:21:17 +0200 Subject: [PATCH] erasure-code: do not prepend 'ceph' to the erasure-code-profile command 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 --- teuthology/task_util/rados.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/task_util/rados.py b/teuthology/task_util/rados.py index 4b42b309bcc6c..f8264d396c4df 100644 --- a/teuthology/task_util/rados.py +++ b/teuthology/task_util/rados.py @@ -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() ] -- 2.39.5