]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/rbd_support: bail out when snapshot mirroring is not enabled
authorKefu Chai <kchai@redhat.com>
Wed, 10 Feb 2021 08:30:49 +0000 (16:30 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 18 Feb 2021 14:46:51 +0000 (22:46 +0800)
commit8372d9370b530f953acd5bd6502c46fd11f43109
tree6908bb58dd606eb04edc726b0698288ee11f24fd
parent2bdaed84c4cb16238f6cbeac900a9a906352ef77
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>
src/pybind/mgr/rbd_support/mirror_snapshot_schedule.py