Attached volumes migration fails due to swap volume

Bug #1444909 reported by Vincent Hou
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
High
Vincent Hou

Bug Description

In cinder, when try to migrate an attached volume. The n-cpu reports the error:

=========================================n-cpu=====================================================
2015-04-16 17:35:30.581 ERROR root [req-cf02b6cd-4bd7-4e59-986b-278596cec0a6 admin admin] Original exception being dropped: ['Tracebac
k (most recent call last):\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 340, in decorated_function\n return function
(self, context, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 4939, in swap_volume\n context, old_vo
lume_id, instance_uuid=instance.uuid)\n', "AttributeError: 'unicode' object has no attribute 'uuid'\n"]
2015-04-16 17:35:31.043 ERROR root [req-cf02b6cd-4bd7-4e59-986b-278596cec0a6 admin admin] Original exception being dropped: ['Tracebac
k (most recent call last):\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 295, in decorated_function\n return function
(self, context, *args, **kwargs)\n', ' File "/opt/stack/nova/nova/compute/manager.py", line 352, in decorated_function\n kwargs[\'
instance\'], e, sys.exc_info())\n', ' File "/opt/stack/nova/nova/compute/utils.py", line 87, in add_instance_fault_from_exc\n faul
t_obj.instance_uuid = instance.uuid\n', "AttributeError: 'unicode' object has no attribute 'uuid'\n"]
2015-04-16 17:35:31.046 ERROR oslo_messaging.rpc.dispatcher [req-cf02b6cd-4bd7-4e59-986b-278596cec0a6 admin admin] Exception during me
ssage handling: string indices must be integers
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatch
er.py", line 142, in _dispatch_and_reply
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatch
er.py", line 186, in _dispatch
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatch
er.py", line 130, in _do_dispatch
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/compute/manager.py", line 6756, in swap_volum
e
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher new_volume_id)
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/exception.py", line 88, in wrapped
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher payload)
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", li
ne 85, in __exit__
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/exception.py", line 71, in wrapped
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher return f(self, context, *args, **kw)
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/nova/nova/compute/manager.py", line 311, in decorated_f
unction
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher instance_uuid = keyed_args['instance']['uuid']
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher TypeError: string indices must be integers
2015-04-16 17:35:31.046 TRACE oslo_messaging.rpc.dispatcher

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/174307

Vincent Hou (houshengbo)
Changed in cinder:
assignee: nobody → Vincent Hou (houshengbo)
Changed in nova:
assignee: nobody → Vincent Hou (houshengbo)
Vincent Hou (houshengbo)
Changed in cinder:
status: New → In Progress
Changed in nova:
status: New → In Progress
Alex Xu (xuhj)
tags: added: kilo-rc-potential
Changed in nova:
importance: Undecided → High
Mike Perez (thingee)
tags: removed: kilo-rc-potential
Matt Riedemann (mriedem)
no longer affects: cinder
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.