Project

General

Profile

Bug #2677

librbd: create does not clean up well

Added by Josh Durgin over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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

Revision 57d5c699 (diff)
Added by Josh Durgin about 7 years ago

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 <>

History

#1 Updated by Sage Weil over 7 years ago

  • Target version set to v0.50

#2 Updated by Dan Mick about 7 years ago

  • Priority changed from Normal to High

#3 Updated by Dan Mick about 7 years ago

  • Assignee set to Dan Mick

#4 Updated by Josh Durgin about 7 years ago

  • Priority changed from High to Urgent

#5 Updated by Josh Durgin about 7 years ago

  • Assignee changed from Dan Mick to Josh Durgin

#6 Updated by Josh Durgin about 7 years ago

  • Status changed from 12 to Fix Under Review

#7 Updated by Josh Durgin about 7 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF