4 # make sure cephadm notices the new IP
7 - ceph orch device ls --refresh
9 # stop kernel nfs server, if running
12 - systemctl stop nfs-server
16 - ceph fs volume create foofs
18 # deploy nfs + ingress
27 - service_type: ingress
30 backend_service: nfs.foo
33 virtual_ip: "{{VIP0}}/{{VIPPREFIXLEN}}"
34 - cephadm.wait_for_service:
36 - cephadm.wait_for_service:
37 service: ingress.nfs.foo
43 - ceph nfs export create cephfs --fsname foofs --cluster-id foo --pseudo-path /fake
49 - mount -t nfs {{VIP0}}:/fake /mnt/foo
50 - echo test > /mnt/foo/testfile
53 # take each gateway down in turn and ensure things still work
59 echo "Check with each haproxy down in turn..."
60 for haproxy in `ceph orch ps | grep ^haproxy.nfs.foo. | awk '{print $1}'`; do
61 ceph orch daemon stop $haproxy
62 while ! ceph orch ps | grep $haproxy | grep stopped; do sleep 1 ; done
64 echo $haproxy > /mnt/foo/testfile
66 ceph orch daemon start $haproxy
67 while ! ceph orch ps | grep $haproxy | grep running; do sleep 1 ; done