]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/radosbench: add extra_args conf
authorPatrick Donnelly <pdonnell@ibm.com>
Mon, 19 May 2025 19:02:48 +0000 (15:02 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 5 Jan 2026 21:23:36 +0000 (16:23 -0500)
So we can easily add extra debug flags or whatever.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
qa/tasks/radosbench.py

index 683d5af489367dbcb48e1677b3e1112f43c522c8..035f9542b8abee9a2b8bc51d5edf3cf380ba313c 100644 (file)
@@ -3,6 +3,7 @@ Rados benchmarking
 """
 import contextlib
 import logging
+import shlex
 
 from teuthology.orchestra import run
 from teuthology import misc as teuthology
@@ -19,6 +20,7 @@ def task(ctx, config):
     The config should be as follows:
 
     radosbench:
+        extra_args: ...
         auth_exit_on_failure: <int>
         clients: [client list]
         expected_rc: <int>
@@ -55,6 +57,7 @@ def task(ctx, config):
     manager = ctx.managers['ceph']
     runtype = config.get('type', 'write')
 
+    config_extra_args = shlex.split(config.setdefault('extra_args', ''))
     expected_rc = config.setdefault('expected_rc', 0)
 
     create_pool = config.get('create_pool', True)
@@ -97,6 +100,7 @@ def task(ctx, config):
             'rados',
         ]
         extra_args = [
+            *config_extra_args,
             '--no-log-to-stderr',
             f'--name={role}',
             f'--pool={pool}',