]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: disable clone v2 for negative test cases 20406/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 12 Feb 2018 20:02:42 +0000 (15:02 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 13 Feb 2018 14:14:18 +0000 (09:14 -0500)
Fixes: http://tracker.ceph.com/issues/22979
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/pybind/test_rbd.py

index 35d3bb03ca249ecc9a2cce8e5330eae042999421..3a71bee7abf9c31cc0c81958e3c096deaaf926c1 100644 (file)
@@ -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()