diff --git a/qa/erasure-code/ec-rados-plugin=isa-k=2-m=1.yaml b/qa/erasure-code/ec-rados-plugin=isa-k=2-m=1.yaml index 8d7c49785fa..f69963933c5 100644 --- a/qa/erasure-code/ec-rados-plugin=isa-k=2-m=1.yaml +++ b/qa/erasure-code/ec-rados-plugin=isa-k=2-m=1.yaml @@ -4,6 +4,7 @@ tasks: ops: 4000 objects: 50 ec_pool: true + min_size: 2 write_append_excl: false erasure_code_profile: name: isaprofile diff --git a/qa/tasks/rados.py b/qa/tasks/rados.py index 2ef542fd278..eceff90381c 100644 --- a/qa/tasks/rados.py +++ b/qa/tasks/rados.py @@ -29,6 +29,8 @@ def task(ctx, config): runs: - the pool is remade between runs ec_pool: use an ec pool erasure_code_profile: profile to use with the erasure coded pool + fast_read: enable ec_pool's fast_read + min_size: set the min_size of created pool pool_snaps: use pool snapshots instead of selfmanaged snapshots write_fadvise_dontneed: write behavior like with LIBRADOS_OP_FLAG_FADVISE_DONTNEED. This mean data don't access in the near future. @@ -233,6 +235,10 @@ def task(ctx, config): if config.get('fast_read', False): manager.raw_cluster_cmd( 'osd', 'pool', 'set', pool, 'fast_read', 'true') + min_size = config.get('min_size', None); + if min_size is not None: + manager.raw_cluster_cmd( + 'osd', 'pool', 'set', pool, 'min_size', str(min_size)) (remote,) = ctx.cluster.only(role).remotes.iterkeys() proc = remote.run(