GabrielBrascher commented on pull request #4212: URL: https://github.com/apache/cloudstack/pull/4212#issuecomment-688290306
@andrijapanicsb normally VMs are (live) migrated when a host is put into Maintenance; however, if the host has VMs with local storage the host is placed in the "`ErrorInMaintenance`" state; the ADMIN then needs to manually stop/migrate these VMs and then re-try the Maintenance. Following the same concern that you raised, this implementation keeps the current behavior by default, therefore does not cause backward compatibility to any deployed Zone. To change the behavior the Root Admin needs to configure the global settings parameter `host.maintenance.local.storage.strategy` on its own risk. This parameter defines the strategy towards VMs with volumes on local storage when putting a host in maintenance. 1. The default strategy is 'Error', preventing maintenance in such a case. 2. To migrate away VMs running on local storage it is necessary to set `Migrating` strategy. 3. To stop VMs with local storage instead of placing the host into `ErrorInMaintenance`, it is necessary to change the strategy to `Stopping`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
