Destination Host of VM during migration now notify Source host of exact socket path

This commit is contained in:
ahmadbilalkhalid 2019-12-29 23:48:04 +05:00
commit 29e938dc74
4 changed files with 17 additions and 8 deletions

View file

@ -76,7 +76,8 @@ def main(hostname):
elif request_event.type == RequestType.TransferVM:
host = host_pool.get(request_event.destination_host_key)
if host:
vm.migrate(destination=host.hostname)
vm.migrate(destination_host=host.hostname,
destination_sock_path=request_event.destination_sock_path)
else:
logger.error('Host %s not found!', request_event.destination_host_key)
else: