]> git.proxmox.com Git - ceph.git/blame - ceph/qa/suites/orch/cephadm/smoke-roleless/2-services/nfs-keepalive-only.yaml
update ceph source to reef 18.1.2
[ceph.git] / ceph / qa / suites / orch / cephadm / smoke-roleless / 2-services / nfs-keepalive-only.yaml
CommitLineData
1e59de90
TL
1tasks:
2- vip:
3
4# make sure cephadm notices the new IP
5- cephadm.shell:
6 host.a:
7 - ceph orch device ls --refresh
8
9# stop kernel nfs server, if running
10- vip.exec:
11 all-hosts:
12 - systemctl stop nfs-server
13
14- cephadm.shell:
15 host.a:
16 - ceph fs volume create foofs
17
18# deploy nfs + keepalive-only ingress service
19- cephadm.apply:
20 specs:
21 - service_type: nfs
22 service_id: foo
23 placement:
24 count: 1
25 spec:
26 port: 2049
27 virtual_ip: "{{VIP0}}"
28 - service_type: ingress
29 service_id: nfs.foo
30 placement:
31 count: 1
32 spec:
33 backend_service: nfs.foo
34 monitor_port: 9002
35 virtual_ip: "{{VIP0}}/{{VIPPREFIXLEN}}"
36 keepalive_only: true
37- cephadm.wait_for_service:
38 service: nfs.foo
39- cephadm.wait_for_service:
40 service: ingress.nfs.foo
41
42# export and mount
43- cephadm.shell:
44 host.a:
45 - ceph nfs export create cephfs --fsname foofs --cluster-id foo --pseudo-path /fake
46
47# make sure mount can be reached over VIP, ensuring both that
48# keepalived is maintaining the VIP and that the nfs has bound to it
49- vip.exec:
50 host.a:
51 - mkdir /mnt/foo
52 - sleep 5
53 - mount -t nfs {{VIP0}}:/fake /mnt/foo
54 - echo test > /mnt/foo/testfile
55 - sync