Skip to content

Commit

Permalink
Merge pull request #9232 from jdurgin/wip-mirror-workunit-jewel
Browse files Browse the repository at this point in the history
jewel: qa/workunits/rbd: fixed rbd_mirror teuthology runtime errors

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
Jason Dillaman committed May 20, 2016
2 parents 7834070 + e0dfc55 commit c11db6f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
14 changes: 9 additions & 5 deletions qa/workunits/rbd/rbd_mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down
7 changes: 3 additions & 4 deletions qa/workunits/rbd/rbd_mirror_stress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit c11db6f

Please sign in to comment.