Added migration to the overload vase
This commit is contained in:
parent
2bca0e3dc4
commit
590da79cf2
@ -524,6 +524,11 @@ def execute_overload(config, state, vm_uuids):
|
||||
if log.isEnabledFor(logging.INFO):
|
||||
log.info('Overload: obtained a new placement %s', str(placement))
|
||||
|
||||
for vm, host in placement.items():
|
||||
state['nova'].servers.live_migrate(vm, host, False, False)
|
||||
if log.isEnabledFor(logging.INFO):
|
||||
log.info('Started migration of VM %s to %s', vm, host)
|
||||
|
||||
# Switch on the inactive hosts required to accommodate the VMs
|
||||
# TODO: initiate VM migrations according to the obtained placement
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user