From: Jason Dillaman Date: Mon, 8 Aug 2016 14:39:01 +0000 (-0400) Subject: qa/workunits/rbd: demote/promote image on same cluster X-Git-Tag: v10.2.4~61^2~36 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d775680dc4eb53c08a692e746dd65c57a560496d;p=ceph.git qa/workunits/rbd: demote/promote image on same cluster Signed-off-by: Jason Dillaman (cherry picked from commit e6aa18ea0df6dc4d1add597bc2d972c79699bf4c) --- diff --git a/qa/workunits/rbd/rbd_mirror.sh b/qa/workunits/rbd/rbd_mirror.sh index e6860397b74..9614d60900b 100755 --- a/qa/workunits/rbd/rbd_mirror.sh +++ b/qa/workunits/rbd/rbd_mirror.sh @@ -93,6 +93,19 @@ admin_daemon ${CLUSTER1} rbd mirror status testlog "TEST: failover and failback" start_mirror ${CLUSTER2} +# demote and promote same cluster +demote_image ${CLUSTER2} ${POOL} ${image} +wait_for_image_replay_stopped ${CLUSTER1} ${POOL} ${image} +test_status_in_pool_dir ${CLUSTER1} ${POOL} ${image} 'up+stopped' +test_status_in_pool_dir ${CLUSTER2} ${POOL} ${image} 'up+stopped' +promote_image ${CLUSTER2} ${POOL} ${image} +wait_for_image_replay_started ${CLUSTER1} ${POOL} ${image} +write_image ${CLUSTER2} ${POOL} ${image} 100 +wait_for_replay_complete ${CLUSTER1} ${CLUSTER2} ${POOL} ${image} +test_status_in_pool_dir ${CLUSTER2} ${POOL} ${image} 'up+stopped' +test_status_in_pool_dir ${CLUSTER1} ${POOL} ${image} 'up+replaying' 'master_position' +compare_images ${POOL} ${image} + # failover demote_image ${CLUSTER2} ${POOL} ${image} wait_for_image_replay_stopped ${CLUSTER1} ${POOL} ${image}