Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ public DataStore getImageStore(String storeUuid, Long zoneId, VolumeVO volume) {
}

if (imageStore == null) {
throw new CloudRuntimeException(String.format("Cannot find an image store for zone [%s].", zoneId));
logger.error("Cannot find an image store for zone [{}].", zoneId);
throw new CloudRuntimeException("Failed to create template. Please contact the cloud administrator.");
}

return imageStore;
Expand Down Expand Up @@ -1702,7 +1703,8 @@ public VirtualMachineTemplate createPrivateTemplate(CreateTemplateCmd command) t
}
DataStore store = _dataStoreMgr.getImageStoreWithFreeCapacity(zoneId);
if (store == null) {
throw new CloudRuntimeException("cannot find an image store for zone " + zoneId);
logger.error("Cannot find an image store for zone [{}].", zoneId);
throw new CloudRuntimeException("Failed to create template. Please contact the cloud administrator.");
}
AsyncCallFuture<TemplateApiResult> future = null;

Expand Down
Loading