GabrielBrascher commented on pull request #4363: URL: https://github.com/apache/cloudstack/pull/4363#issuecomment-703018771
@ravening the declare host as degraded API command would serve to put a problematic host on a special state that would allow to mark the VMs as stopped and trigger HA to start VMs (when service offering has _haenabled=true_) on another hosts. Your implementation is nice and covers some interesting ground. The API command requires intervention from ADMIN with care. This is because if the host is Disconnected but there are VMs running in it and writing on storage it may cause corruption if VMs start on another host and write on same storage. Therefore that command should only be executed if the host is down. API description: _Declare host as 'Degraded'. Host must be on 'Disconnected' or 'Alert' state. The ADMIN must be sure that there are no VMs running on the respective host otherwise this command might corrupted VMs that were running on the 'Degraded' host_. Threfore, it cannot be automated. I think that both implementations cover different gaps on some corner cases. ---------------------------------------------------------------- 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]
