From 487963cbf048fa537e2730272b38f7a9d5bd10f7 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 12 Feb 2018 15:02:42 -0500 Subject: [PATCH] test/librbd: disable clone v2 for negative test cases Fixes: http://tracker.ceph.com/issues/22979 Signed-off-by: Jason Dillaman --- src/test/pybind/test_rbd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/pybind/test_rbd.py b/src/test/pybind/test_rbd.py index 35d3bb03ca2..3a71bee7abf 100644 --- a/src/test/pybind/test_rbd.py +++ b/src/test/pybind/test_rbd.py @@ -1041,8 +1041,10 @@ class TestClone(object): self.image.create_snap('snap2') global features clone_name2 = get_temp_image_name() + rados.conf_set("rbd_default_clone_format", "1") assert_raises(InvalidArgument, self.rbd.clone, ioctx, image_name, 'snap2', ioctx, clone_name2, features) + rados.conf_set("rbd_default_clone_format", "auto") self.image.remove_snap('snap2') def test_unprotect_with_children(self): @@ -1065,8 +1067,10 @@ class TestClone(object): # ...with a clone of the same parent other_clone_name = get_temp_image_name() + rados.conf_set("rbd_default_clone_format", "1") self.rbd.clone(ioctx, image_name, 'snap1', other_ioctx, other_clone_name, features) + rados.conf_set("rbd_default_clone_format", "auto") self.other_clone = Image(other_ioctx, other_clone_name) # validate its parent info (pool, image, snap) = self.other_clone.parent_info() -- 2.39.5