its a bug it the code. The workaround is to comment the function in the
libvirt code which checks the flags of cpu while migration. Do make sure
manually that the cpu flags of both the compute nodes are same.
Regards,
Prateek Khushalani
On Jul 29, 2014 9:26 PM, "Rafael David Tinoco" <email address hidden>
wrote:
> ** This bug is no longer a duplicate of bug 1303536
> Live migration fails. XML error: CPU feature `wdt' specified more than
> once
>
> --
> You received this bug notification because you are subscribed to
> OpenStack.
> Matching subscriptions: Prateek Khushalani
> https://bugs.launchpad.net/bugs/1319710
>
> Title:
> Live-migration failed with OpenStack Icehouse and Ubuntu 12.04
>
> Status in OpenStack Compute (Nova):
> New
>
> Bug description:
> When I do live-migration an instance between two compute-nodes have the
> same CPU, i got the following error:
> (@ nova-compute.log)
>
> 2014-05-15 15:39:21.563 2743 ERROR oslo.messaging.rpc.dispatcher [-]
> Exception during message handling: XML error: CPU feature `erms' specified
> more than once
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> Traceback (most recent call last):
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", lin
> e 133, in _dispatch_and_reply
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> incoming.message))
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", lin
> e 176, in _dispatch
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> return self._do_dispatch(endpoint, method, ctxt, args)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/oslo/messaging/rpc/dispatcher.py", lin
> e 122, in _do_dispatch
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> result = getattr(endpoint, method)(ctxt, **new_args)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 88, in wrappe
> d
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> payload)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", li
> ne 68, in __exit__
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> six.reraise(self.type_, self.value, self.tb)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 71, in wrappe
> d
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> return f(self, context, *args, **kw)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 309, in
> decorated_function
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher e,
> sys.exc_info())
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", li
> ne 68, in __exit__
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> six.reraise(self.type_, self.value, self.tb)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 296, in
> decorated_function
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher e,
> sys.exc_info())
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", li
> ne 68, in __exit__
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> six.reraise(self.type_, self.value, self.tb)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 296, in
> decorated_function
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> return function(self, context, *args, **kwargs)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 4418, in
> check_can_live_migrate_destination
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> block_migration, disk_over_commit)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 4189,
> in check_can_live_migrate_destination
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> self._compare_cpu(source_cpu_info)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 4331,
> in _compare_cpu
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> LOG.error(m, {'ret': ret, 'u': u})
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line
> 68, in __exit__
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> six.reraise(self.type_, self.value, self.tb)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 4327,
> in _compare_cpu
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher ret
> = self._conn.compareCPU(cpu.to_xml(), 0)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 179, in doit
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> result = proxy_call(self._autowrap, f, *args, **kwargs)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 139, in
> proxy_call
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher rv
> = execute(f,*args,**kwargs)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/eventlet/tpool.py", line 77, in tworker
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher rv
> = meth(*args,**kwargs)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher File
> "/usr/lib/python2.7/dist-packages/libvirt.py", line 3191, in compareCPU
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher if
> ret == -1: raise libvirtError ('virConnectCompareCPU() failed', conn=self)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
> libvirtError: XML error: CPU feature `erms' specified more than once
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.rpc.dispatcher
>
>
> I'm using Ubuntu 12.04 with Openstack Icehouse.
> Version of components on compute-nodes:
> nova* 1:2014.1-0ubuntu1~cloud0
> libivrt* 1.2.2-0ubuntu13.1~cloud0
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nova/+bug/1319710/+subscriptions
>
Hi,
its a bug it the code. The workaround is to comment the function in the
libvirt code which checks the flags of cpu while migration. Do make sure
manually that the cpu flags of both the compute nodes are same.
Regards,
Prateek Khushalani
On Jul 29, 2014 9:26 PM, "Rafael David Tinoco" <email address hidden>
wrote:
> ** This bug is no longer a duplicate of bug 1303536 /bugs.launchpad .net/bugs/ 1319710 rpc.dispatcher [-] rpc.dispatcher rpc.dispatcher File python2. 7/dist- packages/ oslo/messaging/ rpc/dispatcher. py", lin rpc.dispatcher rpc.dispatcher File python2. 7/dist- packages/ oslo/messaging/ rpc/dispatcher. py", lin rpc.dispatcher dispatch( endpoint, method, ctxt, args) rpc.dispatcher File python2. 7/dist- packages/ oslo/messaging/ rpc/dispatcher. py", lin rpc.dispatcher rpc.dispatcher File python2. 7/dist- packages/ nova/exception. py", line 88, in wrappe rpc.dispatcher rpc.dispatcher File python2. 7/dist- packages/ nova/openstack/ common/ excutils. py", li rpc.dispatcher self.type_ , self.value, self.tb) rpc.dispatcher File python2. 7/dist- packages/ nova/exception. py", line 71, in wrappe rpc.dispatcher rpc.dispatcher File python2. 7/dist- packages/ nova/compute/ manager. py", line 309, in rpc.dispatcher e, rpc.dispatcher File python2. 7/dist- packages/ nova/openstack/ common/ excutils. py", li rpc.dispatcher self.type_ , self.value, self.tb) rpc.dispatcher File python2. 7/dist- packages/ nova/compute/ manager. py", line 296, in rpc.dispatcher e, rpc.dispatcher File python2. 7/dist- packages/ nova/openstack/ common/ excutils. py", li rpc.dispatcher self.type_ , self.value, self.tb) rpc.dispatcher File python2. 7/dist- packages/ nova/compute/ manager. py", line 296, in rpc.dispatcher rpc.dispatcher File python2. 7/dist- packages/ nova/compute/ manager. py", line 4418, in live_migrate_ destination rpc.dispatcher rpc.dispatcher File python2. 7/dist- packages/ nova/virt/ libvirt/ driver. py", line 4189, live_migrate_ destination rpc.dispatcher cpu(source_ cpu_info) rpc.dispatcher File python2. 7/dist- packages/ nova/virt/ libvirt/ driver. py", line 4331, rpc.dispatcher rpc.dispatcher File python2. 7/dist- packages/ nova/openstack/ common/ excutils. py", line rpc.dispatcher self.type_ , self.value, self.tb) rpc.dispatcher File python2. 7/dist- packages/ nova/virt/ libvirt/ driver. py", line 4327, rpc.dispatcher ret compareCPU( cpu.to_ xml(), 0) rpc.dispatcher File python2. 7/dist- packages/ eventlet/ tpool.py" , line 179, in doit rpc.dispatcher self._autowrap, f, *args, **kwargs) rpc.dispatcher File python2. 7/dist- packages/ eventlet/ tpool.py" , line 139, in rpc.dispatcher rv f,*args, **kwargs) rpc.dispatcher File python2. 7/dist- packages/ eventlet/ tpool.py" , line 77, in tworker rpc.dispatcher rv **kwargs) rpc.dispatcher File python2. 7/dist- packages/ libvirt. py", line 3191, in compareCPU rpc.dispatcher if pareCPU( ) failed', conn=self) rpc.dispatcher rpc.dispatcher 1-0ubuntu1~ cloud0 .1~cloud0 /bugs.launchpad .net/nova/ +bug/1319710/ +subscriptions
> Live migration fails. XML error: CPU feature `wdt' specified more than
> once
>
> --
> You received this bug notification because you are subscribed to
> OpenStack.
> Matching subscriptions: Prateek Khushalani
> https:/
>
> Title:
> Live-migration failed with OpenStack Icehouse and Ubuntu 12.04
>
> Status in OpenStack Compute (Nova):
> New
>
> Bug description:
> When I do live-migration an instance between two compute-nodes have the
> same CPU, i got the following error:
> (@ nova-compute.log)
>
> 2014-05-15 15:39:21.563 2743 ERROR oslo.messaging.
> Exception during message handling: XML error: CPU feature `erms' specified
> more than once
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> Traceback (most recent call last):
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> e 133, in _dispatch_and_reply
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> incoming.message))
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> e 176, in _dispatch
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> return self._do_
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> e 122, in _do_dispatch
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> result = getattr(endpoint, method)(ctxt, **new_args)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> d
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> payload)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> ne 68, in __exit__
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> six.reraise(
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> d
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> return f(self, context, *args, **kw)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> decorated_function
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> sys.exc_info())
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> ne 68, in __exit__
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> six.reraise(
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> decorated_function
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> sys.exc_info())
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> ne 68, in __exit__
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> six.reraise(
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> decorated_function
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> return function(self, context, *args, **kwargs)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> check_can_
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> block_migration, disk_over_commit)
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> in check_can_
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> self._compare_
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> in _compare_cpu
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> LOG.error(m, {'ret': ret, 'u': u})
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> 68, in __exit__
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> six.reraise(
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> in _compare_cpu
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> = self._conn.
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> result = proxy_call(
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> proxy_call
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> = execute(
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> = meth(*args,
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> "/usr/lib/
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> ret == -1: raise libvirtError ('virConnectCom
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
> libvirtError: XML error: CPU feature `erms' specified more than once
> 2014-05-15 15:39:21.563 2743 TRACE oslo.messaging.
>
>
> I'm using Ubuntu 12.04 with Openstack Icehouse.
> Version of components on compute-nodes:
> nova* 1:2014.
> libivrt* 1.2.2-0ubuntu13
>
> To manage notifications about this bug go to:
> https:/
>