Skip to content

Commit ac0dce2

Browse files
committed
log
1 parent 77df050 commit ac0dce2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

engine/storage/src/main/java/org/apache/cloudstack/storage/image/deployasis/DeployAsIsHelperImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ private Long retrieveTemplateGuestOsIdFromGuestOsInfo(long templateId, String gu
169169
hypervisor.toString(), minimumHypervisorVersion);
170170

171171
if (CollectionUtils.isNotEmpty(guestOsMappings)) {
172+
if (LOGGER.isDebugEnabled()) {
173+
String msg = String.format("number of hypervisor mappings for guest os \"%s\" is: %d", guestOsType, guestOsMappings.size());
174+
LOGGER.debug(msg);
175+
}
172176
Long guestOsId = null;
173177
if (guestOsMappings.size() == 1) {
174178
GuestOSHypervisorVO mapping = guestOsMappings.get(0);
@@ -190,7 +194,7 @@ private Long retrieveTemplateGuestOsIdFromGuestOsInfo(long templateId, String gu
190194
}
191195
return guestOsId;
192196
} else {
193-
throw new CloudRuntimeException("Did not find a guest OS with type " + guestOsType);
197+
throw new CloudRuntimeException(String.format("Did not find a guest OS (%s) with type \"%s\" and minimal hyperviser hardware version %s.", guestOsDescription, guestOsType, minimumHardwareVersion));
194198
}
195199
}
196200

0 commit comments

Comments
 (0)