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
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.
There has been a logical issue in the method checkIfCurrentlyMigrating. So I added a patch that fixes it.
Verified on rhevm-3.6.0-0.16.master.el6.noarch
Was never part of an official release and was completely reimplemented.