Daniel Erez has posted comments on this change.

Change subject: backend,webadmin: Enable virtual drive size extension
......................................................................


Patch Set 13: (8 inline comments)

....................................................
File backend/manager/dbscripts/images_sp.sql
Line 94:     v_lastModified TIMESTAMP WITH TIME ZONE)
Line 95: RETURNS VOID
Line 96: AS $procedure$
Line 97: BEGIN
Line 98:     UPDATE images
format
Line 99:     SET    size = v_size,
Line 100:            lastModified = v_lastModified
Line 101:     WHERE  image_group_id = v_image_group_id;
Line 102: END; $procedure$


....................................................
File 
backend/manager/dbscripts/upgrade/03_03_0190_add_extend_image_size_action_version_map.sql
Line 1: insert into action_version_map (action_type, cluster_minimal_version, 
storage_pool_minimal_version) values(1013, '*', '3.3');
set 'cluster_minimal_version' to 3.3 as well (cluster version always >= dc 
version)


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmDiskCommand.java
Line 101:         } else {
Line 102:             try {
Line 103:                 performDiskUpdate(false);
Line 104:             } finally {
Line 105:                 // by default  this command will keep the lock even 
after this method is done,
format
Line 106:                 // because the resize is async operation, but if this 
is the simple disk update
Line 107:                 // locks should be freed right after the execution.
Line 108:                 freeLock();
Line 109:             }


Line 122:             if (isAtLeastOneVmIsNotDown(vmsDiskPluggedTo) && 
shouldUpdatePropertiesOtherThanSize()) {
Line 123:                 return 
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_VM_IS_NOT_DOWN);
Line 124:             }
Line 125: 
Line 126:             if 
(!validateCanUpdateDiskInterfaceAndBootable(vmsDiskPluggedTo)) {
consider spliting to two methods
Line 127:                 return false;
Line 128:             }
Line 129:         }
Line 130: 


Line 464:         }
Line 465:         return false;
Line 466:     }
Line 467: 
Line 468:     private boolean isDiskBecomesShareable(Disk oldDisk, Disk 
newDisk) {
consider rephrasing method's name
Line 469:         return newDisk.isShareable() && !oldDisk.isShareable();
Line 470:     }
Line 471: 
Line 472:     private boolean isDiskBecomesNonShareable(Disk oldDisk, Disk 
newDisk) {


....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/VdcBllErrors.java
Line 52:     momErr(54),
Line 53:     replicaErr(55),
Line 54:     UpdateDeviceErr(56),
Line 55:     hwInfoErr(57),
Line 56:     ResizeErr(58),
you should update VdsmErrors.properties as well
Line 57:     recovery(99),
Line 58:     GeneralException(100),
Line 59:     StorageException(200),
Line 60:     VolumeDoesNotExist(201),


....................................................
File 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/AbstractDiskModel.java
Line 442:         boolean isShareableDiskEnabled = (Boolean) 
AsyncDataProvider.getConfigValuePreConverted(
Line 443:                 ConfigurationValues.ShareableDiskEnabled, 
datacenter.getcompatibility_version().getValue());
Line 444: 
Line 445:         
getIsShareable().setChangeProhibitionReason(CONSTANTS.shareableDiskNotSupported());
Line 446:         getIsShareable().setIsChangable(isShareableDiskEnabled && 
getVm() != null && getVm().isDown());
related to this patch?
Line 447:     }
Line 448: 
Line 449:     private void updateDirectLunDiskEnabled(StoragePool datacenter) {
Line 450:         boolean isInternal = (Boolean) getIsInternal().getEntity();


Line 465:             getIsShareable().setIsChangable(false);
Line 466:             getIsShareable().setEntity(false);
Line 467:         }
Line 468:         else {
Line 469:             getIsShareable().setIsChangable(getVm() != null && 
getVm().isDown());
same
Line 470:         }
Line 471:     }
Line 472: 
Line 473:     private void updateVolumeFormat(VolumeType volumeType, 
StorageType storageType) {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie702348a68a26ac02a01f66aaa1ea42c2c675ebb
Gerrit-PatchSet: 13
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: A Burden <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Cheryn Tan <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: liron aravot <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to