suites/rbd: add basic mirroring suite

Just one workunit to run so far.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
Josh Durgin 2016-04-04 16:54:17 -07:00
parent ed33f86589
commit 67d7d997c2
7 changed files with 55 additions and 0 deletions

0
suites/rbd/mirror/% Normal file
View File

View File

@ -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

View File

@ -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

1
suites/rbd/mirror/fs Symbolic link
View File

@ -0,0 +1 @@
../basic/fs

View File

@ -0,0 +1 @@
../basic/msgr-failures

View File

@ -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

View File

@ -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'