Repository navigation
quincy: librbd: create rbd_trash object during pool initialization and namespace creation - #57604
Merged
Merged
Conversation
... of rbd namespace creation. During rbd namespace creation, the image directory object may leak if the initalization of the image directory fails. Initialization of image directory involves creation of the rbd_directory object and a state being set in the object's omap. After creation of the object, error can occur when setting the state in the object's omap. This would fail the rbd namespace creation and leave behind the rbd_directory object. So try to remove the rbd_directory object when rolling back namespace creation. Signed-off-by: Ramana Raja <[email protected]> (cherry picked from commit bdc50a9)
... and RBD namespace creation. It was not possible to remove a RBD image when OSDs were full and the 'rbd_trash' object was not already created in the image's pool or pool namespace. The 'rbd_trash' object was created in a pool or namespace during the first instance of image removal from the pool or namespace. If no images were ever removed from a RBD pool or namespace and the OSDs became full, removal of images using the CLI failed. The failure occured when trying to move the images to trash since the 'rbd_trash' object was missing in the pool or namespace. Fix this issue by creating the rbd_trash object in a pool when initalizing the pool as a RBD pool and when creating a RBD namespace. Fixes: https://tracker.ceph.com/issues/64800 Signed-off-by: Ramana Raja <[email protected]> (cherry picked from commit 0bcb5cf)
'rbd_validate_pool' option is for testing purposes only. So change its level appropriately to 'dev'. Signed-off-by: Ramana Raja <[email protected]> (cherry picked from commit 4117b8e)
idryomov
approved these changes
May 22, 2024
Contributor
|
jenkins test make check |
Contributor
|
@cbodley It looks like you have changed the milestone on this PR, was that intended? |
Contributor
Undoing based on #57764 (comment) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/66115
backport of #56310
parent tracker: https://tracker.ceph.com/issues/64800
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh