Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1955068

Summary: Web console does not display VMware inventory data
Product: Migration Toolkit for Virtualization Reporter: Ilanit Stein <istein>
Component: InventoryAssignee: Jeff Ortel <jortel>
Status: CLOSED ERRATA QA Contact: Tzahi Ashkenazi <tashkena>
Severity: high Docs Contact: Avital Pinnick <apinnick>
Priority: high    
Version: 2.0.0CC: apinnick, asimonel, dagur, fbladilo, fdupont, istein, 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:
: 1979652 (view as bug list) Environment:
Last Closed: 2021-08-26 07:09:08 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:
Bug Depends On:    
Bug Blocks: 1979652    
Attachments:
Description Flags
error screenshot
none
log
none
MTV Beta logs
none
MTV Upstream logs
none
MTV Upstream May 13 2021 logs none

Description Ilanit Stein 2021-04-29 11:17:45 UTC
Description of problem:
On an external OCP cluster, installed with MTV beta,
VMware VMs are not displayed with this error:

"Error loading VMware tree data
500: internal Server Error" 
(screenshot attached).

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

Comment 1 Ilanit Stein 2021-04-29 11:19:09 UTC
Created attachment 1777124 [details]
error screenshot

Comment 2 Ilanit Stein 2021-04-29 11:20:47 UTC
Created attachment 1777127 [details]
log

Comment 3 Ilanit Stein 2021-05-10 16:33:02 UTC
Created attachment 1781761 [details]
MTV Beta logs

Comment 4 Ilanit Stein 2021-05-10 16:33:40 UTC
Created attachment 1781762 [details]
MTV Upstream logs

Comment 6 Ilanit Stein 2021-05-13 12:49:38 UTC
Created attachment 1782764 [details]
MTV Upstream May 13 2021 logs

Comment 9 Jeff Ortel 2021-05-18 20:39:30 UTC
The scenario that produces the problem is:
The cluster containing the missing host is moved to a subfolder of the hostFolder of the Datacenter.
Example:

group-d1 (DataCenter)
 |
 --group-h1 (Folder)
    |
    --group-h2800 (Folder)  <-- new subfolder
       |
       -- gruop-c1 (Cluster)
           |
           -- host-44 (Host)

The govmomi (lib) PropertyCollector is reporting group-c1 (the cluster) but not reporting host-44 even though the TraversalSpec seems correct.  As a result, the host is never added to the inventory.

Comment 10 Fabien Dupont 2021-05-20 09:46:18 UTC
Moving to 2.1.0

Comment 11 Fabien Dupont 2021-08-06 13:04:48 UTC
We still haven't identified how to fix the traversal spec to collect this type of configuration.
Retargeting the BZ to 2.2.0.

Comment 13 Tzahi Ashkenazi 2021-08-17 10:53:32 UTC
Verified:
1. cloud20
2. MTV 2.1.0-52 / IIB 98758
3. CNV 4.8.0-451
4. vsphere 6.5 
5. vsphere hierarchy : 

DATACENTER ( main )
----* MTV ( cluster )
      ----host-a (esxi)
      ----host-b (esxi)
      ----host-c (esxi)
----test ( folder) 
    ----test2 (folder )
        ----test3 (folder)
            MTV2 ( cluster)
            --- host-d (esxi)
                ----VM ( appers on the MTV UI )

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