Bug 2163485

Summary: UI fails to render the 'migrations' page: "Cannot read properties of undefined ( reading 'name' )"
Product: Migration Toolkit for Containers Reporter: John Matthews <jmatthew>
Component: UIAssignee: Ian <ibolton>
Status: CLOSED ERRATA QA Contact: mohamed <midays>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.7.6CC: midays, rjohnson
Target Milestone: ---   
Target Release: 1.7.8   
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: 2023-03-23 02:16:44 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:

Description John Matthews 2023-01-23 16:07:37 UTC
Description of problem:

A user is seeing consistent behavior in their environment that each time they click to view the migrations from a MigPlan the UI page fails to render with a javascript exception of:

"Cannot read properties of undefined ( reading 'name' )"

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

Seen on MTC 1.7.6


How reproducible:
Consistent on the user's cluster for each MigPlan.
Seen with 2 different browsers and an incognito window so we don't believe it's related to browser cache.

Observing the behavior via a remote screen share I did see a brief render of the UI page for 'migrations' and ~1 sec after seeing it render, I saw the page go blank from the javascript exception.

Unable to reproduce on our engineering clusters.

Steps to Reproduce:
1. Unknown

Comment 1 John Matthews 2023-01-23 16:14:27 UTC
Engineering was unable to reproduce the bug but a review of the impacted code showed a problem we believe is causing the issue.
@Ian Bolton posted a PR to address: https://github.com/migtools/mig-ui/pull/1484

@QE I do _not_ have clear reproducible steps as we couldn't reproduce in our environment yet this was consistent in user's environment.

The user saw this consistently each time they'd click the link to view the migrations of a given plan.  This was seen on successfully completed Migrations.

Comment 6 mohamed 2023-02-27 16:20:11 UTC
Verified using MTC 1.7.8 prestage

Comment 10 errata-xmlrpc 2023-03-23 02:16:44 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 (Important: Migration Toolkit for Containers (MTC) 1.7.8 security and bug fix update), 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/RHSA-2023:1428