Instance live migration fails with `TypeError: live_migration() takes exactly 7 arguments (6 given)`
Issue
During upgrade from OSP7 to OSP8 we set the upgrade level in nova.conf . We've noticed a problem with live migration with compatibility mode (upgrade level) set on nova controller and nova compute:
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher [req-702a357f-9808-4f19-853a-6e9c760010e4 e0d6100acd974c60a8ffa6ded33912e7 c0bafe36a1e041bd8a6dec7972bd772d - - -] Exception during message handling: live_migration() takes exactly 7 arguments (6 given)
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher executor_callback))
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher executor_callback)
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 129, in _do_dispatch
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher payload)
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 72, in wrapped
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher return f(self, context, *args, **kw)
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 400, in decorated_function
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 378, in decorated_function
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info())
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 204, in __exit__
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 366, in decorated_function
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher TypeError: live_migration() takes exactly 7 arguments (6 given)
2016-10-14 17:44:19.685 11025 ERROR oslo_messaging.rpc.dispatcher
Environment
- RedHat OpenStack Platform 7.0 (Kilo)
- RedHat OpenStack Platform 8.0 (Liberty)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.