Allon Mureinik has posted comments on this change. Change subject: core: Use correct storage validation for MoveVM ......................................................................
Patch Set 1: (1 comment) http://gerrit.ovirt.org/#/c/24027/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveVmCommand.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/MoveVmCommand.java: Line 111: Line 112: private boolean destinationHasSpace(Collection<DiskImage> diskImages) { Line 113: StorageDomainValidator sdv = new StorageDomainValidator(getStorageDomain()); Line 114: return validate(sdv.isDomainWithinThresholds()) && Line 115: validate(sdv.hasSpaceForClonedDisks(diskImages)); > what if the domain has enough space for the disks, but afterwards it will b This is a general issue we have in all our actions. Basically, these thresholds are there to allow completion of the action. Line 116: } Line 117: Line 118: protected boolean checkTemplateInStorageDomain(List<DiskImage> diskImages) { Line 119: boolean retValue = checkStorageDomain() && checkStorageDomainStatus(StorageDomainStatus.Active) -- To view, visit http://gerrit.ovirt.org/24027 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I7f455ff16d11622be4e28ea84180551237a80db1 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Allon Mureinik <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Arik Hadas <[email protected]> Gerrit-Reviewer: Daniel Erez <[email protected]> Gerrit-Reviewer: Liron Ar <[email protected]> Gerrit-Reviewer: Maor Lipchuk <[email protected]> Gerrit-Reviewer: Omer Frenkel <[email protected]> Gerrit-Reviewer: Roy Golan <[email protected]> Gerrit-Reviewer: Sergey Gotliv <[email protected]> Gerrit-Reviewer: Tal Nisan <[email protected]> Gerrit-Reviewer: Vered Volansky <[email protected]> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
