Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Cannot Reproduce
-
4.2.0
-
Security Level: Public (Anyone can view this level - this is the default.)
-
None
-
commit # b3e9b2a5dc0439cad60058d693cba9d3c714af70
Description
When VR is restarted out-of-band by VMware HA then there is no way currently CloudStack can reprogram PF/NAT/LB rules.
Here is the code snippet from .//server/src/com/cloud/vm/VirtualMachineManagerImpl.java
if (trackExternalChange) {
if (serverState == State.Starting) {
if (vm.getHostId() != null && vm.getHostId() != hostId)
}
if (serverState == State.Running) {
try {
//
// we had a bug that sometimes VM may be at Running State
// but host_id is null, we will cover it here.
// means that when CloudStack DB lost of host information,
// we will heal it with the info reported from host
//
if (vm.getHostId() == null || hostId != vm.getHostId()) {
if (s_logger.isDebugEnabled())
stateTransitTo(vm, VirtualMachine.Event.AgentReportMigrated, hostId);
}
} catch (NoTransitionException e)
}
}