diff --git a/neat/globals/manager.py b/neat/globals/manager.py index 763c17e..b56ed3f 100644 --- a/neat/globals/manager.py +++ b/neat/globals/manager.py @@ -337,6 +337,9 @@ def execute_underload(config, state, host): if log.isEnabledFor(logging.INFO): log.info('Underload: obtained a new placement %s', str(placement)) + for vm, host in placement.items(): + state['nova'].servers.live_migrate(vm, host, False, False) + log.info('Started migration of VM %s to %s', vm, host) # TODO: initiate VM migrations according to the obtained placement # Switch of the underloaded host when the migrations are completed