Bug 1980591

Summary: Validation rules do not check placement policy affinity of RHV VMs
Product: Migration Toolkit for Virtualization Reporter: Nandini Chandra <nachandr>
Component: AnalyticsAssignee: Peter McGowan <pmcgowan>
Status: CLOSED ERRATA QA Contact: kpunwatk
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: medium    
Version: 2.1.0CC: fdupont, jortel
Target Milestone: ---   
Target Release: 2.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-26 07:09:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screen shot of RHV VM edit pop up
none
Screenshot for Placement policy affinity. none

Description Nandini Chandra 2021-07-09 00:35:16 UTC
Created attachment 1799837 [details]
screen shot of RHV VM edit pop up

Description of problem:
-----------------------
RHV VMs could have one of the following placement policy affinity types:
1)migratable 2)user_migratable 3)pinned .

The 'migratable' affinity type is not a valid policy affinity type and prevents Forklift migration. This type corresponds to "Allow manual and automatic migration" in VM's Host configuration in the RHV UI.As of MTV 2.1, when a VM with this affinity type is migrated, migration fails with this error:
MappingRulesVerificationFailed: VM has placement policy affinity set to `migratable`. See attached screen shot of a RHV VM with affinity type set to 
migratable - Allow manual and automatic migration.

It would be great if validation service could check placement policy affinity type for RHV VMs and report if a VM cannot be migrated.


Version-Release number of selected component (if applicable):
-------------------------------------------------------------


How reproducible:
-----------------


Steps to Reproduce:
-------------------
1.
2.
3.


Actual results:
---------------


Expected results:
-----------------


Additional info:
----------------

Comment 2 kpunwatk 2021-08-11 05:58:18 UTC
Created attachment 1812986 [details]
Screenshot for Placement policy affinity.

Verified on MTV build 2.1.0-44 IIB 96817.

Comment 3 kpunwatk 2021-08-11 06:00:46 UTC
Comment on attachment 1812986 [details]
Screenshot for Placement policy affinity.

Validation service checks placement policy affinity type for RHV VMs and report a VM cannot be migrated.

Comment 6 errata-xmlrpc 2021-08-26 07:09:25 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 (Migration Toolkit for Virtualization 2.1.0), 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-2021:3278