OpenStack Compute (Nova)

EC2 API: DescribeImages does not correctly return image name (with glance)

Reported by justinsb on 2011-04-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Medium
Jesse Andrews

Bug Description

DescribeImages in the EC2 api is supposed to return the image name in the 'name' element, instead it is being returned in the 'displayName' element. I'm using glance, if that's relevant. I uploaded the image using the glance tool, not the nova-manage tool, but I think that the name should still be passed correctly.

Here's the XML. It all looks good other than the displayName

<DescribeImagesResponse xmlns="http://ec2.amazonaws.com/doc/2011-02-28/"><requestId>T9I7V0SAZ3U3JL-6QPTX</requestId><imagesSet><item><displayName>lucid</displayName><description/><imageOwnerId/><isPublic>true</isPublic><imageId>ami-00000001</imageId><imageState>available</imageState><architecture/><imageLocation>None (lucid)</imageLocation><imageType>machine</imageType></item><item><displayName>lucid-x86</displayName><description/><imageOwnerId/><isPublic>true</isPublic><imageId>ami-00000002</imageId><imageState>available</imageState><architecture/><imageLocation>None (lucid-x86)</imageLocation><imageType>machine</imageType></item></imagesSet></DescribeImagesResponse>"

Tags: ec2 Edit Tag help
Thierry Carrez (ttx) on 2011-04-11
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Chuck Short (zulcss) on 2011-10-25
tags: added: ec2
Brian Waldon (bcwaldon) on 2012-01-29
Changed in nova:
assignee: nobody → Brian Waldon (bcwaldon)
status: Confirmed → In Progress
Brian Waldon (bcwaldon) wrote :

Actually, we only claim to support up to version 2009-04-04. That version doesn't provide any name-like attribute of an image: http://docs.amazonwebservices.com/AWSEC2/2009-04-04/APIReference/index.html?ApiReference-query-DescribeImages.html

Changed in nova:
milestone: none → essex-4
Brian Waldon (bcwaldon) wrote :

We ended up just removing displayName

Changed in nova:
status: In Progress → Fix Committed
assignee: Brian Waldon (bcwaldon) → anotherjesse (anotherjesse)
Thierry Carrez (ttx) on 2012-02-29
Changed in nova:
status: Fix Committed → Fix Released
Adrian Cole (ndriau) wrote :

one hazard with this fix is now the name attribute is lost. At least in hpcloud, this is the only attr that contains enough information to describe the image in question.

I'd prefer to favor pragmatism vs being strict to the version date and instead of nuking the field, forward map it to the image.name which eventually makes it. That way, we don't lose information.

any other ideas?

Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers