[live migration] The instance directory on the destination host is not clean up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I understand there are code to clean up the instance directory on the target host if the live migration failed, but the directory is not cleanup if libvirt's connection is timeout.
I haven't got a change to root cause the issue, but I feel the code could be optimized a little bit to avoid this issue.
Here is some trace log from my side.
- Libvirt connection timed out
2017-03-07 02:34:37.540 ERROR nova.virt.
2017-03-07 02:34:37.541 DEBUG nova.virt.
Traceback (most recent call last):
File "/usr/local/
timer()
File "/usr/local/
cb(*args, **kw)
File "/usr/local/
waiter.
File "/usr/local/
result = function(*args, **kwargs)
File "/opt/stack/
return func(*args, **kwargs)
File "/opt/stack/
instance=
File "/usr/local/
self.
File "/usr/local/
six.
File "/opt/stack/
bandwidth=
File "/opt/stack/
flags=flags, bandwidth=
File "/usr/local/
result = proxy_call(
File "/usr/local/
rv = execute(f, *args, **kwargs)
File "/usr/local/
six.reraise(c, e, tb)
File "/usr/local/
rv = meth(*args, **kwargs)
File "/usr/local/
if ret == -1: raise libvirtError ('virDomainMigr
libvirtError: unable to connect to server at 'ceph-dev:49152': Connection timed out
- The instance's directory haven't cleanup, and the next migration will fail.
Traceback (most recent call last):
File "/usr/local/
res = self.dispatcher
File "/usr/local/
return self._do_
File "/usr/local/
result = func(ctxt, **new_args)
File "/opt/stack/
function_name, call_dict, binary)
File "/usr/local/
self.
File "/usr/local/
six.
File "/opt/stack/
return f(self, context, *args, **kw)
File "/opt/stack/
return function(self, context, *args, **kwargs)
File "/opt/stack/
kwargs[
File "/usr/local/
self.
File "/usr/local/
six.
File "/opt/stack/
return function(self, context, *args, **kwargs)
File "/opt/stack/
migrate_data)
File "/opt/stack/
raise exception.
DestinationDisk
tags: | added: live-migration |
Changed in nova: | |
assignee: | nobody → Dave Chen (wei-d-chen) |
Changed in nova: | |
assignee: | Dave Chen (wei-d-chen) → nobody |
Hello, could you please specify Openstack version you are using and I assume that there is a ceph rbd as a backend? Is that right?
Marking this as incomplete for now