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

rbd: Fix volume leak if metadata operation fails #3436

Merged
merged 2 commits into from
Oct 17, 2022

Conversation

Madhu-1
Copy link
Collaborator

@Madhu-1 Madhu-1 commented Oct 14, 2022

If any operations fails after the volume creation we will cleanup the omap objects, but it is missing if setAllMetadata fails. This commits adds the code to cleanup the rbd image if metadata operation fails.

The error message return from the GRPC should be of GRPC error messages only not the normal go errors. This commits returns GRPC error if setAllMetadata fails.

Signed-off-by: Madhu Rajanna [email protected]

@Madhu-1 Madhu-1 requested review from a team October 14, 2022 13:02
@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Oct 17, 2022

/test ci/centos/mini-e2e-helm/k8s-1.22

@Madhu-1
Copy link
Collaborator Author

Madhu-1 commented Oct 17, 2022

/test ci/centos/upgrade-tests-cephfs

@nixpanic nixpanic changed the title rd: Fix volume leak if metadata operation fails rdb: Fix volume leak if metadata operation fails Oct 17, 2022
@nixpanic nixpanic changed the title rdb: Fix volume leak if metadata operation fails rbd: Fix volume leak if metadata operation fails Oct 17, 2022
If any operations fails after the volume creation
we will cleanup the omap objects, but it is missing
if setAllMetadata fails. This commits adds the code
to cleanup the rbd image if metadata operation fails.

Signed-off-by: Madhu Rajanna <[email protected]>
The error message return from the GRPC
should be of GRPC error messages only
not the normal go errors. This commits
returns GRPC error if setAllMetadata
fails.

Signed-off-by: Madhu Rajanna <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/rbd Issues related to RBD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants