]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/smb: add an argument to set up volume mappings
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 29 Jun 2026 18:25:00 +0000 (14:25 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Sat, 11 Jul 2026 14:38:31 +0000 (10:38 -0400)
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 <jmulligan@redhat.com>
qa/workunits/smb/tests/cephutil.py

index 3da118db4d513a0b0a384c03c2452f8e9cc67c8b..07ddab8f8700be71aec7b2950f7159bc0849657a 100644 (file)
@@ -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: