Ask Your Question
0

Live migration : InvalidCPUInfo: Unacceptable CPU info: CPU doesn't have compatibility.

asked 2013-08-27 15:42:04 -0500

Bada gravatar image

updated 2013-10-08 00:09:01 -0500

fifieldt gravatar image

Hi guys,

I'm trying to set up live migration between my two hosts. I have set up a NFS share volume and configure nova.conf to use it to store the VM (It works).

Then when i try to do live migration fron CLI here is what happen : Host1 to Host2 : ok Host2 to Host1 : error

Here is the error in the nova-api.log of the controller node :

2013-08-26 23:25:50.012 ERROR nova.api.openstack.compute.contrib.admin_actions [req-5f28e5de-1312-4e07-81e7-893f439d7ccb f235975a22d64ca3a28f4b5dc1cbceb8 00eb7054314244fca82cf79f2caa8ff7] Live migration of instance 32e94646-2a3a-4c53-b169-becd433880eb to host Host01 failed
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions Traceback (most recent call last):
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/contrib/admin_actions.py", line 284, in _migrate_live
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions     disk_over_commit, host)
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 134, in inner
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions     return f(self, context, instance, *args, **kw)
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 2454, in live_migrate
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions     disk_over_commit, instance, host_name)
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/scheduler/rpcapi.py", line 110, in live_migration
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions     dest=dest))
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/proxy.py", line 80, in call
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions     return rpc.call(context, self._get_topic(topic), msg, timeout)
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/__init__.py", line 140, in call
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions     return _get_impl().call(CONF, context, topic, msg, timeout)
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/impl_kombu.py", line 798, in call
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions     rpc_amqp.get_connection_pool(conf, Connection))
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 612, in call
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions     rv = list(rv)
2013-08-26 23:25:50.012 9958 TRACE nova.api.openstack.compute.contrib.admin_actions   File "/usr/lib/python2.7/dist-packages/nova ...
(more)
edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2014-04-06 22:00:03 -0500

changbl gravatar image

I changed a bit of /etc/nova/nova.conf to use custom CPU model (e.g., kvm64), and it enabled me to perform VM live migration across two hosts with different CPU models. Reference: http://docs.openstack.org/havana/config-reference/content/hypervisor-configuration-basics.html (http://docs.openstack.org/havana/conf...)

libvirt_cpu_mode=custom
libvirt_cpu_model=kvm64
edit flag offensive delete link more
0

answered 2013-08-28 15:30:57 -0500

Bada gravatar image

I check again and even with: libvirt_cpu_mode=none it does not work.

I'm not a big fan of directly modifying virt/driver.py.

I'm sure there should be a configuration to adapte VM configuration to the lowest CPU. any help ?

Thanks guys !

edit flag offensive delete link more

Comments

nova use all of the CPU features, so that when live migrating, nova must check the Source and Destination Host CPU have the such same features. Modify libvirt_cpu_mode could change the libvirt.xml not use all of CPU features, but could not Ignoring the check.

pengxiang.chen gravatar imagepengxiang.chen ( 2013-08-29 03:36:53 -0500 )edit

Ok I understand. But then what is the purpose of specyfing a cpu-mode and cpu_model if the check don't care ? Moreover here in my case I have the same CPU the only thing that change is the Stepping which is like a minor version change during CPU production process. What happen when you have two complete different model generations ? In my opinion it could be nice to be able to manually set the minimum CPU model/features to be able to live migrate VM accross all nodes. Therefor the CPU check should take the cpu model and mode into consideration. Do you think it's something possible ? in progress ? none of them ? Thanks !

Bada gravatar imageBada ( 2013-08-29 03:45:31 -0500 )edit

https://bugs.launchpad.net/nova/+bug/1082414, hehe, i saw you asked the same question, there is the offical bugzilla.

pengxiang.chen gravatar imagepengxiang.chen ( 2013-08-29 23:22:56 -0500 )edit

Yes, i ll try to test the fix proposed :)

Bada gravatar imageBada ( 2013-08-30 14:54:48 -0500 )edit
0

answered 2013-08-27 21:52:03 -0500

pengxiang.chen gravatar image

updated 2013-08-27 21:58:01 -0500

Case 5 : libvirt_cpu_mode=none For me this is OK. You should modify this on each compute node's nova.conf and restart the vm. and workaround to modify the virt/driver.py , annotate the code who call the compare_cpu function.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2013-08-27 15:42:04 -0500

Seen: 6,257 times

Last updated: Apr 06 '14