]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/orch/cephadm/smb: add new smb.workunit task (non-AD)
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 1 Dec 2025 16:03:40 +0000 (11:03 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 9 Dec 2025 21:32:39 +0000 (16:32 -0500)
Add some instances of the new smb workunit wrapper to a couple of
non-AD tests that require the user name and password to be explicitly
provided.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
qa/suites/orch/cephadm/smb/tasks/deploy_smb_mgr_basic.yaml
qa/suites/orch/cephadm/smb/tasks/deploy_smb_mgr_res_basic.yaml

index 94033e59fb57cc6903c58339b28341e45450d766..97dbc077126a3dd947610018b8bae2de83114ced 100644 (file)
@@ -52,6 +52,22 @@ tasks:
       - "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user1%t3stP4ss1 //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
       - "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user2%t3stP4ss2 //{{'host.a'|role_to_remote|attr('ip_address')}}/share2 -c ls"
 
+- smb.workunit:
+    admin_node: host.a
+    smb_nodes: [host.a]
+    smb_shares:
+      - share1
+      - share2
+    smb_users:
+      - username: user1
+        password: t3stP4ss1
+      - username: user2
+        password: t3stP4ss2
+    timeout: 1h
+    clients:
+      client.0:
+        - [default]
+
 - cephadm.shell:
     host.a:
       - cmd: ceph smb share rm modusr1 share2
index 99f145f9d9860e82744b30aa05ac76494e5c6a36..3dd2ab26ca900e3822dd0db7c2dcece7927ddf7c 100644 (file)
@@ -79,6 +79,22 @@ tasks:
       - "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user1%t3stP4ss1 //{{'host.a'|role_to_remote|attr('ip_address')}}/share1 -c ls"
       - "{{ctx.samba_client_container_cmd|join(' ')}} smbclient -U user2%t3stP4ss2 //{{'host.a'|role_to_remote|attr('ip_address')}}/share2 -c ls"
 
+- smb.workunit:
+    admin_node: host.a
+    smb_nodes: [host.a]
+    smb_shares:
+      - share1
+      - share2
+    smb_users:
+      - username: user1
+        password: t3stP4ss1
+      - username: user2
+        password: t3stP4ss2
+    timeout: 1h
+    clients:
+      client.0:
+        - [default]
+
 - cephadm.shell:
     host.a:
       - cmd: ceph smb apply -i -