Nova api fails to unpack volume metadata using cinder

Bug #1023027 reported by Evgeniy Afonichev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
John Griffith

Bug Description

File "/opt/stack/nova/nova/volume/cinder.py", line 92, in _untranslate_volume_summary_view
 nova.api.openstack for k, v in vol.metadata:
 nova.api.openstack ValueError: too many values to unpack

Most likely, vol.metadata.items() was supposed

Revision history for this message
John Griffith (john-griffith) wrote : Re: [Bug 1023027] [NEW] Nova api fails to unpack volume metadata using cinder

On Tue, Jul 10, 2012 at 9:35 AM, Evgeniy Afonichev
<email address hidden> wrote:
> Public bug reported:
>
> File "/opt/stack/nova/nova/volume/cinder.py", line 92, in _untranslate_volume_summary_view
> nova.api.openstack for k, v in vol.metadata:
> nova.api.openstack ValueError: too many values to unpack
>
>
> Most likely, vol.metadata.items() was supposed
>
> ** Affects: cinder
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Cinder
> Bug Team, which is subscribed to Cinder.
> https://bugs.launchpad.net/bugs/1023027
>
> Title:
> Nova api fails to unpack volume metadata using cinder
>
> Status in Cinder:
> New
>
> Bug description:
> File "/opt/stack/nova/nova/volume/cinder.py", line 92, in _untranslate_volume_summary_view
> nova.api.openstack for k, v in vol.metadata:
> nova.api.openstack ValueError: too many values to unpack
>
>
> Most likely, vol.metadata.items() was supposed
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cinder/+bug/1023027/+subscriptions

Hi Evgeniy,

Would you mind adding some additional information to this bug report?
Particularly what your setup was, what steps lead up to you seeing
this etc? In other words how I might reproduce?

Thanks,
John

Mike Perez (thingee)
Changed in cinder:
status: New → Incomplete
Revision history for this message
Evgeniy Afonichev (eafonichev) wrote :
Download full text (5.3 KiB)

Hi John,
Here're my steps to reproduce:

$ cat devstack/localrc
ENABLED_SERVICES+=,-n-vol,cinder,c-api,c-sch,c-vol
VOLUME_GROUP=stack-volumes
CINDER_BRANCH=folsom-2
NOVA_BRANCH=folsom-2
GLANCE_BRANCH=folsom-2
KEYSTONE_BRANCH=folsom-2
HORIZON_BRANCH=folsom-2

$ nova boot vm1 ...
$ nova volume-create --display_name volume1 1

- vm1 and volume1 are up and active/available
- add manually record to cinder.volume_metadata linked to volume1 with (key=somekey, value=somevalue)

$ nova volume-attach vm1 volume1 /dev/vdc
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-d4690e16-fcfd-49e6-9f0b-6e4491ebf347)

n-api logs show traceback
2012-07-10 21:04:36 ERROR nova.api.openstack [req-d4690e16-fcfd-49e6-9f0b-6e4491ebf347 admin admin] Caught error: too many values to unpack
2012-07-10 21:04:36 TRACE nova.api.openstack Traceback (most recent call last):
2012-07-10 21:04:36 TRACE nova.api.openstack File "/opt/stack/nova/nova/api/openstack/__init__.py", line 41, in __call__
2012-07-10 21:04:36 TRACE nova.api.openstack return req.get_response(self.application)
2012-07-10 21:04:36 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1053, in get_response
2012-07-10 21:04:36 TRACE nova.api.openstack application, catch_exc_info=False)
2012-07-10 21:04:36 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1022, in call_application
2012-07-10 21:04:36 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
2012-07-10 21:04:36 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2012-07-10 21:04:36 TRACE nova.api.openstack return resp(environ, start_response)
2012-07-10 21:04:36 TRACE nova.api.openstack File "/opt/stack/keystone/keystone/middleware/auth_token.py", line 185, in __call__
2012-07-10 21:04:36 TRACE nova.api.openstack return self.app(env, start_response)
2012-07-10 21:04:36 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2012-07-10 21:04:36 TRACE nova.api.openstack return resp(environ, start_response)
2012-07-10 21:04:36 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2012-07-10 21:04:36 TRACE nova.api.openstack return resp(environ, start_response)
2012-07-10 21:04:36 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2012-07-10 21:04:36 TRACE nova.api.openstack return resp(environ, start_response)
2012-07-10 21:04:36 TRACE nova.api.openstack File "/usr/lib/pymodules/python2.7/routes/middleware.py", line 131, in __call__
2012-07-10 21:04:36 TRACE nova.api.openstack response = self.app(environ, start_response)
2012-07-10 21:04:36 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 159, in __call__
2012-07-10 21:04:36 TRACE nova.api.openstack return resp(environ, start_response)
2012-07-10 21:04:36 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
2012-...

Read more...

Changed in cinder:
status: Incomplete → New
Changed in cinder:
importance: Undecided → High
Changed in cinder:
assignee: nobody → John Griffith (john-griffith)
status: New → In Progress
Revision history for this message
John Griffith (john-griffith) wrote :
Changed in cinder:
status: In Progress → Fix Released
status: Fix Released → Fix Committed
milestone: none → folsom-3
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: folsom-3 → 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.