euca-create-volume fails w/ Cinder

Bug #1046464 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

When trying to create a volume as an admin user I'm getting the following exception:

2012-09-05 13:54:40 ERROR nova.api.ec2 [req-b48a6a57-247e-4938-b484-1ee1ef98b66a 2df72a025a75435d8d8a1d4cd8c2dafb d88e8353a26849218ed87a206f7fb75c] Unexpected error raised: 'project_id'
2012-09-05 13:54:40 TRACE nova.api.ec2 Traceback (most recent call last):
2012-09-05 13:54:40 TRACE nova.api.ec2 File "/usr/lib/python2.7/site-packages/nova/api/ec2/__init__.py", line 474, in __call__
2012-09-05 13:54:40 TRACE nova.api.ec2 result = api_request.invoke(context)
2012-09-05 13:54:40 TRACE nova.api.ec2 File "/usr/lib/python2.7/site-packages/nova/api/ec2/apirequest.py", line 81, in invoke
2012-09-05 13:54:40 TRACE nova.api.ec2 result = method(context, **args)
2012-09-05 13:54:40 TRACE nova.api.ec2 File "/usr/lib/python2.7/site-packages/nova/api/ec2/cloud.py", line 774, in create_volume
2012-09-05 13:54:40 TRACE nova.api.ec2 return self._format_volume(context, dict(volume))
2012-09-05 13:54:40 TRACE nova.api.ec2 File "/usr/lib/python2.7/site-packages/nova/api/ec2/cloud.py", line 728, in _format_volume
2012-09-05 13:54:40 TRACE nova.api.ec2 volume['project_id'],
2012-09-05 13:54:40 TRACE nova.api.ec2 KeyError: 'project_id'
2012-09-05 13:54:40 TRACE nova.api.ec2

Dan Prince (dan-prince)
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
importance: Undecided → High
status: New → In Progress
milestone: none → folsom-rc1
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/12450

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/12450
Committed: http://github.com/openstack/nova/commit/a766d817218edcbb35c477382d5839f53c1f9570
Submitter: Jenkins
Branch: master

commit a766d817218edcbb35c477382d5839f53c1f9570
Author: Dan Prince <email address hidden>
Date: Wed Sep 5 14:07:16 2012 -0400

    Fix EC2 cinder volume creation as an admin user.

    Updates the EC2 API _format_volume function so that it
    only tries to add project_id and host to responses if those
    keys are present. This resolves a KeyError that would occur when
    using Cinder because volumes from it don't contain this
    information.

    Fixes LP Bug #1046464.

    Change-Id: I56b977cfd1ae482f2559a3f1fda8d1543d3ea227

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-rc1 → 2012.2
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.