]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: wait for demote status is propagated 19073/head
authorMykola Golub <to.my.trociny@gmail.com>
Tue, 21 Nov 2017 11:16:57 +0000 (13:16 +0200)
committerMykola Golub <to.my.trociny@gmail.com>
Tue, 21 Nov 2017 11:22:50 +0000 (13:22 +0200)
(before promoting the image on another cluster)

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
qa/workunits/rbd/rbd_mirror.sh

index 618ae10e6a23f1361cf17b7779c3a975066c9756..2c2422f82b2bc5a7facaaafb031c57326cd69c67 100755 (executable)
@@ -425,6 +425,7 @@ wait_for_status_in_pool_dir ${CLUSTER1} ${POOL} ${image} 'up+unknown'
 promote_image ${CLUSTER1} ${POOL} ${image}
 write_image ${CLUSTER1} ${POOL} ${image} 10
 demote_image ${CLUSTER1} ${POOL} ${image}
+wait_for_status_in_pool_dir ${CLUSTER2} ${POOL} ${image} 'up+unknown'
 promote_image ${CLUSTER2} ${POOL} ${image}
 wait_for_status_in_pool_dir ${CLUSTER1} ${POOL} ${image} 'up+error' 'split-brain'
 request_resync_image ${CLUSTER1} ${POOL} ${image} image_id