]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: fix bootstrap sequence while the image is removed
authorArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Wed, 28 Jul 2021 12:14:47 +0000 (14:14 +0200)
committerArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Wed, 12 Jan 2022 09:03:41 +0000 (10:03 +0100)
commit195f38e63a030126ad604b5abb07777025b5c4e7
tree86d1a232896b0be89692917cb29087d69799fe89
parent88da13495d5d58fc5caff59ea624f6a5e1a2b8d4
rbd-mirror: fix bootstrap sequence while the image is removed

If the image is being removed the PrepareRemoteImageRequest was
returning the same error if the image was disabled or non primary which
doesn't allow the BootstrapRequest to have the correct error handling.

This commit fix this behavior by considering that the remote image is
already deleted if the image is in disabling state.

Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
(cherry picked from commit ff60aec2d9efa1842383ba0a5c3bd6b5a29389c6)
src/test/rbd_mirror/test_ImageReplayer.cc
src/tools/rbd_mirror/image_replayer/PrepareRemoteImageRequest.cc