]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/erasure-code: override min_size to 2 14872/head
authorKefu Chai <kchai@redhat.com>
Fri, 28 Apr 2017 14:20:14 +0000 (22:20 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 29 Apr 2017 02:43:17 +0000 (10:43 +0800)
so isa(k=2,m=1) can survive with 1 down OSD.

Fixes: http://tracker.ceph.com/issues/19770
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/erasure-code/ec-rados-plugin=isa-k=2-m=1.yaml
qa/tasks/rados.py

index 8d7c49785faabf39bd965a9d43c83951547f890d..f69963933c50a1fe8235d22e9bb44ce0d6980a62 100644 (file)
@@ -4,6 +4,7 @@ tasks:
     ops: 4000
     objects: 50
     ec_pool: true
+    min_size: 2
     write_append_excl: false
     erasure_code_profile:
       name: isaprofile
index 932d0f479b0624f0af5b871992b4ca26f870b27f..eceff90381c5674d7ba9e62af29129aeb1d46654 100644 (file)
@@ -238,7 +238,7 @@ def task(ctx, config):
                     min_size = config.get('min_size', None);
                     if min_size is not None:
                         manager.raw_cluster_cmd(
-                            'osd', 'pool', 'set', pool, 'min_size', min_size)
+                            'osd', 'pool', 'set', pool, 'min_size', str(min_size))
 
                 (remote,) = ctx.cluster.only(role).remotes.iterkeys()
                 proc = remote.run(