]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/rbd: before removing image make sure it is not bootstrapped
authorMykola Golub <mgolub@mirantis.com>
Wed, 6 Jul 2016 09:59:25 +0000 (12:59 +0300)
committerMykola Golub <mgolub@mirantis.com>
Wed, 6 Jul 2016 09:59:25 +0000 (12:59 +0300)
If an image is being bootstrapped, it implies that the rbd-mirror
daemon currently has the image open. The removal API will prevent the
removal of any image that is opened by another client.

Works-around: http://tracker.ceph.com/issues/16555
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
qa/workunits/rbd/rbd_mirror.sh

index 14f27785671c2e01a5b449d5422d4f1b31c6670b..78978124a4d3c83757e3ce0641efe322240a2adc 100755 (executable)
@@ -170,6 +170,8 @@ unprotect_snapshot ${CLUSTER2} ${POOL} ${image5} 'snap2'
 for i in ${image3} ${image5}; do
   remove_snapshot ${CLUSTER2} ${POOL} ${i} 'snap1'
   remove_snapshot ${CLUSTER2} ${POOL} ${i} 'snap2'
+  # workaround #16555: before removing make sure it is not still bootstrapped
+  wait_for_image_replay_started ${CLUSTER1} ${POOL} ${i}
   remove_image ${CLUSTER2} ${POOL} ${i}
 done