summaryrefslogtreecommitdiffstats
path: root/qa/tasks/radosbench.py
diff options
context:
space:
mode:
authorNeha Ojha <nojha@redhat.com>2019-06-28 23:40:27 +0200
committerNeha Ojha <nojha@redhat.com>2019-07-18 20:13:28 +0200
commit1bf14c543c0e8365eada9ea15e809debfe0db111 (patch)
treec80c417682f7b3326eb3f13a3967ee2577a78ede /qa/tasks/radosbench.py
parentosd: add hdd and ssd variants for osd_recovery_max_active (diff)
downloadceph-1bf14c543c0e8365eada9ea15e809debfe0db111.tar.xz
ceph-1bf14c543c0e8365eada9ea15e809debfe0db111.zip
qa: add basic omap testing capability
Signed-off-by: Neha Ojha <nojha@redhat.com>
Diffstat (limited to 'qa/tasks/radosbench.py')
-rw-r--r--qa/tasks/radosbench.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/tasks/radosbench.py b/qa/tasks/radosbench.py
index dd1f85dee7a..01b36fdbaae 100644
--- a/qa/tasks/radosbench.py
+++ b/qa/tasks/radosbench.py
@@ -68,6 +68,10 @@ def task(ctx, config):
cleanup = []
if not config.get('cleanup', True):
cleanup = ['--no-cleanup']
+ write_to_omap = []
+ if config.get('write-omap', False):
+ write_to_omap = ['--write-omap']
+ log.info('omap writes')
pool = config.get('pool', 'data')
if create_pool:
@@ -116,7 +120,7 @@ def task(ctx, config):
+ size + objectsize +
['-p' , pool,
'bench', str(config.get('time', 360)), runtype,
- ] + cleanup).format(tdir=testdir),
+ ] + write_to_omap + cleanup).format(tdir=testdir),
],
logger=log.getChild('radosbench.{id}'.format(id=id_)),
stdin=run.PIPE,