Bug 1667842

Summary: Automatic Migration for Affinity Labels not working
Product: Red Hat Enterprise Virtualization Manager Reporter: Marko Myllynen <myllynen>
Component: ovirt-engineAssignee: Andrej Krejcir <akrejcir>
Status: CLOSED ERRATA QA Contact: Polina <pagranat>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.7CC: mavital, rbarry, Rhev-m-bugs, sborella
Target Milestone: ovirt-4.3.1   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.3.1.1 Doc Type: Enhancement
Doc Text:
Previously, the background process to migrate virtual machines considered affinity groups. This release updates the background process to migrate virtual machines to consider both affinity groups and affinity labels.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-08 12:39:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marko Myllynen 2019-01-21 09:40:17 UTC
Description of problem:
RHV 4.2 Virtual Machine Management Guide states (chapter 6.12):

Labels function identically to a hard positive affinity group, but simplify configuration in certain use case.

However, we've noticed a small difference between these:

1. Create labels for Hosts
2. Define labels for VMs
3. Startup VMs
4. Verify VM placement being ok
5. Change labels for Hosts
6. Observe changes

With Affinity Labels we see that VMs won't migrate to other allowed Hosts automatically if removing the allowed label from the current Host, you either need to shutdown and restart them or migrate them manually. With Host/VM Affinities this is not needed, VMs migrate to the Hosts as per the updated Host/VM Affinities without any manual intervention.

According to Andrej the automatic migration for affinity labels was not implemented and he thinks it probably should be.

Thanks.

Comment 2 Polina 2019-02-17 16:55:42 UTC
Verified on ovirt-engine-4.3.0.5-0.0.master.20190214203537.git92a2f86.el7.noarch according to the cases RHEVM-26207 - RHEVM-26211 added to the 
 https://polarion.engineering.redhat.com/polarion/#/project/RHEVM3/wiki/Compute/4_0_SLA_VMS_to_Hosts_Labels.

Comment 4 meital avital 2019-02-26 13:38:05 UTC
Moving to verified according to comment #2

Comment 6 errata-xmlrpc 2019-05-08 12:39:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:1085