Liron Aravot has posted comments on this change.

Change subject: core: VmRunHandler: snapshot check on diskless VMs
......................................................................


Patch Set 1: (2 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmRunHandler.java
Line 103:                         
message.add(VdcBllMessages.VM_CANNOT_RUN_FROM_NETWORK_WITHOUT_NETWORK.toString());
Line 104:                         retValue = false;
Line 105:                     }
Line 106: 
Line 107:                     if (retValue) {
this check was never done here regardless of the disks number, isn't it really 
needed here (isn't done also somewhere else)? why not put that first in the 
flow?
Line 108:                         ValidationResult vmNotLockedResult = new 
VmValidator(vm).vmNotLocked();
Line 109:                         if (!vmNotLockedResult.isValid()) {
Line 110:                             
message.add(vmNotLockedResult.getMessage().name());
Line 111:                             retValue = false;


Line 129:                             retValue = false;
Line 130:                         }
Line 131: 
Line 132:                         if (retValue && 
!performImageChecksForRunningVm(vm, message, runParams, vmDisks)) {
Line 133:                             retValue = false;
perhaps just retValue = performImageChecksForRunningVm...
Line 134:                         }
Line 135: 
Line 136:                         // Check if iso and floppy path exists
Line 137:                         if (retValue && !vm.isAutoStartup()


--
To view, visit http://gerrit.ovirt.org/12246
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I232971b0d92aed1266d51ef89b2ae8175f08fbb2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to