mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CS-14256: throw executionException when finalizeStart fails (no point to retry).
This commit is contained in:
parent
b8889eeb58
commit
5021274232
@ -791,7 +791,6 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
|
|||||||
}
|
}
|
||||||
return startedVm;
|
return startedVm;
|
||||||
} else {
|
} else {
|
||||||
canRetry = false;
|
|
||||||
if (s_logger.isDebugEnabled()) {
|
if (s_logger.isDebugEnabled()) {
|
||||||
s_logger.info("The guru did not like the answers so stopping " + vm);
|
s_logger.info("The guru did not like the answers so stopping " + vm);
|
||||||
}
|
}
|
||||||
@ -802,6 +801,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene
|
|||||||
_haMgr.scheduleStop(vm, destHostId, WorkType.ForceStop);
|
_haMgr.scheduleStop(vm, destHostId, WorkType.ForceStop);
|
||||||
throw new ExecutionException("Unable to stop " + vm + " so we are unable to retry the start operation");
|
throw new ExecutionException("Unable to stop " + vm + " so we are unable to retry the start operation");
|
||||||
}
|
}
|
||||||
|
throw new ExecutionException("Unable to start " + vm + " due to error in finalizeStart, not retrying");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
s_logger.info("Unable to start VM on " + dest.getHost() + " due to " + (startAnswer == null ? " no start answer" : startAnswer.getDetails()));
|
s_logger.info("Unable to start VM on " + dest.getHost() + " due to " + (startAnswer == null ? " no start answer" : startAnswer.getDetails()));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user