]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/pybind/rbd: demoted images cannot be deleted
authorJason Dillaman <dillaman@redhat.com>
Tue, 11 Feb 2020 21:08:30 +0000 (16:08 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 19 Feb 2020 15:36:40 +0000 (10:36 -0500)
Now that we don't delete the last mirror snapshot, the test is failing
because you cannot delete a demoted image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/pybind/test_rbd.py

index 836cc7f5bac04a83f14434d7133e362514a5e972..5ff6d5a752ef3e0eaa9734cc3476fe52507f2482 100644 (file)
@@ -2132,6 +2132,7 @@ class TestMirroring(object):
 
         self.rbd.mirror_peer_remove(ioctx, peer1_uuid)
         self.rbd.mirror_peer_remove(ioctx, peer2_uuid)
+        self.image.mirror_image_promote(False)
 
 class TestTrash(object):