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
{{ message }}
Repository navigation
Commit e2d18c0
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -1625,11 +1645,15 @@ public void orchestrateStart(final String vmUuid, final Map<VirtualMachineProfil
1625
1645
thrownewExecutionException("Unable to start VM:" + vm.getUuid() + " due to error in finalizeStart, not retrying");
1626
1646
}
1627
1647
}
1628
-
logger.info("Unable to start VM on {} due to {}", dest.getHost(), (startAnswer == null ? " no start answer" : startAnswer.getDetails()));
1648
+
Stringmsg = String.format("Unable to start VM on %s due to %s", dest.getHost(), startAnswer == null ? "no start command answer" : startAnswer.getDetails());
1649
+
lastKnownError = newExecutionException(msg);
1650
+
1629
1651
if (startAnswer != null && startAnswer.getContextParam("stopRetry") != null) {
1652
+
logger.error(msg, lastKnownError);
1630
1653
break;
1631
1654
}
1632
1655
1656
+
logger.debug(msg, lastKnownError);
1633
1657
} catch (OperationTimedoutExceptione) {
1634
1658
logger.debug("Unable to send the start command to host {} failed to start VM: {}", dest.getHost(), vm);
1635
1659
if (e.isActive()) {
@@ -1639,6 +1663,7 @@ public void orchestrateStart(final String vmUuid, final Map<VirtualMachineProfil
1639
1663
thrownewAgentUnavailableException("Unable to start " + vm.getHostName(), destHostId, e);
1640
1664
} catch (finalResourceUnavailableExceptione) {
1641
1665
logger.warn("Unable to contact resource.", e);
1666
+
lastKnownError = e;
1642
1667
if (!avoids.add(e)) {
1643
1668
if (e.getScope() == Volume.class || e.getScope() == Nic.class) {
1644
1669
throwe;
@@ -1695,10 +1720,22 @@ public void orchestrateStart(final String vmUuid, final Map<VirtualMachineProfil
1695
1720
}
1696
1721
1697
1722
if (startedVm == null) {
1698
-
thrownewCloudRuntimeException("Unable to start Instance '" + vm.getHostName() + "' (" + vm.getUuid() + "), see management server log for details");
1723
+
StringmessageTmpl = "Unable to start Instance '%s' (%s)%s";
1724
+
Stringdetails;
1725
+
if (canExposeError(account) && lastKnownError != null) {
1726
+
details = ": " + lastKnownError.getMessage();
1727
+
} else {
1728
+
details = ", see management server log for details";
Copy file name to clipboardExpand all lines: engine/schema/src/main/resources/META-INF/db/schema-42200to42210.sql
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,3 +35,6 @@ UPDATE `cloud`.`alert` SET type = 34 WHERE name = 'ALERT.VR.PRIVATE.IFACE.MTU';
35
35
UPDATE`cloud`.`configuration`SET description ='True if the management server will restart the agent service via SSH into the KVM hosts after or during maintenance operations', is_dynamic =1WHERE name ='kvm.ssh.to.agent';
36
36
37
37
UPDATE`cloud`.`vm_template`SET guest_os_id =99WHERE name ='kvm-default-vm-import-dummy-template';
38
+
39
+
-- Update existing vm_template records with NULL type to "USER"
40
+
UPDATE`cloud`.`vm_template`SET`type`='USER'WHERE`type` IS NULL;
Copy file name to clipboardExpand all lines: engine/storage/snapshot/src/main/java/org/apache/cloudstack/storage/vmsnapshot/ScaleIOVMSnapshotStrategy.java
thrownewCloudRuntimeException(String.format("Unable to find a running KVM host in zone %d to delete backup %s", backup.getZoneId(), backup.getUuid()));
0 commit comments