]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/workunits/rbd/rbd_mirror_stress.sh
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / qa / workunits / rbd / rbd_mirror_stress.sh
index b07bf0ed118bfe6d334b7f16a735631e10fa273f..a1d7d03470a61c858a22af319419a31ab3cfe6e1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -ex
 #
 # rbd_mirror_stress.sh - stress test rbd-mirror daemon
 #
@@ -13,6 +13,8 @@ export LOCKDEP=0
 
 . $(dirname $0)/rbd_mirror_helpers.sh
 
+setup
+
 create_snap()
 {
     local cluster=$1
@@ -83,8 +85,8 @@ wait_for_pool_healthy()
     return 1
 }
 
-start_mirror ${CLUSTER1}
-start_mirror ${CLUSTER2}
+start_mirrors ${CLUSTER1}
+start_mirrors ${CLUSTER2}
 
 testlog "TEST: add image and test replay after client crashes"
 image=test
@@ -182,5 +184,3 @@ do
   purge_snapshots ${CLUSTER2} ${POOL} ${image}
   remove_image_retry ${CLUSTER2} ${POOL} ${image}
 done
-
-echo OK