Skip to content

Commit c364f3e

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
feature/CSTACKEX-213: select the equivalent size aggregate also
1 parent 43bb7db commit c364f3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/service/StorageStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public Volume createStorageVolume(String volumeName, Long size) {
266266
final long availableBytes = aggrResp.getAvailableBlockStorageSpace().longValue();
267267
logger.debug("Aggregate " + aggr.getName() + " available bytes=" + availableBytes + ", requested=" + size);
268268

269-
if (availableBytes <= size) {
269+
if (availableBytes < size) {
270270
logger.warn("Aggregate " + aggr.getName() + " does not have sufficient available space. Required=" +
271271
size + " bytes, available=" + availableBytes + " bytes. Skipping this aggregate.");
272272
continue;

0 commit comments

Comments
 (0)