Bug 1979652

Summary: Empty RHV vNIC profile causes a "500: Internal server error" in the Inventory
Product: Migration Toolkit for Virtualization Reporter: Amos Mastbaum <amastbau>
Component: InventoryAssignee: Jeff Ortel <jortel>
Status: CLOSED ERRATA QA Contact: Amos Mastbaum <amastbau>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: high    
Version: 2.1.0CC: apinnick, dagur, fdupont, istein, jortel, pvauter
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: 1955068 Environment:
Last Closed: 2021-08-26 07:09:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1955068    
Bug Blocks:    

Comment 1 Jeff Ortel 2021-07-06 16:12:14 UTC
The only similarity to the vCenter BZ is how the broken ref in the inventory results in a 500.  Aside from that, this bug is completely different.
A significant question is - Why is the profile ref in the vNIC empty?

Comment 4 Ilanit Stein 2021-07-06 19:17:20 UTC
All the networks in this RHV have a vNIC profile, except for one called "internal" that doesn't have one.

The error in the migration UI: 

"Error loading VMs 
500: Internal server error"

If there are RHV components, other than vNIC profile, that might be empty and may fail the RHV inventory the same way should also be handled.

Comment 6 Jeff Ortel 2021-07-13 22:10:18 UTC
Fixed by API resolving the vNIC profile only when not blank.

Comment 7 Amos Mastbaum 2021-08-09 05:14:04 UTC
Verified
2.1.0-44 iib:96817
successfully UI migrated from RHV with  Network without vnic profile.

Comment 10 errata-xmlrpc 2021-08-26 07:09:12 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