From e6698af8182f7a95551b627a81a2a97de7abd58c Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Wed, 5 Mar 2014 12:38:51 -0800 Subject: [PATCH] ceph_manager: fix erasure coding m, k values Signed-off-by: Samuel Just --- teuthology/task/ceph_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/task/ceph_manager.py b/teuthology/task/ceph_manager.py index 5758f970c3176..aa4fdc4f79161 100644 --- a/teuthology/task/ceph_manager.py +++ b/teuthology/task/ceph_manager.py @@ -705,10 +705,10 @@ class CephManager: self.log("creating pool_name %s"%(pool_name,)) if ec_pool and not self.created_erasure_pool: self.created_erasure_pool = True - self.raw_cluster_cmd('osd', 'crush', 'rule', 'create-erasure', 'erasure2', 'erasure-code-ruleset-failure-domain=osd', 'erasure-code-m=2', 'erasure-code-k=1') + self.raw_cluster_cmd('osd', 'crush', 'rule', 'create-erasure', 'erasure2', 'erasure-code-ruleset-failure-domain=osd', 'erasure-code-m=1', 'erasure-code-k=2') if ec_pool: - self.raw_cluster_cmd('osd', 'pool', 'create', pool_name, str(pg_num), str(pg_num), 'erasure', 'crush_ruleset=erasure2', 'erasure-code-m=2', 'erasure-code-k=1') + self.raw_cluster_cmd('osd', 'pool', 'create', pool_name, str(pg_num), str(pg_num), 'erasure', 'crush_ruleset=erasure2', 'erasure-code-m=1', 'erasure-code-k=2') else: self.raw_cluster_cmd('osd', 'pool', 'create', pool_name, str(pg_num)) self.pools[pool_name] = pg_num -- 2.39.5