mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
qa/workunits/rbd: tweak mirror tests
(after "image mirror disable" started to disable journaling) Signed-off-by: Mykola Golub <mgolub@suse.com>
This commit is contained in:
parent
d0058e4706
commit
c99e26eff9
@ -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}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user