Change in ovirt-engine[master]: scheduling: Fix AREM logic for host affinity

From Martin Sivák <msivak@redhat.com>:
Martin Sivák has submitted this change and it was merged. Change subject: scheduling: Fix AREM logic for host affinity ...................................................................... scheduling: Fix AREM logic for host affinity This patch updates the AREM algorithms with regards to host affinity. We sadly have a logic bug in the previously merged version. All affinity groups have to be considered separately when a VM is part of multiple host affinity groups. The correct operation for selecting a valid host is intersection, not union. Bug-Url: https://bugzilla.redhat.com/1404660 Change-Id: I683c46ef3be8e94cacbb554c5a372a9574f584d4 Signed-off-by: Martin Sivak <msivak@redhat.com> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/scheduling/arem/AffinityRulesEnforcer.java M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/scheduling/arem/AffinityRulesEnforcerTest.java 2 files changed, 72 insertions(+), 124 deletions(-) Approvals: Martin Sivák: Verified; Looks good to me, approved Jenkins CI: Passed CI tests -- To view, visit https://gerrit.ovirt.org/69015 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I683c46ef3be8e94cacbb554c5a372a9574f584d4 Gerrit-PatchSet: 8 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Sivák <msivak@redhat.com> Gerrit-Reviewer: Andrej Krejcir <akrejcir@redhat.com> Gerrit-Reviewer: Denis Chaplygin <dchaplyg@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Jenny Tokar <jtokar@redhat.com> Gerrit-Reviewer: Martin Sivák <msivak@redhat.com> Gerrit-Reviewer: Phillip Bailey <phbailey@redhat.com> Gerrit-Reviewer: Roman Mohr <rmohr@redhat.com> Gerrit-Reviewer: Yanir Quinn <yquinn@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
Code Review