]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/radosbench: only set object size if != block size
authorSage Weil <sage@redhat.com>
Thu, 23 Jan 2020 23:27:30 +0000 (17:27 -0600)
committerSage Weil <sage@redhat.com>
Fri, 24 Jan 2020 03:14:31 +0000 (21:14 -0600)
This is mostly pointless, except that the -O option for objects size
used to be -o for pre-octopus, so passing -O breaks the upgrade tests.
Fortunately, the upgrades use the defaults, so we can just skate by here.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/radosbench.py

index dfe3e6153395e8eada4600cd58dc28d18ea1ffff..90e4795ef1cd6fba93853bd320f7ef05b2f7aea0 100644 (file)
@@ -82,12 +82,12 @@ def task(ctx, config):
             else:
                 pool = manager.create_pool_with_unique_name(erasure_code_profile_name=profile_name)
 
+        size = ['-b', str(config.get('size', 65536))]
         osize = config.get('objectsize', 65536)
-        if osize == 0:
+        if osize == 0 or osize == size:
             objectsize = []
         else:
             objectsize = ['-O', str(osize)]
-        size = ['-b', str(config.get('size', 65536))]
         # If doing a reading run then populate data
         if runtype != "write":
             proc = remote.run(