Change in ovirt-engine[master]: scheduling: Fix AREM logic for host affinity
Code Review
gerrit at ovirt.org
Mon Jan 2 16:36:05 UTC 2017
>From Martin Sivák <msivak at 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 at 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 at redhat.com>
Gerrit-Reviewer: Andrej Krejcir <akrejcir at redhat.com>
Gerrit-Reviewer: Denis Chaplygin <dchaplyg at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Jenny Tokar <jtokar at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Phillip Bailey <phbailey at redhat.com>
Gerrit-Reviewer: Roman Mohr <rmohr at redhat.com>
Gerrit-Reviewer: Yanir Quinn <yquinn at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
More information about the Engine-commits
mailing list