KeyError: 'imageId' when creating instance with EC2/S3

Bug #719093 reported by Dan Prince
24
This bug affects 7 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Dan Prince

Bug Description

I'm getting the following exception in nova-api.log when trying to create images with EC2 API and S3:

2011-02-15 00:21:14,591 ERROR nova.api [V1FK9F30-DM3KU99GGL7 admin admin] Unexpected error raised: 'imageId'
(nova.api): TRACE: Traceback (most recent call last):
(nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/__init__.py", line 316, in __call__
(nova.api): TRACE: result = api_request.invoke(context)
(nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/apirequest.py", line 128, in invoke
(nova.api): TRACE: result = method(context, **args)
(nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/cloud.py", line 800, in run_instances
(nova.api): TRACE: 'AvailabilityZone'))
(nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/api.py", line 104, in create
(nova.api): TRACE: image = self.image_service.show(context, image_id)
(nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/image/s3.py", line 97, in show
(nova.api): TRACE: result = [i for i in result if i['imageId'] == image_id]
(nova.api): TRACE: KeyError: 'imageId'
(nova.api): TRACE:

Related branches

Revision history for this message
Dan Prince (dan-prince) wrote :

The following patch seems to resolve the issue. Branch to follow.

Devin Carlen (devcamcar)
Changed in nova:
assignee: nobody → Devin Carlen (devcamcar)
status: New → In Progress
importance: Undecided → Critical
assignee: Devin Carlen (devcamcar) → nobody
Thierry Carrez (ttx)
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
Dan Prince (dan-prince)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Patches

Remote bug watches

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