Try disabling or making the VM rule soft, it won't migrate more than one VM at a time
so it can't migrate either VM without breaking the vms_rule.
Regards,
Paul S.
________________________________________
From: zodaoko(a)gmail.com <zodaoko(a)gmail.com>
Sent: 13 March 2019 07:49
To: users(a)ovirt.org
Subject: [ovirt-users] Host affinity hard rule doesn't work
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
_______________________________________________
Users mailing list -- users(a)ovirt.org
To unsubscribe send an email to users-leave(a)ovirt.org
Privacy Statement:
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ov...
oVirt Code of Conduct:
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ov...
List Archives:
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists....
To view the terms under which this email is distributed, please go to:-
http://leedsbeckett.ac.uk/disclaimer/email/