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

Bug #755829 reported by justinsb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
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
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Chuck Short (zulcss)
tags: added: ec2
Brian Waldon (bcwaldon)
Changed in nova:
assignee: nobody → Brian Waldon (bcwaldon)
status: Confirmed → In Progress
Revision history for this message
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/3533

Revision history for this message
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)
Changed in nova:
status: Fix Committed → Fix Released
Revision history for this message
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)
Changed in nova:
milestone: essex-4 → 2012.1
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.