]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add basic omap testing capability
authorNeha Ojha <nojha@redhat.com>
Fri, 28 Jun 2019 21:40:27 +0000 (14:40 -0700)
committerNeha Ojha <nojha@redhat.com>
Thu, 18 Jul 2019 18:13:28 +0000 (11:13 -0700)
Signed-off-by: Neha Ojha <nojha@redhat.com>
qa/tasks/radosbench.py

index dd1f85dee7af023ddd8ada364bf9d3d3bb28eeeb..01b36fdbaaebfc6f0e5d4260125748758d3ab301 100644 (file)
@@ -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,