yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #36021
[Bug 1473953] Re: rbd cannot delete residual image from ceph in some situations
** Also affects: glance
Importance: Undecided
Status: New
** Changed in: glance
Assignee: (unassigned) => Mingda Sun (mingda)
** Changed in: glance
Status: New => Fix Committed
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1473953
Title:
rbd cannot delete residual image from ceph in some situations
Status in Glance:
Fix Committed
Status in glance_store:
Fix Committed
Bug description:
When user through glance RESTful api upload image, the image generally
has a large size.
In fact, uploading a large enough image may be failed due to http connection broken or other situations like that.
RBD supports a mechanism that when add operation failed, rollback operation must be triggered (delete residual image if it was created).
Base on a condition, we have already encountered, that the incomplete image has not been taken snapshot yet, then rollback operation do unprotect snap will throw exception "rbd.ImageNotFound".
This exception will be disposed finally, while the code relating to remove residual image from ceph has been skipped.
Therefore, re-uploading image will failed using the same image id due
to above reason (residual image already exists) & residual image need
to be deleted manually from ceph.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1473953/+subscriptions