]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/rbd_support: bail out when snapshot mirroring is not enabled 39741/head
authorKefu Chai <kchai@redhat.com>
Wed, 10 Feb 2021 08:30:49 +0000 (16:30 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 28 Feb 2021 04:40:10 +0000 (12:40 +0800)
commitfb8c4f514d24bf0edc68a2f7431fcaf7990dac1b
tree87af85c278624df11da3de5ccecdbc06869731b9
parente6c8021df81bf6ea0f58a81f176d1b57f30a990c
mgr/rbd_support: bail out when snapshot mirroring is not enabled

before this change, we continue on and try to get mirror info of
specified image after calling close_image(), even the snapshot mirroring
is not enabled.

after this change, we bail out after calling close_image(). this
behavior is consistent with other places where we handle errors.

Fixes: https://tracker.ceph.com/issues/49355
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8372d9370b530f953acd5bd6502c46fd11f43109)
src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py