Liron Aravot has posted comments on this change.

Change subject: core: Validate maximum number of hosts in DC.(#771699)
......................................................................


Patch Set 3: (4 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVdsSpmIdCommand.java
Line 58:     @Override
Line 59:     protected void executeCommand() {
Line 60:         // according to shaharf the first id is 1
Line 61:         int selectedId = 1;
Line 62:         List<Integer> map = LinqUtils.foreach(vds_spm_id_mapList, new 
Function<vds_spm_id_map, Integer>() {
now i've noticed that it hasn't changed..it's the original name that was chosen 
to that list for some reason.
Line 63:             @Override
Line 64:             public Integer eval(vds_spm_id_map vds_spm_id_map) {
Line 65:                 return vds_spm_id_map.getvds_spm_id();
Line 66:             }


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeVDSClusterCommand.java
Line 126:             }
Line 127:         });
Line 128: 
Line 129:         VdsSpmIdParameters vdsSpmIdParameters = new 
VdsSpmIdParameters();
Line 130:         vdsSpmIdParameters.setCompensationEnabled(true);
was here before, will be removed.
Line 131:         
vdsSpmIdParameters.setTransactionScopeOption(TransactionScopeOption.RequiresNew);
Line 132:         vdsSpmIdParameters.setVdsId(getVds().getId());
Line 133: 
Line 134:         if (targetStoragePool != null


Line 161: 
Line 162:         if (getSourceCluster().getstorage_pool_id() != null
Line 163:                 && (targetStoragePool== null || 
!getSourceCluster().getstorage_pool_id().getValue().equals(targetStoragePool.getId())))
 {
Line 164:             
vdsSpmIdParameters.setStoragePoolId(getSourceCluster().getstorage_pool_id().getValue());
Line 165:             VdcReturnValueBase removeVdsSpmIdReturn =
why? if we move a host to cluster in a different dc it should be assigned with 
a new vds spm id and the one it 'owned' in the previous dc should be 'released'.
Line 166:                     
Backend.getInstance().runInternalAction(VdcActionType.RemoveVdsSpmId,
Line 167:                             vdsSpmIdParameters,
Line 168:                             new 
CommandContext(getCompensationContext()));
Line 169:             if (!removeVdsSpmIdReturn.getSucceeded()) {


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVdsGroupCommand.java
Line 58:                 && 
!oldGroup.getstorage_pool_id().equals(getVdsGroup().getstorage_pool_id())
Line 59:                 || oldGroup.getstorage_pool_id() == null
Line 60:                 && getVdsGroup().getstorage_pool_id() != null) {
Line 61:             for (VdsStatic vds : 
getVdsStaticDAO().getAllForVdsGroup(oldGroup.getId())) {
Line 62:                 VdsSpmIdParameters parameters = new 
VdsSpmIdParameters(vds.getId(), getVdsGroup().getstorage_pool_id().getValue());
agreed, will change.
Line 63:                 if (getVdsGroup().getstorage_pool_id() != null) {
Line 64:                     VdcReturnValueBase addVdsSpmIdReturn =
Line 65:                             
getBackend().runInternalAction(VdcActionType.AddVdsSpmId, parameters);
Line 66:                     if (!addVdsSpmIdReturn.getSucceeded()) {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: If375400f3e12e3e0452053dea12ac6e28bc0ff61
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to