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/05/12 05:15:24 UTC
[GitHub] [cloudstack] harikrishna-patnala commented on a change in pull request #4647: forceha: fix two issues when (1)stop vm from inside (2) force remove host
harikrishna-patnala commented on a change in pull request #4647:
URL: https://github.com/apache/cloudstack/pull/4647#discussion_r630729893
##########
File path: engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java
##########
@@ -4498,7 +4498,7 @@ private void handlePowerOffReportWithNoPendingJobsOnVM(final VMInstanceVO vm) {
String.format("VM %s is at %s and we received a %s report while there is no pending jobs on it"
, vm.getInstanceName(), vm.getState(), vm.getPowerState()));
}
- if(vm.isHaEnabled() && vm.getState() == State.Running
+ if((HighAvailabilityManager.ForceHA.value() || vm.isHaEnabled()) && vm.getState() == State.Running
Review comment:
If we change it to global, then we may miss setting this back to cluster when we want to fix all other global settings in that Manager. This configuration parameter makes more sense to be scoped to cluster. May be as @weizhouapache mentioned, we need to fix all other settings in another PR. I'm fine with this for now.
--
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