← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1310931] [NEW] nova migration-list fails with unicode error

 

Public bug reported:

Doing a "nova migration-list" I get the following error in the nova-api
logs:

ERROR Exception handling resource: 'unicode' object does not support item deletion
TRACE nova.api.openstack.wsgi Traceback (most recent call last):
TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/wsgi.py", line 983, in _process_stack
TRACE nova.api.openstack.wsgi     action_result = self.dispatch(meth, request, action_args)
TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/wsgi.py", line 1070, in dispatch
TRACE nova.api.openstack.wsgi     return method(req=request, **action_args)
TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/compute/contrib/migrations.py", line 74, in index
TRACE nova.api.openstack.wsgi     return {'migrations': output(migrations)}
TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/compute/contrib/migrations.py", line 37, in output
TRACE nova.api.openstack.wsgi     del obj['deleted']
TRACE nova.api.openstack.wsgi TypeError: 'unicode' object does not support item deletion
Returning 400 to user: The server could not comply with the request since it is either malformed or otherwise incorrect. __call__ /opt/nova/nova/api/openstack/wsgi.py:1215

** Affects: nova
     Importance: Undecided
         Status: New

** Description changed:

  Doing a "nova migration-list" I get the following error in the nova-api
  logs:
  
- 2014-04-22 16:15:23.431 9325 ERROR nova.api.openstack.wsgi [req-7e992c9e-d5c1-4d0f-a536-98950af4c2f0 c0645ff94b864d3d84c438d9855f9cea 9427903ca1544f0795ba4117d55ed9b2] Exception handling resource: 'unicode' object does not support item deletion
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi Traceback (most recent call last):
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/wsgi.py", line 983, in _process_stack
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi     action_result = self.dispatch(meth, request, action_args)
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/wsgi.py", line 1070, in dispatch
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi     return method(req=request, **action_args)
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/compute/contrib/migrations.py", line 74, in index
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi     return {'migrations': output(migrations)}
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/compute/contrib/migrations.py", line 37, in output
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi     del obj['deleted']
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi TypeError: 'unicode' object does not support item deletion
- 2014-04-22 16:15:23.431 9325 TRACE nova.api.openstack.wsgi 
- 2014-04-22 16:15:23.434 9325 DEBUG nova.api.openstack.wsgi [req-7e992c9e-d5c1-4d0f-a536-98950af4c2f0 c0645ff94b864d3d84c438d9855f9cea 9427903ca1544f0795ba4117d55ed9b2] Returning 400 to user: The server could not comply with the request since it is either malformed or otherwise incorrect. __call__ /opt/nova/nova/api/openstack/wsgi.py:1215
+ ERROR Exception handling resource: 'unicode' object does not support item deletion
+ TRACE nova.api.openstack.wsgi Traceback (most recent call last):
+ TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/wsgi.py", line 983, in _process_stack
+ TRACE nova.api.openstack.wsgi     action_result = self.dispatch(meth, request, action_args)
+ TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/wsgi.py", line 1070, in dispatch
+ TRACE nova.api.openstack.wsgi     return method(req=request, **action_args)
+ TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/compute/contrib/migrations.py", line 74, in index
+ TRACE nova.api.openstack.wsgi     return {'migrations': output(migrations)}
+ TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/compute/contrib/migrations.py", line 37, in output
+ TRACE nova.api.openstack.wsgi     del obj['deleted']
+ TRACE nova.api.openstack.wsgi TypeError: 'unicode' object does not support item deletion
+ Returning 400 to user: The server could not comply with the request since it is either malformed or otherwise incorrect. __call__ /opt/nova/nova/api/openstack/wsgi.py:1215

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1310931

Title:
  nova migration-list fails with unicode error

Status in OpenStack Compute (Nova):
  New

Bug description:
  Doing a "nova migration-list" I get the following error in the nova-
  api logs:

  ERROR Exception handling resource: 'unicode' object does not support item deletion
  TRACE nova.api.openstack.wsgi Traceback (most recent call last):
  TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/wsgi.py", line 983, in _process_stack
  TRACE nova.api.openstack.wsgi     action_result = self.dispatch(meth, request, action_args)
  TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/wsgi.py", line 1070, in dispatch
  TRACE nova.api.openstack.wsgi     return method(req=request, **action_args)
  TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/compute/contrib/migrations.py", line 74, in index
  TRACE nova.api.openstack.wsgi     return {'migrations': output(migrations)}
  TRACE nova.api.openstack.wsgi   File "/opt/nova/nova/api/openstack/compute/contrib/migrations.py", line 37, in output
  TRACE nova.api.openstack.wsgi     del obj['deleted']
  TRACE nova.api.openstack.wsgi TypeError: 'unicode' object does not support item deletion
  Returning 400 to user: The server could not comply with the request since it is either malformed or otherwise incorrect. __call__ /opt/nova/nova/api/openstack/wsgi.py:1215

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1310931/+subscriptions


Follow ups

References