You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/03/01 21:29:14 UTC

[GitHub] [cloudstack] GabrielBrascher commented on pull request #4212: Migrate/Stop VMs with local storage when preparing host for maintenance

GabrielBrascher commented on pull request #4212:
URL: https://github.com/apache/cloudstack/pull/4212#issuecomment-788307614


   Code has been updated adding the option to Stop VM with force stop or a simple stop. Strategies are the following:
   
   1. The default strategy is **'Error'**, preventing maintenance in such a case
   2. Choose **'Migration'** strategy to migrate away VMs running on local storage
   3. To stop VMs, choose **'Stop'** strategy : `_haMgr.scheduleStop(vm, hostId, WorkType.Stop);`
   4. To force-stop VMs, choose **'ForceStop'** strategy: `_haMgr.scheduleStop(vm, hostId, WorkType.ForceStop);`


----------------------------------------------------------------
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:
users@infra.apache.org