yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #36555
[Bug 1473953] Re: rbd cannot delete residual image from ceph in some situations
Changed to in progress in glance_store only, since no change in glance
itself is needed. "Fix Committed" means it is committed in the upstream
repository, and will be set automatically when a fix is merged.
** Changed in: glance-store
Status: Fix Committed => In Progress
** Changed in: glance
Status: Fix Committed => Invalid
--
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:
Invalid
Status in glance_store:
In Progress
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