From: Kefu Chai Date: Fri, 28 Apr 2017 14:18:26 +0000 (+0800) Subject: qa/tasks/rados: add optional setting of "min_size" X-Git-Tag: v12.0.3~165^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5f5029802550aa879f715b0feb1bc29d9a1f2ee0;p=ceph.git qa/tasks/rados: add optional setting of "min_size" this setting only affects the newly created pool Fixes: http://tracker.ceph.com/issues/19770 Signed-off-by: Kefu Chai --- diff --git a/qa/tasks/rados.py b/qa/tasks/rados.py index 2ef542fd2785..932d0f479b06 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', min_size) (remote,) = ctx.cluster.only(role).remotes.iterkeys() proc = remote.run(