Image needs to be created before uploading the data bits

Bug #1294775 reported by Nikhil Komawar
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Opinion
Wishlist
Sabari Murugesan

Bug Description

Currently, we need to have a Image object (or record) to be able to set it's data bits.

We need an alternative mechanism for Image creation in cases where failure in uploading data bits should fail Image creation.

Example use case:
- Say an import task fails while uploading data bits to the data store. The Image would be stuck in the saving/queued state indefinitely resulting in superfluous Image entries in the users Image list.

Revision history for this message
haruka tanizawa (h-tanizawa) wrote :

Hi nikhil !

It is already fixed in v2.
https://bugs.launchpad.net/glance/+bug/1273087

Do you say about v1 ?
Or do you think that fixing to 'queued' status is not enough?

Revision history for this message
Nikhil Komawar (nikhil-komawar) wrote :

@h-tanizawa : yeah, I meant to store the image data bits first and then create an Image record.

Revision history for this message
haruka tanizawa (h-tanizawa) wrote :

So, you say that we don't need 'saving' status?

Revision history for this message
Nikhil Komawar (nikhil-komawar) wrote :

No, meant ability to create an Image after having a location with valid data bits.

Revision history for this message
haruka tanizawa (h-tanizawa) wrote :

This should be Blueprint rather than Bug report? Thanks.

Louis Taylor (kragniz)
Changed in glance:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Sabari Murugesan (smurugesan) wrote :

Posted https://review.openstack.org/#/c/184351/

We address this bug by deleting the image if any task part of the import flow fails.

@Nikhil: Do you think this is a sufficient fix or do you really think the image record should never be created before the upload completes ? If you disagree, I will mark the patch as a Partial fix for this bug.

Changed in glance:
assignee: nobody → Sabari Murugesan (smurugesan)
Changed in glance:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (master)

Change abandoned by Glance Bot (<email address hidden>) on branch: master
Review: https://review.openstack.org/184351

Revision history for this message
Brian Rosmaita (brian-rosmaita) wrote :

Changing to "opinion" since patch to implement has been abandoned for 2 years. Also, with the new interoperable image import workflow, it may not be so relevant anymore.

Changed in glance:
status: In Progress → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.