Skip to content

Commit

Permalink
qa/suites/rbd: thrash rbd-mirror daemon during tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
Jason Dillaman committed Apr 23, 2018
1 parent b28b2ee commit e32baa2
Show file tree
Hide file tree
Showing 28 changed files with 401 additions and 233 deletions.
1 change: 0 additions & 1 deletion qa/suites/rbd/mirror-ha/base

This file was deleted.

1 change: 0 additions & 1 deletion qa/suites/rbd/mirror-ha/cluster

This file was deleted.

1 change: 0 additions & 1 deletion qa/suites/rbd/mirror-ha/msgr-failures

This file was deleted.

1 change: 0 additions & 1 deletion qa/suites/rbd/mirror-ha/objectstore

This file was deleted.

16 changes: 0 additions & 16 deletions qa/suites/rbd/mirror-ha/workloads/rbd-mirror-ha-workunit.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions qa/suites/rbd/mirror-thrash/cluster/2-node.yaml
@@ -0,0 +1,25 @@
meta:
- desc: 2 ceph clusters with 1 mon and 3 osds each
roles:
- - cluster1.mon.a
- cluster1.mgr.x
- cluster2.mgr.x
- cluster1.osd.0
- cluster1.osd.1
- cluster1.osd.2
- cluster1.client.0
- cluster2.client.0
- - cluster2.mon.a
- cluster2.osd.0
- cluster2.osd.1
- cluster2.osd.2
- cluster1.client.mirror
- cluster1.client.mirror.0
- cluster1.client.mirror.1
- cluster1.client.mirror.2
- cluster1.client.mirror.3
- cluster2.client.mirror
- cluster2.client.mirror.0
- cluster2.client.mirror.1
- cluster2.client.mirror.2
- cluster2.client.mirror.3
File renamed without changes.
1 change: 1 addition & 0 deletions qa/suites/rbd/mirror-thrash/msgr-failures
1 change: 1 addition & 0 deletions qa/suites/rbd/mirror-thrash/objectstore
23 changes: 23 additions & 0 deletions qa/suites/rbd/mirror-thrash/rbd-mirror/four-per-cluster.yaml
@@ -0,0 +1,23 @@
meta:
- desc: run four rbd-mirror daemons per cluster
tasks:
- rbd-mirror:
client: cluster1.client.mirror.0
- rbd-mirror:
client: cluster1.client.mirror.1
- rbd-mirror:
client: cluster1.client.mirror.2
- rbd-mirror:
client: cluster1.client.mirror.3
- rbd-mirror:
client: cluster2.client.mirror.0
- rbd-mirror:
client: cluster2.client.mirror.1
- rbd-mirror:
client: cluster2.client.mirror.2
- rbd-mirror:
client: cluster2.client.mirror.3
- rbd-mirror-thrash:
cluster: cluster1
- rbd-mirror-thrash:
cluster: cluster2
18 changes: 18 additions & 0 deletions qa/suites/rbd/mirror-thrash/users/mirror.yaml
@@ -0,0 +1,18 @@
meta:
- desc: configure the permissions for client.mirror
overrides:
ceph:
conf:
# override to make these names predictable
client.mirror.0:
admin socket: /var/run/ceph/rbd-mirror.$cluster-$name.asok
pid file: /var/run/ceph/rbd-mirror.$cluster-$name.pid
client.mirror.1:
admin socket: /var/run/ceph/rbd-mirror.$cluster-$name.asok
pid file: /var/run/ceph/rbd-mirror.$cluster-$name.pid
client.mirror.2:
admin socket: /var/run/ceph/rbd-mirror.$cluster-$name.asok
pid file: /var/run/ceph/rbd-mirror.$cluster-$name.pid
client.mirror.3:
admin socket: /var/run/ceph/rbd-mirror.$cluster-$name.asok
pid file: /var/run/ceph/rbd-mirror.$cluster-$name.pid
Expand Up @@ -7,6 +7,7 @@ tasks:
env:
# override workunit setting of CEPH_ARGS='--cluster'
CEPH_ARGS: ''
RBD_MIRROR_INSTANCES: '4'
RBD_MIRROR_USE_EXISTING_CLUSTER: '1'
RBD_MIRROR_USE_RBD_MIRROR: '1'
timeout: 6h
12 changes: 12 additions & 0 deletions qa/suites/rbd/mirror-thrash/workloads/rbd-mirror-workunit.yaml
@@ -0,0 +1,12 @@
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_INSTANCES: '4'
RBD_MIRROR_USE_EXISTING_CLUSTER: '1'
RBD_MIRROR_USE_RBD_MIRROR: '1'
1 change: 1 addition & 0 deletions qa/suites/rbd/mirror/base
16 changes: 15 additions & 1 deletion qa/suites/rbd/mirror/cluster/2-node.yaml
Expand Up @@ -3,15 +3,29 @@ meta:
roles:
- - cluster1.mon.a
- cluster1.mgr.x
- cluster2.mgr.x
- cluster1.osd.0
- cluster1.osd.1
- cluster1.osd.2
- cluster1.client.0
- cluster2.client.0
- - cluster2.mon.a
- cluster2.mgr.x
- cluster2.osd.0
- cluster2.osd.1
- cluster2.osd.2
- cluster1.client.mirror
- cluster1.client.mirror.0
- cluster1.client.mirror.1
- cluster1.client.mirror.2
- cluster1.client.mirror.3
- cluster1.client.mirror.4
- cluster1.client.mirror.5
- cluster1.client.mirror.6
- cluster2.client.mirror
- cluster2.client.mirror.0
- cluster2.client.mirror.1
- cluster2.client.mirror.2
- cluster2.client.mirror.3
- cluster2.client.mirror.4
- cluster2.client.mirror.5
- cluster2.client.mirror.6
2 changes: 1 addition & 1 deletion qa/suites/rbd/mirror/msgr-failures
2 changes: 1 addition & 1 deletion qa/suites/rbd/mirror/objectstore
19 changes: 0 additions & 19 deletions qa/suites/rbd/mirror/rbd-mirror/one-per-cluster.yaml

This file was deleted.

1 change: 1 addition & 0 deletions qa/suites/rbd/mirror/users
24 changes: 24 additions & 0 deletions qa/suites/rbd/mirror/workloads/rbd-mirror-ha-workunit.yaml
@@ -0,0 +1,24 @@
meta:
- desc: run the rbd_mirror_ha.sh workunit to test the rbd-mirror daemon
overrides:
ceph:
conf:
# override to make these names predictable
client.mirror.4:
admin socket: /var/run/ceph/rbd-mirror.$cluster-$name.asok
pid file: /var/run/ceph/rbd-mirror.$cluster-$name.pid
client.mirror.5:
admin socket: /var/run/ceph/rbd-mirror.$cluster-$name.asok
pid file: /var/run/ceph/rbd-mirror.$cluster-$name.pid
client.mirror.6:
admin socket: /var/run/ceph/rbd-mirror.$cluster-$name.asok
pid file: /var/run/ceph/rbd-mirror.$cluster-$name.pid
tasks:
- workunit:
clients:
cluster1.client.mirror: [rbd/rbd_mirror_ha.sh]
env:
# override workunit setting of CEPH_ARGS='--cluster'
CEPH_ARGS: ''
RBD_MIRROR_USE_EXISTING_CLUSTER: '1'
timeout: 6h
2 changes: 1 addition & 1 deletion qa/suites/rbd/mirror/workloads/rbd-mirror-workunit.yaml
Expand Up @@ -7,5 +7,5 @@ tasks:
env:
# override workunit setting of CEPH_ARGS='--cluster'
CEPH_ARGS: ''
RBD_MIRROR_INSTANCES: '4'
RBD_MIRROR_USE_EXISTING_CLUSTER: '1'
RBD_MIRROR_USE_RBD_MIRROR: '1'

0 comments on commit e32baa2

Please sign in to comment.