You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1619,11 +1634,15 @@ public void orchestrateStart(final String vmUuid, final Map<VirtualMachineProfil
1619
1634
thrownewExecutionException("Unable to start VM:" + vm.getUuid() + " due to error in finalizeStart, not retrying");
1620
1635
}
1621
1636
}
1622
-
logger.info("Unable to start VM on {} due to {}", dest.getHost(), (startAnswer == null ? " no start answer" : startAnswer.getDetails()));
1637
+
Stringmsg = String.format("Unable to start VM on %s due to %s", dest.getHost(), startAnswer == null ? "no start command answer" : startAnswer.getDetails());
1638
+
lastKnownError = newExecutionException(msg);
1639
+
1623
1640
if (startAnswer != null && startAnswer.getContextParam("stopRetry") != null) {
1641
+
logger.error(msg, lastKnownError);
1624
1642
break;
1625
1643
}
1626
1644
1645
+
logger.debug(msg, lastKnownError);
1627
1646
} catch (OperationTimedoutExceptione) {
1628
1647
logger.debug("Unable to send the start command to host {} failed to start VM: {}", dest.getHost(), vm);
1629
1648
if (e.isActive()) {
@@ -1633,6 +1652,7 @@ public void orchestrateStart(final String vmUuid, final Map<VirtualMachineProfil
1633
1652
thrownewAgentUnavailableException("Unable to start " + vm.getHostName(), destHostId, e);
1634
1653
} catch (finalResourceUnavailableExceptione) {
1635
1654
logger.warn("Unable to contact resource.", e);
1655
+
lastKnownError = e;
1636
1656
if (!avoids.add(e)) {
1637
1657
if (e.getScope() == Volume.class || e.getScope() == Nic.class) {
1638
1658
throwe;
@@ -1689,7 +1709,15 @@ public void orchestrateStart(final String vmUuid, final Map<VirtualMachineProfil
1689
1709
}
1690
1710
1691
1711
if (startedVm == null) {
1692
-
thrownewCloudRuntimeException("Unable to start Instance '" + vm.getHostName() + "' (" + vm.getUuid() + "), see management server log for details");
1712
+
StringmessageTmpl = "Unable to start Instance '%s' (%s)%s";
"false", "If set to true, detailed error messages will be returned to all user roles. If false, detailed errors are only shown to admin users", true, ConfigKey.Scope.Global, null);
0 commit comments