diff --git a/server/src/com/cloud/storage/StorageManagerImpl.java b/server/src/com/cloud/storage/StorageManagerImpl.java index a44b62ad892..2bb77ab9d9b 100644 --- a/server/src/com/cloud/storage/StorageManagerImpl.java +++ b/server/src/com/cloud/storage/StorageManagerImpl.java @@ -798,8 +798,9 @@ public class StorageManagerImpl implements StorageManager { return vols; } catch (Exception e) { - s_logger.error("Unexpected exception ", e); - + if (s_logger.isDebugEnabled()) { + s_logger.debug(e.getMessage()); + } if (rootCreated != null) { destroyVolume(rootCreated); } @@ -812,6 +813,9 @@ public class StorageManagerImpl implements StorageManager { public long createUserVM(Account account, VMInstanceVO vm, VMTemplateVO template, DataCenterVO dc, HostPodVO pod, ServiceOfferingVO offering, DiskOfferingVO diskOffering, List avoids) { List volumes = create(account, vm, template, dc, pod, offering, diskOffering, avoids); + if( volumes == null || volumes.size() == 0) { + throw new CloudRuntimeException("Unable to create volume for " + vm.getName()); + } for (VolumeVO v : volumes) { long volumeId = v.getId();