Bug 1979652 - Empty RHV vNIC profile causes a "500: Internal server error" in the Inventory
Summary: Empty RHV vNIC profile causes a "500: Internal server error" in the Inventory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: Inventory
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 2.1.0
Assignee: Jeff Ortel
QA Contact: Amos Mastbaum
Avital Pinnick
URL:
Whiteboard:
Depends On: 1955068
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-06 15:54 UTC by Amos Mastbaum
Modified: 2021-08-26 07:09 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1955068
Environment:
Last Closed: 2021-08-26 07:09:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor forklift-controller pull 305 0 None closed vNIC profile optional in VM endpoint. 2021-07-13 22:10:17 UTC
Red Hat Product Errata RHEA-2021:3278 0 None None None 2021-08-26 07:09:20 UTC

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


Note You need to log in before you can comment on or make changes to this bug.