2018-08-01 08:24:16 |
Rock_Zhao |
description |
Description
===========
For example:
Theres compute Nodes: A and B and C
instance "vmtest" runs on A now.
Steps to reproduce
==================
1.nova host-evacuate A
2.Assumed instance "vmtest" evacuated failed on B with libvirt error. And found the instance xml of vmtest is still in /etc/libvirt/qemu
3.Then try again "nova host-evacuate A".If vmtest is scheduled on B again, there will throw exception: Instance instance-vmtest already exists.
Expected result
===============
When vmtest first evacuated failed on B, remove instance xml of vmtest on B
Actual result
=============
If vmtest is scheduled on B again, there will throw exception: Instance instance-vmtest already exists.
Whether it should be clean up the instance xml of vmtest on the failed evacuated node B?
Environment
===========
openstack mitaka |
Description
===========
For example:
Theres compute Nodes: A and B and C
instance "vmtest" runs on A now.
Steps to reproduce
==================
1.nova host-evacuate A
2.Assumed instance "vmtest" evacuated failed on B with libvirt error. And found the instance xml of vmtest is still in /etc/libvirt/qemu
3.Then try again "nova host-evacuate A".If vmtest is scheduled on B again, there will throw exception: Instance instance-vmtest already exists.
Expected result
===============
When vmtest first evacuated failed on B, remove instance xml of vmtest on B
Actual result
=============
If vmtest is scheduled on B again, there will throw exception: Instance instance-vmtest already exists.
Whether it should be clean up the instance xml of vmtest on the failed evacuated node B?
Environment
===========
openstack mitaka
Logs
==========
09ed2cfc-2400-4f82-9dbd-0b7e22f4711b] Successfully reverted task state from rebuilding on failure for instance.
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher [req-db38e4ac-b740-463e-b543-6a4e4d9645bd d8aeb1794cbb47259ad126a7310c65ef 9f86737686af478487424ebb31ea2be6 - - -]
Exception during message handling: Instance instance-000024d4 already exists.
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher incoming.message))
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _dispatch
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 150, in inner
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher return func(*args, **kwargs)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 110, in wrapped
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher payload)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher self.force_reraise()
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 89, in wrapped
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher return f(self, context, *args, **kw)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 359, in decorated_function
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher LOG.warning(msg, e, instance=instance)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher self.force_reraise()
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 328, in decorated_function
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 409, in decorated_function
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 387, in decorated_function
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info())
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher self.force_reraise()
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 375, in decorated_function
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2809, in rebuild_instance
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher bdms, recreate, on_shared_storage, preserve_ephemeral)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2853, in _do_rebuild_instance_with_claim
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher self._do_rebuild_instance(*args, **kwargs)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2872, in _do_rebuild_instance
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher self._check_instance_exists(context, instance)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1543, in _check_instance_exists
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher raise exception.InstanceExists(name=instance.name)
2018-08-01 12:52:35.288 5665 ERROR oslo_messaging.rpc.dispatcher InstanceExists: Instance instance-000024d4 already exists. |
|