* Fixes the 'fs volume create' happens before the cephfs-mirror daemon start.
* Fixes the 'fs volume rm' happen only after the cephfs-mirror daemon unwinding.
- This prevents the issue of mirror-daemon not returning from a libcephfs call, as
the volumes were deleted during the cephfs_mirror_thrash ing.
Fixes: https://tracker.ceph.com/issues/61182
Signed-off-by: Jos Collin <jcollin@redhat.com>
--- /dev/null
+meta:
+- desc: create/rm volumes and set configs
+
+tasks:
+ - exec:
+ mon.a:
+ - "ceph fs volume create dc"
+ - "ceph fs volume create dc-backup"
+ - full_sequential_finally:
+ - exec:
+ mon.a:
+ - ceph config set mon mon_allow_pool_delete true
+ - ceph fs volume rm dc --yes-i-really-mean-it
+ - ceph fs volume rm dc-backup --yes-i-really-mean-it
--- /dev/null
+meta:
+- desc: run one cephfs-mirror daemon on primary cluster
+tasks:
+- cephfs-mirror:
+ client: client.mirror1
+ run_in_foreground: True
+- cephfs-mirror:
+ client: client.mirror2
+ run_in_foreground: True
+- cephfs-mirror:
+ client: client.mirror3
+ run_in_foreground: True
+++ /dev/null
-meta:
-- desc: run one cephfs-mirror daemon on primary cluster
-tasks:
-- cephfs-mirror:
- client: client.mirror1
- run_in_foreground: True
-- cephfs-mirror:
- client: client.mirror2
- run_in_foreground: True
-- cephfs-mirror:
- client: client.mirror3
- run_in_foreground: True
debug client: 10
tasks:
- - exec:
- mon.a:
- - "ceph fs volume create dc"
- - "ceph fs volume create dc-backup"
- # Remove volumes during unwind to avoid MDS replacement warnings:
- - full_sequential_finally:
- - exec:
- mon.a:
- - ceph config set mon mon_allow_pool_delete true
- - ceph fs volume rm dc --yes-i-really-mean-it
- - ceph fs volume rm dc-backup --yes-i-really-mean-it
- ceph-fuse:
client.1:
cephfs_name: dc