[Openstack] live migration with custom instance_name_template

Mārtiņš Jakubovičs martins at vertigs.lv
Thu Jul 10 16:15:01 UTC 2014


Hello,

Looks like I forgot to restart some of nova services in controller node. 
After whole controller node restart, live migration works now.

Thanks.

On 2014.07.10. 10:32, Mārtiņš Jakubovičs wrote:
> Hello,
>
> I changed instance_name_template on my compute and controller nodes,
> VM's spawn successfully, I can delete them, and all works well till I
> perform live-migration (with --block-migrate option). When I start
> live-migration, in compute I got error, which show, that unable find
> instance by name.
>
> As hypervisor I got XenServer 6.2.
>
> Instance name template on compute and controller nodes:
> instance_name_template="%(uuid)s---%(hostname)s"
>
> Error, when performing migration: http://paste.openstack.org/show/85887/
>
> 2014-07-10 10:17:35.381 1073 ERROR oslo.messaging.rpc.dispatcher [-]
> Exception during message handling: Instance instance-0000007a could not
> be found.
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> Traceback (most recent call last):
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py",
> line 133, in _dispatch_and_reply
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> incoming.message))
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py",
> line 176, in _dispatch
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> return self._do_dispatch(endpoint, method, ctxt, args)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py",
> line 122, in _do_dispatch
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> result = getattr(endpoint, method)(ctxt, **new_args)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 88, in wrapped
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> payload)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py",
> line 68, in __exit__
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> six.reraise(self.type_, self.value, self.tb)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 71, in wrapped
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> return f(self, context, *args, **kw)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 296, in
> decorated_function
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> return function(self, context, *args, **kwargs)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4537,
> in live_migration
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> block_migration, migrate_data)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py", line 557,
> in live_migration
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> recover_method, block_migration, migrate_data)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 2037,
> in live_migrate
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> block_migration)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py",
> line 68, in __exit__
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> six.reraise(self.type_, self.value, self.tb)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 2004,
> in live_migrate
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> vm_ref = self._get_vm_opaque_ref(instance)
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher   File
> "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 702,
> in _get_vm_opaque_ref
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> raise exception.InstanceNotFound(instance_id=instance['name'])
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> InstanceNotFound: Instance instance-0000007a could not be found.
> 2014-07-10 10:17:35.381 1073 TRACE oslo.messaging.rpc.dispatcher
> 2014-07-10 10:17:35.389 1073 ERROR oslo.messaging._drivers.common [-]
> Returning exception Instance instance-0000007a could not be found. to caller
> 2014-07-10 10:17:35.390 1073 ERROR oslo.messaging._drivers.common [-]
> ['Traceback (most recent call last):\n', '  File
> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py",
> line 133, in _dispatch_and_reply\n    incoming.message))\n', '  File
> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py",
> line 176, in _dispatch\n    return self._do_dispatch(endpoint, method,
> ctxt, args)\n', '  File
> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py",
> line 122, in _do_dispatch\n    result = getattr(endpoint, method)(ctxt,
> **new_args)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 88, in
> wrapped\n    payload)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py",
> line 68, in __exit__\n    six.reraise(self.type_, self.value,
> self.tb)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 71, in
> wrapped\n    return f(self, context, *args, **kw)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 296, in
> decorated_function\n    return function(self, context, *args,
> **kwargs)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4537,
> in live_migration\n    block_migration, migrate_data)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/driver.py", line 557,
> in live_migration\n    recover_method, block_migration,
> migrate_data)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 2037,
> in live_migrate\n    block_migration)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py",
> line 68, in __exit__\n    six.reraise(self.type_, self.value,
> self.tb)\n', '  File
> "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line 2004,
> in live_migrate\n    vm_ref = self._get_vm_opaque_ref(instance)\n', '
> File "/usr/lib/python2.7/dist-packages/nova/virt/xenapi/vmops.py", line
> 702, in _get_vm_opaque_ref\n    raise
> exception.InstanceNotFound(instance_id=instance[\'name\'])\n',
> 'InstanceNotFound: Instance instance-0000007a could not be found.\n']





More information about the Openstack mailing list