Images added through objectstore and EC2 RegisterImage are never made available to the OpenStack API

Bug #784472 reported by Soren Hansen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Vish Ishaya

Bug Description

In nova/image/s3.py, we pull the image out of nova-objectstore, decrypt it, and put it into the real image service (e.g. glance). Along the way, we set a custom image property image_state a couple of times to track the progress in this process. This is because glance (rightfully!) has fewer states (active, killed, queued, and saving). Once this process is completed, image_state is set to "available".

The EC2 api knows about this extra state and so knows when the image is ready. However, the OpenStack API does not. It relies exclusively on the "status" attribute of the image.

We should use image_state only to track the intermediate states of the image. Once the image is "available", it shoudl be marked "active" and the image_state is obsolete and can be dropped.

Related branches

Revision history for this message
Vish Ishaya (vishvananda) wrote :

I actually fixed this as part of my branch here:
https://code.launchpad.net/~vishvananda/nova/lp776825

Thierry Carrez (ttx)
Changed in nova:
assignee: Soren Hansen (soren) → Vish Ishaya (vishvananda)
importance: Undecided → High
status: Triaged → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-1
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-1 → 2011.3
status: Fix Committed → Fix Released
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.