]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: fixed rbd_mirror teuthology runtime errors 9232/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 18 May 2016 18:17:13 +0000 (14:17 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Fri, 20 May 2016 18:32:32 +0000 (11:32 -0700)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 8ef09c4d8d3c7c6fbc9b6f7ef17cca0179e73468)

qa/workunits/rbd/rbd_mirror.sh
qa/workunits/rbd/rbd_mirror_stress.sh

index e4301fa8a1e8d02ddaab7546910b74c2faadc457..d65a161ad65786e77da4316cc6f0b6e1466ad0af 100755 (executable)
@@ -71,9 +71,9 @@ TEMPDIR=
 # by default.
 #
 # RBD_MIRROR_USE_EXISTING_CLUSTER - if set, do not start and stop ceph clusters
-# RBD_MIRROR_USE_EXISTING_DAEMON - if set, use an existing instance of rbd-mirror
-#                                  running as ceph client $CEPH_ID. If empty,
-#                                  this script will start and stop rbd-mirror
+# RBD_MIRROR_USE_RBD_MIRROR - if set, use an existing instance of rbd-mirror
+#                             running as ceph client $CEPH_ID. If empty,
+#                             this script will start and stop rbd-mirror
 
 #
 # Functions
@@ -492,7 +492,9 @@ wait_for_image_replay_started ${CLUSTER1} ${image}
 write_image ${CLUSTER2} ${image} 100
 wait_for_replay_complete ${CLUSTER1} ${CLUSTER2} ${image}
 test_status_in_pool_dir ${CLUSTER1} ${image} 'up+replaying' 'master_position'
-test_status_in_pool_dir ${CLUSTER2} ${image} 'down+unknown'
+if [ -z "${RBD_MIRROR_USE_RBD_MIRROR}" ]; then
+  test_status_in_pool_dir ${CLUSTER2} ${image} 'down+unknown'
+fi
 compare_images ${image}
 
 testlog "TEST: stop mirror, add image, start mirror and test replay"
@@ -504,7 +506,9 @@ start_mirror ${CLUSTER1}
 wait_for_image_replay_started ${CLUSTER1} ${image1}
 wait_for_replay_complete ${CLUSTER1} ${CLUSTER2} ${image1}
 test_status_in_pool_dir ${CLUSTER1} ${image1} 'up+replaying' 'master_position'
-test_status_in_pool_dir ${CLUSTER2} ${image1} 'down+unknown'
+if [ -z "${RBD_MIRROR_USE_RBD_MIRROR}" ]; then
+  test_status_in_pool_dir ${CLUSTER2} ${image1} 'down+unknown'
+fi
 compare_images ${image1}
 
 testlog "TEST: test the first image is replaying after restart"
index 332dc1194fa352e81ab1a11d3c129de784e19f08..b9f130215904d1625bd24bed22c9eefaf43781f2 100755 (executable)
@@ -71,10 +71,9 @@ TEMPDIR=
 # by default.
 #
 # RBD_MIRROR_USE_EXISTING_CLUSTER - if set, do not start and stop ceph clusters
-# RBD_MIRROR_USE_EXISTING_DAEMON - if set, use an existing instance of rbd-mirror
-#                                  running as ceph client $CEPH_ID. If empty,
-#                                  this script will start and stop rbd-mirror
-
+# RBD_MIRROR_USE_RBD_MIRROR - if set, use an existing instance of rbd-mirror
+#                             running as ceph client $CEPH_ID. If empty,
+#                             this script will start and stop rbd-mirror
 #
 # Functions
 #