diff --git a/suites/rbd/mirror/% b/suites/rbd/mirror/% new file mode 100644 index 00000000000..e69de29bb2d diff --git a/suites/rbd/mirror/base/install.yaml b/suites/rbd/mirror/base/install.yaml new file mode 100644 index 00000000000..365c3a8cb0e --- /dev/null +++ b/suites/rbd/mirror/base/install.yaml @@ -0,0 +1,9 @@ +meta: +- desc: run two ceph clusters and install rbd-mirror +tasks: +- install: + extra_packages: [rbd-mirror] +- ceph: + cluster: cluster1 +- ceph: + cluster: cluster2 diff --git a/suites/rbd/mirror/cluster/2-node.yaml b/suites/rbd/mirror/cluster/2-node.yaml new file mode 100644 index 00000000000..e88b12b1381 --- /dev/null +++ b/suites/rbd/mirror/cluster/2-node.yaml @@ -0,0 +1,19 @@ +meta: +- desc: 2 ceph clusters with 3 mons and 3 osds each +roles: +- - cluster1.mon.a + - cluster1.mon.b + - cluster1.osd.0 + - cluster1.osd.1 + - cluster1.osd.2 + - cluster2.mon.c + - cluster1.client.0 + - cluster2.client.0 +- - cluster1.mon.c + - cluster2.mon.a + - cluster2.mon.b + - cluster2.osd.0 + - cluster2.osd.1 + - cluster2.osd.2 + - cluster1.client.mirror + - cluster2.client.mirror diff --git a/suites/rbd/mirror/fs b/suites/rbd/mirror/fs new file mode 120000 index 00000000000..3658920363d --- /dev/null +++ b/suites/rbd/mirror/fs @@ -0,0 +1 @@ +../basic/fs \ No newline at end of file diff --git a/suites/rbd/mirror/msgr-failures b/suites/rbd/mirror/msgr-failures new file mode 120000 index 00000000000..db59eb46cbb --- /dev/null +++ b/suites/rbd/mirror/msgr-failures @@ -0,0 +1 @@ +../basic/msgr-failures \ No newline at end of file diff --git a/suites/rbd/mirror/rbd-mirror/one-per-cluster.yaml b/suites/rbd/mirror/rbd-mirror/one-per-cluster.yaml new file mode 100644 index 00000000000..5a7a5f5f00f --- /dev/null +++ b/suites/rbd/mirror/rbd-mirror/one-per-cluster.yaml @@ -0,0 +1,14 @@ +meta: +- desc: run one rbd-mirror daemon per cluster +overrides: + ceph: + conf: + client.mirror: + # override to make these names predictable + admin socket: /var/run/ceph/$cluster-$name.asok + pid file: /var/run/ceph/$cluster-$name.pid +tasks: +- rbd-mirror: + client: cluster1.client.mirror +- rbd-mirror: + client: cluster2.client.mirror diff --git a/suites/rbd/mirror/workloads/rbd-mirror-workunit.yaml b/suites/rbd/mirror/workloads/rbd-mirror-workunit.yaml new file mode 100644 index 00000000000..2e166429f9a --- /dev/null +++ b/suites/rbd/mirror/workloads/rbd-mirror-workunit.yaml @@ -0,0 +1,11 @@ +meta: +- desc: run the rbd_mirror.sh workunit to test the rbd-mirror daemon +tasks: +- workunit: + clients: + cluster1.client.mirror: [rbd/rbd_mirror.sh] + env: + # override workunit setting of CEPH_ARGS='--cluster' + CEPH_ARGS: '' + RBD_MIRROR_USE_EXISTING_CLUSTER: '1' + RBD_MIRROR_USE_RBD_MIRROR: '1'