]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/rbd: tweak mirror tests
authorMykola Golub <mgolub@suse.com>
Tue, 18 Jun 2019 11:04:59 +0000 (12:04 +0100)
committerMykola Golub <mgolub@suse.com>
Tue, 18 Jun 2019 11:08:58 +0000 (12:08 +0100)
(after "image mirror disable" started to disable journaling)

Signed-off-by: Mykola Golub <mgolub@suse.com>
qa/workunits/rbd/rbd_mirror.sh
qa/workunits/rbd/rbd_mirror_helpers.sh

index 80d7b5deafd967651635eb7a9b3bf028808b0ac7..2a69347544ff4f713fd41f9ca92a2778175c42b9 100755 (executable)
@@ -298,6 +298,7 @@ done
 
 set_pool_mirror_mode ${CLUSTER2} ${POOL} 'pool'
 for i in ${image2} ${image4}; do
+  enable_journaling ${CLUSTER2} ${POOL} ${i}
   wait_for_image_present ${CLUSTER1} ${POOL} ${i} 'present'
   wait_for_snap_present ${CLUSTER1} ${POOL} ${i} 'snap2'
   wait_for_image_replay_started ${CLUSTER1} ${POOL} ${i}
@@ -324,6 +325,7 @@ fi
 start_mirrors ${CLUSTER1}
 wait_for_image_present ${CLUSTER1} ${POOL} ${image} 'deleted'
 set_pool_mirror_mode ${CLUSTER2} ${POOL} 'pool'
+enable_journaling ${CLUSTER2} ${POOL} ${image}
 wait_for_image_present ${CLUSTER1} ${POOL} ${image} 'present'
 wait_for_image_replay_started ${CLUSTER1} ${POOL} ${image}
 
index 5317bc06b421622c7be6a01c4362b1e7376e9519..8f560689ef2cae5cdb9eef6de15092dc7d7e6f96 100755 (executable)
@@ -731,6 +731,15 @@ create_image()
        --image-feature layering,exclusive-lock,journaling $@ ${image}
 }
 
+enable_journaling()
+{
+    local cluster=$1
+    local pool=$2
+    local image=$3
+
+    rbd --cluster ${cluster} -p ${pool} feature enable ${image} journaling
+}
+
 set_image_meta()
 {
     local cluster=$1