Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mimic: rbd-mirror: cannot restore deferred deletion mirrored images #30828

merged 5 commits into from Oct 17, 2019


Copy link

dillaman commented Oct 10, 2019

trociny and others added 5 commits Apr 15, 2019
Signed-off-by: Mykola Golub <>
(cherry picked from commit 8455d66)

	src/librbd/trash/ removed set state calls
	src/test/librbd/trash/ removed set state test cases
Signed-off-by: Jason Dillaman <>
This will allow the the image to be restored and re-mirrored if

Signed-off-by: Jason Dillaman <>
(cherry picked from commit 73d4577)

	src/test/rbd_mirror/image_deleter/ trivial resolution
This better matches the current behavior where the images are only
removed from the trash.

Signed-off-by: Jason Dillaman <>
(cherry picked from commit 55daa8e)

	src/test/rbd_mirror/CMakeLists.txt: trivial resolution
	src/tools/rbd_mirror/ trivial resolution
	src/tools/rbd_mirror/image_deleter/ trivial resolution
The image deleter wasn't verifying whether or not an image was still in the trash
prior to deleting the image. This not only would incorrectly remove any restored
images but it will also leave the image id object and entry within the directory.

Signed-off-by: Jason Dillaman <>
(cherry picked from commit f091a31)

	src/test/rbd_mirror/image_deleter/ removed state test cases
	src/tools/rbd_mirror/image_deleter/TrashRemoveRequest.h/cc: removed state validation
@trociny trociny added this to the mimic milestone Oct 10, 2019

This comment has been minimized.

Copy link

yuriw commented Oct 10, 2019

@yuriw yuriw merged commit a3a7855 into ceph:mimic Oct 17, 2019
4 checks passed
4 checks passed
Docs: build check OK - docs built
Signed-off-by all commits in this PR are signed
Unmodified Submodules submodules for project are unmodified
make check make check succeeded
@dillaman dillaman deleted the dillaman:wip-41882-mimic branch Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.