Bug 1302804

Summary: Block migration results in error "AttributeError: 'dict' object has no attribute 'is_shared_instance_path'"
Product: [Community] RDO Reporter: Prasanth Anbalagan <panbalag>
Component: openstack-novaAssignee: Russell Bryant <rbryant>
Status: CLOSED EOL QA Contact: nlevinki <nlevinki>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, dasmith, eglynn, rbryant, sbauza, sferdjao, sgordon, srevivo, vromanso
Target Milestone: ---   
Target Release: Kilo   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:52:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Prasanth Anbalagan 2016-01-28 16:36:51 UTC
************************
Description of problem:
************************
When block migrating an instance from source to destination, the following error is seen in nova-compute.log at the source. 

************************************************************************
Version-Release number of selected component (if applicable):
************************************************************************
[root@lynx13 ~(keystone_admin)]# yum list installed | grep openstack-nova
openstack-nova-api.noarch       1:13.0.0.0b3-dev80.el7.centos
openstack-nova-cert.noarch      1:13.0.0.0b3-dev80.el7.centos
openstack-nova-common.noarch    1:13.0.0.0b3-dev80.el7.centos
openstack-nova-compute.noarch   1:13.0.0.0b3-dev80.el7.centos
openstack-nova-conductor.noarch 1:13.0.0.0b3-dev80.el7.centos
openstack-nova-console.noarch   1:13.0.0.0b3-dev80.el7.centos
openstack-nova-novncproxy.noarch
openstack-nova-scheduler.noarch 1:13.0.0.0b3-dev80.el7.centos

************************
How reproducible:
************************
Always

************************
Steps to Reproduce:
************************
1. nova live-migration --block-migrate <instance> <destination>
2. Error message seen in /var/log/nova/nova-compute.log

************************
Actual results:
************************

Error message seen 

2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 143, in _dispatch_and_reply
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     executor_callback))
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 189, in _dispatch
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     executor_callback)
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 110, in wrapped
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     payload)
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     self.force_reraise()
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     return f(self, context, *args, **kw)
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 407, in decorated_function
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 385, in decorated_function
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     kwargs['instance'], e, sys.exc_info())
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     self.force_reraise()
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 373, in decorated_function
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5554, in rollback_live_migration_at_destination
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     destroy_disks=destroy_disks, migrate_data=migrate_data)
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6320, in rollback_live_migration_at_destination
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher     is_shared_instance_path = migrate_data.is_shared_instance_path
2016-01-28 18:23:00.716 22666 ERROR oslo_messaging.rpc.dispatcher AttributeError: 'dict' object has no attribute 'is_shared_instance_path'


************************
Expected results:
************************

Block migration should be completed successfully

Comment 1 Prasanth Anbalagan 2016-01-28 16:54:08 UTC
Looks like a similar bug had been filed upstream a few hours ago before this one.
Not sure if they are same, but the error message looks similar. Posting here for 
reference

https://bugs.launchpad.net/nova/+bug/1539029

Comment 2 Chandan Kumar 2016-05-19 15:52:33 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.