Bug 1251742 - Affinity balancing stop work after first migration
Summary: Affinity balancing stop work after first migration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.6.0
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Roman Mohr
QA Contact: Artyom
URL:
Whiteboard:
Depends On:
Blocks: 1112332
TreeView+ depends on / blocked
 
Reported: 2015-08-09 13:18 UTC by Artyom
Modified: 2016-04-20 01:11 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Consequence: Result: Fix:
Clone Of:
Environment:
Last Closed: 2016-04-20 01:11:49 UTC
oVirt Team: SLA
Target Upstream Version:
Embargoed:
mgoldboi: Triaged+


Attachments (Terms of Use)
engine log (10.63 MB, text/plain)
2015-08-09 15:22 UTC, Artyom
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 44803 0 master MERGED scheduler: Let AffinityGroup always return empty lists Never
oVirt gerrit 44804 0 master MERGED scheduler: Refactor AffinityRulesEnforcementManager Never
oVirt gerrit 44876 0 None ABANDONED arem: Fixed logic for currentlyMigratingVm Never
oVirt gerrit 45311 0 master MERGED core: Add possibility to query for VMs with specific status Never
oVirt gerrit 45346 0 master MERGED scheduler: Select first schedulable VM from candidate pool Never
oVirt gerrit 45647 0 master MERGED core: Fix affinity group test which relies on null Never
oVirt gerrit 45741 0 ovirt-engine-3.6 MERGED scheduler: Let AffinityGroup always return empty lists Never
oVirt gerrit 45742 0 ovirt-engine-3.6 ABANDONED core: Add possibility to query for VMs with specific status Never
oVirt gerrit 45843 0 ovirt-engine-3.6 MERGED scheduler: Formatter treatment for AffinityRulesEnforcementManager Never
oVirt gerrit 45844 0 ovirt-engine-3.6 MERGED scheduler: Refactor AffinityRulesEnforcementManager Never
oVirt gerrit 45872 0 ovirt-engine-3.6 MERGED core: Add possibility to query for VMs with specific status Never
oVirt gerrit 45876 0 master MERGED scheduler: Fix migration free cluster detection Never
oVirt gerrit 45986 0 ovirt-engine-3.6 MERGED scheduler: Fix migration free cluster detection Never
oVirt gerrit 45987 0 ovirt-engine-3.6 MERGED scheduler: Select first schedulable VM from candidate pool Never

Description Artyom 2015-08-09 13:18:25 UTC
Description of problem:
No affinity balancing of vms that placed in the same hard, negative affinity group

Version-Release number of selected component (if applicable):
ovirt-engine-3.6.0-0.0.master.20150804111407.git122a3a0.el6.noarch

How reproducible:
Always

Steps to Reproduce:
1. Add two hosts
2. Add two vms
3. Start vms on the same host
4. Add two vms to the hard, negative affinity group
5. Wait until affinity balancing will move one of vm to another host

Actual results:
Vms still placed on the same host, and I do not see any exceptions in engine log

Expected results:
One of vm must be moved to another host

Additional info:
I do not see any exceptions under engine log, but if you will need it anyway, leave me needinfo

Comment 1 Artyom 2015-08-09 15:22:08 UTC
Created attachment 1060747 [details]
engine log

After additional investigation with Roy, found that balancing happen just first time after engine restart and after first migration balancing stop work.

Comment 2 Tomer Saban 2015-08-16 10:26:40 UTC
There has been a logical issue in the method checkIfCurrentlyMigrating. So I added a patch that fixes it.

Comment 3 Artyom 2015-09-21 12:22:47 UTC
Verified on rhevm-3.6.0-0.16.master.el6.noarch

Comment 4 Roman Mohr 2016-01-19 10:28:48 UTC
Was never part of an official release and was completely reimplemented.


Note You need to log in before you can comment on or make changes to this bug.