Bug #2677
librbd: create does not clean up well
% Done:
0%
Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
A create that fails part way through does not remove objects it created or undo modifications it does, for example adding the name to the rbd_directory object. These operations should all be undone if the image is not successfully created.
Associated revisions
librbd: clean up after errors in create
Split format 1 and 2 image creation into separate functions for better
readability. Format 2 requires more error handling.
Fixes: #2677
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
History
#1 Updated by Sage Weil about 11 years ago
- Target version set to v0.50
#2 Updated by Dan Mick almost 11 years ago
- Priority changed from Normal to High
#3 Updated by Dan Mick almost 11 years ago
- Assignee set to Dan Mick
#4 Updated by Josh Durgin almost 11 years ago
- Priority changed from High to Urgent
#5 Updated by Josh Durgin almost 11 years ago
- Assignee changed from Dan Mick to Josh Durgin
#6 Updated by Josh Durgin almost 11 years ago
- Status changed from 12 to Fix Under Review
#7 Updated by Josh Durgin almost 11 years ago
- Status changed from Fix Under Review to Resolved