]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tasks/radosbench: allow cleanup: false
authorSage Weil <sage@redhat.com>
Fri, 11 Sep 2015 20:52:41 +0000 (16:52 -0400)
committerSage Weil <sage@redhat.com>
Fri, 11 Sep 2015 20:52:41 +0000 (16:52 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
tasks/radosbench.py

index af976fd557a316c034f3fbb7f6e5e4735ca036bc..389748249b0aa029fdbe625b959f56227bf65e19 100644 (file)
@@ -29,7 +29,7 @@ def task(ctx, config):
           k: 2
           m: 1
           ruleset-failure-domain: osd
-
+        cleanup: false (defaults to true)
     example:
 
     tasks:
@@ -60,6 +60,9 @@ def task(ctx, config):
         else:
             profile_name = None
 
+        cleanup = []
+        if not config.get('cleanup', True):
+            cleanup = ['--no-cleanup']
         pool = 'data'
         if config.get('create_pool', True):
             if config.get('pool'):
@@ -81,7 +84,7 @@ def task(ctx, config):
                           '-b', str(config.get('size', 4<<20)),
                           '-p' , pool,
                           'bench', str(config.get('time', 360)), 'write',
-                          ]).format(tdir=testdir),
+                          ] + cleanup).format(tdir=testdir),
                 ],
             logger=log.getChild('radosbench.{id}'.format(id=id_)),
             stdin=run.PIPE,