From: John Mulligan Date: Mon, 29 Jun 2026 18:25:00 +0000 (-0400) Subject: qa/workunits/smb: add an argument to set up volume mappings X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e77b9efd2d2aba21a1f264801806bd23bab31743;p=ceph.git qa/workunits/smb: add an argument to set up volume mappings Add an argument to the cephadm shell wrapper function that makes it easy and obvious where to add volume mappings. This will be used in a future change to map in a directory containing TLS certificates and such. Signed-off-by: John Mulligan --- diff --git a/qa/workunits/smb/tests/cephutil.py b/qa/workunits/smb/tests/cephutil.py index 3da118db4d5..07ddab8f870 100644 --- a/qa/workunits/smb/tests/cephutil.py +++ b/qa/workunits/smb/tests/cephutil.py @@ -56,6 +56,9 @@ def cephadm_shell_cmd( f'/home/{smb_cfg.ssh_user}/cephtest/cephadm', 'shell', ] + volumes = kwargs.pop('volumes', []) + for v in volumes: + cmd.extend(['-v', v]) cmd += list(args) proc = subprocess.run(cmd, **kwargs) if load is LoadJSON.BOTH: