also adjust the smoke test to align with the changes.
Signed-off-by: VinayBhaskar-V <vvarada@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
wait_for_group_present ${CLUSTER1} ${POOL}/${NS1} ${group} 0
remove_image_retry ${CLUSTER2} ${POOL}/${NS1} ${image}
wait_for_image_present ${CLUSTER1} ${POOL}/${NS1} ${image} 'deleted'
-group_remove ${CLUSTER1} ${POOL}/${NS1}/${group}
+group_remove ${CLUSTER2} ${POOL}/${NS1}/${group}
wait_for_group_not_present ${CLUSTER1} ${POOL} ${NS1}/${group}
mirror_group_disable ${CLUSTER2} ${POOL}/${NS2}/${group}
wait_for_image_present ${CLUSTER1} ${POOL}/${NS2} ${image} 'deleted'
return r;
}
- r = Mirror<I>::group_disable(io_ctx, group_name, true);
+ r = Mirror<I>::group_disable(io_ctx, group_name, false);
if (r < 0) {
+ lderr(cct) << "failed to disable mirroring: " << cpp_strerror(r) << dendl;
return r;
}
}
if (state != cls::rbd::MIRROR_SNAPSHOT_STATE_PRIMARY && !force) {
- lderr(cct) << "group " << group_name
- << " is not primary, disable is allowed when cluster is primary"
- << " or if you know what you are doing, add a force flag"
+ lderr(cct) << "mirrored group " << group_name
+ << " is not primary, add force option to disable mirroring"
<< dendl;
return -EINVAL;
}