]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephadm: teuthology test for nfs ingress-mode=haproxy-protocol
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 21 Mar 2023 20:20:42 +0000 (16:20 -0400)
committerAdam King <adking@redhat.com>
Thu, 31 Aug 2023 17:36:15 +0000 (13:36 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit a1f6314fd831eb934e19dce95d532e6744ffef39)

qa/suites/orch/cephadm/smoke-roleless/2-services/nfs-haproxy-proto.yaml [new file with mode: 0644]

diff --git a/qa/suites/orch/cephadm/smoke-roleless/2-services/nfs-haproxy-proto.yaml b/qa/suites/orch/cephadm/smoke-roleless/2-services/nfs-haproxy-proto.yaml
new file mode 100644 (file)
index 0000000..477e5c4
--- /dev/null
@@ -0,0 +1,35 @@
+tasks:
+- vip:
+
+# make sure cephadm notices the new IP
+- cephadm.shell:
+    host.a:
+      - ceph orch device ls --refresh
+
+# stop kernel nfs server, if running
+- vip.exec:
+    all-hosts:
+      - systemctl stop nfs-server
+
+# use nfs module to create cluster and export
+- cephadm.shell:
+    host.a:
+      - ceph fs volume create fs1
+      - ceph nfs cluster create happy --ingress --virtual-ip={{VIP0}} --ingress-mode=haproxy-protocol
+      - ceph nfs export create cephfs --fsname fs1 --cluster-id happy --pseudo-path /d1
+
+# wait for services to start
+- cephadm.wait_for_service:
+    service: nfs.happy
+- cephadm.wait_for_service:
+    service: ingress.nfs.happy
+
+# make sure mount can be reached over VIP, ensuring both that
+# keepalived is maintaining the VIP and that the nfs has bound to it
+- vip.exec:
+    host.a:
+      - mkdir /mnt/happy
+      - sleep 1
+      - mount -t nfs {{VIP0}}:/d1 /mnt/happy
+      - echo test > /mnt/happy/testfile
+      - sync