All image types return as 'machine' when using glance client in ec2 api
Bug #760289 reported by
Ryan Lane
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Jay Pipes |
Bug Description
The glance client returns the container_format in image['
A fix for this may be to pull the container_format from 'properties', but I'm not sure if this will affect other clients.
Related branches
lp://staging/~jaypipes/nova/bug760289
- Thierry Carrez (community): Approve
- Nova Core security contacts: Pending requested
-
Diff: 12 lines (+2/-1)1 file modifiednova/image/glance.py (+2/-1)
Changed in nova: | |
milestone: | none → cactus-rc |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | cactus-rc → 2011.2 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The problem is with the GlanceImageService @classmethod called _translate_base(). This is kinda why I don't like inherited @classmethods.
The fix is to not override the _translate_base() @classmethod but instead call the @staticmethod service. BaseImageServic e._propertify_ metadata( ) in GlanceImageServ ice._translate_ base()