euca-describe-image-attribute -l fails w/ UnknownError:

Bug #754242 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Dan Prince

Bug Description

Using nova 961 w/ Glance.

If I run the following command I get a stack trace in nova-api.log:

euca-describe-image-attribute -l ami-0000000

2011-04-08 02:26:23,778 ERROR nova.api [HC8HZLD9L9XI-QWGEG0O admin admin] Unexpected error raised: 'is_public'
(nova.api): TRACE: Traceback (most recent call last):
(nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/__init__.py", line 321, 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 150, in invoke
(nova.api): TRACE: result = method(context, **args)
(nova.api): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/ec2/cloud.py", line 988, in describe_image_attribute
(nova.api): TRACE: if image['properties']['is_public']:
(nova.api): TRACE: KeyError: 'is_public'
(nova.api): TRACE:

Looks like we still have a couple discrepancies in how is_pubic is used from the image service.

The attached patch resolves the issue.

Related branches

Revision history for this message
Dan Prince (dan-prince) wrote :
Changed in nova:
status: New → In Progress
assignee: nobody → Dan Prince (dan-prince)
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → High
milestone: none → cactus-rc
Dan Prince (dan-prince)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: cactus-rc → none
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.

Other bug subscribers

Bug attachments

Remote bug watches

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