Bug 1948975

Summary: Migration network selection for hosts does not work
Product: Migration Toolkit for Virtualization Reporter: Tzahi Ashkenazi <tashkena>
Component: ControllerAssignee: Jeff Ortel <jortel>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: urgent Docs Contact: Avital Pinnick <apinnick>
Priority: urgent    
Version: 2.0.0CC: amastbau, apinnick, dagur, fdupont, istein, jortel
Target Milestone: ---Keywords: Regression
Target Release: 2.0.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-06-10 17:11:46 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
Select migration network none

Description Tzahi Ashkenazi 2021-04-13 07:51:45 UTC
Created attachment 1771552 [details]
Select migration network

Created attachment 1771552 [details]
Select migration network

Created attachment 1771552 [details]
Select migration network

Description of problem:

on cloud38 with MTV version 2.0.0.8
while going to MTV UI > Providers > VMware > selecting exist provider > hosts 
> Select migration network  and trying to make a change from default network to for example vmnic1 this operation exit with error :
alert:Error configuring hosts
Request failed with status code 422
Host.forklift.konveyor.io "vsphere6-7-host-671-config" is invalid: [metadata.ownerReferences.apiVersion: Invalid value: "": version must not be empty, metadata.ownerReferences.kind: Invalid value: "": kind must not be empty]

Version-Release number of selected component (if applicable):
MTV : 2.0.0.8 & 2.0.0.15
CNV : 2.6.1

How reproducible:
MTV UI > Providers > VMware > selecting exist provider > hosts 
> Select migration network  and trying to make a change from default network to for example vmnic1


Actual results:
exit on error 

Expected results:
pass without any errors 

Additional info:
MTV : 2.0.0.8 & 2.0.0.15
CNV : 2.6.1
cloud38

Comment 1 Ilanit Stein 2021-04-13 12:18:43 UTC
This feature was verified on rhmtv-operator-bundle-container-2.0.0_beta.1-11 / iib:46038.
See here: https://bugzilla.redhat.com/show_bug.cgi?id=1899685#c4

Comment 4 Mike Turley 2021-04-15 18:01:02 UTC
Reassigning to Jeff for the inventory API solution

Comment 5 Fabien Dupont 2021-04-16 07:50:53 UTC
The change in forklfit-controller is waiting on https://github.com/konveyor/forklift-controller/pull/212 to be merged. This PR is big from a number of lines point of view, so it's better to not have to rebase.

Comment 6 Jeff Ortel 2021-04-16 16:33:07 UTC
Fixed: https://github.com/konveyor/forklift-controller/pull/219

Comment 7 Jeff Ortel 2021-04-16 16:33:47 UTC
Merged to release.

Comment 8 Fabien Dupont 2021-04-19 10:16:37 UTC
The fix should be part of MTV 2.0.0-18 / iib:68063.

Comment 9 Amos Mastbaum 2021-04-26 10:55:52 UTC
verified MTV 2.0.0-20 (iib:69034)

Comment 12 errata-xmlrpc 2021-06-10 17:11:46 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 (MTV 2.0.0 images), 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:2381