]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
suites/rbd: add basic mirroring suite
authorJosh Durgin <jdurgin@redhat.com>
Mon, 4 Apr 2016 23:54:17 +0000 (16:54 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Mon, 9 May 2016 21:55:27 +0000 (14:55 -0700)
Just one workunit to run so far.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
suites/rbd/mirror/% [new file with mode: 0644]
suites/rbd/mirror/base/install.yaml [new file with mode: 0644]
suites/rbd/mirror/cluster/2-node.yaml [new file with mode: 0644]
suites/rbd/mirror/fs [new symlink]
suites/rbd/mirror/msgr-failures [new symlink]
suites/rbd/mirror/rbd-mirror/one-per-cluster.yaml [new file with mode: 0644]
suites/rbd/mirror/workloads/rbd-mirror-workunit.yaml [new file with mode: 0644]

diff --git a/suites/rbd/mirror/% b/suites/rbd/mirror/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/suites/rbd/mirror/base/install.yaml b/suites/rbd/mirror/base/install.yaml
new file mode 100644 (file)
index 0000000..365c3a8
--- /dev/null
@@ -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 (file)
index 0000000..e88b12b
--- /dev/null
@@ -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 (symlink)
index 0000000..3658920
--- /dev/null
@@ -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 (symlink)
index 0000000..db59eb4
--- /dev/null
@@ -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 (file)
index 0000000..5a7a5f5
--- /dev/null
@@ -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 (file)
index 0000000..2e16642
--- /dev/null
@@ -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'