diff --git a/server/src/com/cloud/storage/StorageManagerImpl.java b/server/src/com/cloud/storage/StorageManagerImpl.java index bb21afb2c05..dc48d3a5806 100755 --- a/server/src/com/cloud/storage/StorageManagerImpl.java +++ b/server/src/com/cloud/storage/StorageManagerImpl.java @@ -1490,11 +1490,15 @@ public class StorageManagerImpl extends ManagerBase implements StorageManager, C if (requestedVolumes == null || requestedVolumes.isEmpty() || pool == null) { return false; } - + // Only Solidfire type primary storage is using/setting Iops. + // This check will fix to return the storage has enough Iops when capacityIops is set to NULL for any PS Storage provider + if (pool.getCapacityIops() == null ) { + return true; + } long currentIops = 0; - List volumesInPool = _volumeDao.findByPoolId(pool.getId(), null); + for (VolumeVO volumeInPool : volumesInPool) { Long minIops = volumeInPool.getMinIops();