]> 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>
Tue, 26 Oct 2021 08:28:53 +0000 (10:28 +0200)
commitee55a8ca059c69ce66785bd690db9d98ed2ba628
tree026351c0e0212a0b4a90a66f59ceb922fad8f883
parente19869fbfcebe2edd5d927aae966aea1a1bd77d7
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