sp16743 commented on code in PR #14314:
URL: https://github.com/apache/cloudstack/pull/14314#discussion_r4413883135
##########
server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java:
##########
@@ -1127,6 +1127,11 @@ private VolumeVO createVolumeOnStoragePool(Long
volumeId, Long storageId) throws
throw new InvalidParameterValueException(String.format("Disk
offering: %s is not compatible with the storage pool", diskOffering.getUuid()));
}
+ if (!storageMgr.storagePoolHasEnoughSpace(volume.getSize(),
storagePool)) {
Review Comment:
Yes, the check for both the pool’s actual disk usage and its allocated
capacity has been added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]