From 4be5ae1f29900b5b49d8f3fc6415c5ee2eee435a Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Mon, 23 Apr 2012 15:55:09 -0700 Subject: [PATCH] CS-14256: throw executionException when finalizeStart fails (no point to retry). --- server/src/com/cloud/vm/VirtualMachineManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java index 14ff61463d9..c3f1b9ab490 100755 --- a/server/src/com/cloud/vm/VirtualMachineManagerImpl.java +++ b/server/src/com/cloud/vm/VirtualMachineManagerImpl.java @@ -783,7 +783,6 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene } return startedVm; } else { - canRetry = false; if (s_logger.isDebugEnabled()) { s_logger.info("The guru did not like the answers so stopping " + vm); } @@ -794,6 +793,7 @@ public class VirtualMachineManagerImpl implements VirtualMachineManager, Listene _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 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()));