Daniel Erez has posted comments on this change.

Change subject: core: Disallow RO LUN ISCSI disks
......................................................................


Patch Set 1:

(2 comments)

http://gerrit.ovirt.org/#/c/27452/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/DiskValidator.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/DiskValidator.java:

Line 106: 
Line 107:         return ValidationResult.VALID;
Line 108:     }
Line 109: 
Line 110:     public ValidationResult 
isReadOnlyPropertyCompatibleWithLunInterface() {
any reason not to combine this method with 
isReadOnlyPropertyCompatibleWithInterface ?
Line 111:         if (Boolean.TRUE.equals(disk.getReadOnly()) && 
disk.getDiskInterface() == DiskInterface.VirtIO_SCSI &&
Line 112:                 disk.getDiskStorageType() == DiskStorageType.LUN) {
Line 113:             return new ValidationResult(
Line 114:                     
VdcBllMessages.ACTION_TYPE_FAILED_VIRT_IO_SCSI_INTERFACE_FOR_LUN_DISKS_DOES_NOT_SUPPORT_READ_ONLY_ATTR);


http://gerrit.ovirt.org/#/c/27452/1/backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties
File 
backend/manager/modules/dal/src/main/resources/bundles/AppErrors.properties:

Line 1164: ISCSI_BOND_NOT_EXIST=Cannot ${action} ${type}. The specified iSCSI 
bond doesn't exist.
Line 1165: ISCSI_BOND_WITH_SAME_NAME_EXIST_IN_DATA_CENTER=Cannot ${action} 
${type}. iSCSI bond with the same name already exists in the Data Center.
Line 1166: 
Line 1167: 
ACTION_TYPE_FAILED_IDE_INTERFACE_DOES_NOT_SUPPORT_READ_ONLY_ATTR=Cannot 
${action} ${type}. An IDE disk can't be read-only.
Line 1168: 
ACTION_TYPE_FAILED_VIRT_IO_SCSI_INTERFACE_FOR_LUN_DISKS_DOES_NOT_SUPPORT_READ_ONLY_ATTR=Cannot
 ${action} ${type}. A VirtIO-SCSI LUN disks can't be read-only.
s/disks/disk


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Id84346098d42f20c593c2682dc9ff99a3e77d534
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4
Gerrit-Owner: Vered Volansky <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
Gerrit-Reviewer: [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

Reply via email to