Hi there,
Here is my setup:
oVirt engine: 4.2.8
1. Create an affinity group as below:
VM affinity rule: positive + enforcing
Host affinity rule: disabled.
VMs: 2 VMs added
Hosts: No host selected.
2. Run the 2 VMs, they are running on the same host, say host1.
3. Change the affinity group's host affinity:
Host affinity rule: positive + enforcing
Hosts: host2 added.
I expect that the 2 VMs can migrate to host2, but that never happen, is this expected?
snippet of engine.log:
2019-03-13 07:47:05,747Z INFO [org.ovirt.engine.core.bll.scheduling.SchedulingManager]
(EE-ManagedThreadFactory-engineScheduled-Thread-30) [] Candidate host
'dub-svrfarm24' ('76b13e75-d01b-4dec-9298-1fad72b46525') was filtered out
by 'VAR__FILTERTYPE__INTERNAL' filter 'VmAffinityGroups' (correlation id:
null)
2019-03-13 07:47:05,747Z DEBUG
[org.ovirt.engine.core.bll.scheduling.arem.AffinityRulesEnforcer]
(EE-ManagedThreadFactory-engineScheduled-Thread-30) [] VM
822b37b7-5da3-453c-b775-d4192c2fdcae is NOT a viable candidate for solving the affinity
group violation situation.
2019-03-13 07:47:05,747Z DEBUG
[org.ovirt.engine.core.bll.scheduling.arem.AffinityRulesEnforcer]
(EE-ManagedThreadFactory-engineScheduled-Thread-30) [] No vm to hosts soft-affinity group
violation detected
2019-03-13 07:47:05,749Z DEBUG
[org.ovirt.engine.core.bll.scheduling.arem.AffinityRulesEnforcer]
(EE-ManagedThreadFactory-engineScheduled-Thread-30) [] No affinity group collision
detected for cluster 8fe88b8c-966c-4c21-839d-e2437cc6b73d. Standing by.
2019-03-13 07:47:05,749Z DEBUG
[org.ovirt.engine.core.bll.scheduling.arem.AffinityRulesEnforcer]
(EE-ManagedThreadFactory-engineScheduled-Thread-30) [] No affinity group collision
detected for cluster 3beac2ea-ed04-4f40-9ce3-5a9a67cebd8c. Standing by.
2019-03-13 07:47:05,750Z DEBUG
[org.ovirt.engine.core.bll.scheduling.arem.AffinityRulesEnforcer]
(EE-ManagedThreadFactory-engineScheduled-Thread-30) [] No affinity group collision
detected for cluster da32d154-4303-11e9-9607-00163eaab080. Standing by.
Thank you,
-Zhen