Gilad Chaplik has posted comments on this change. Change subject: core: positive affinity breaks maintenancing a host ......................................................................
Patch Set 2: (1 comment) http://gerrit.ovirt.org/#/c/26623/2/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/policyunits/VmAffinityFilterPolicyUnit.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/policyunits/VmAffinityFilterPolicyUnit.java: Line 84: for (Guid id : allVmIdsPositive) { Line 85: VM runVm = runningVMsMap.get(id); Line 86: if (runVm != null && runVm.getRunOnVds() != null && hostMap.get(runVm.getRunOnVds()) != null Line 87: // when a host preparing for maintenance, we should ignore the positive affinity (without that we Line 88: // can't migrate). > I think we should ignore the positive affinity only when no available host Why isn't is the case here? just ignoring the Host in status prepare for maint. Line 89: && hostMap.get(runVm.getRunOnVds()).getStatus() != VDSStatus.PreparingForMaintenance) { Line 90: acceptableHosts.add(runVm.getRunOnVds()); Line 91: } Line 92: } -- To view, visit http://gerrit.ovirt.org/26623 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I7282a9e1c87b30c14869170ed7fb5b9276fad33e Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: Arik Hadas <aha...@redhat.com> Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: Martin Sivák <msi...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches