Bug 1915702

Summary: [MTC-UI] UI crashes when a rollback is canceled
Product: Migration Toolkit for Containers Reporter: Sergio <sregidor>
Component: UIAssignee: John Matthews <jmatthew>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: medium    
Version: 1.4.0CC: chezhang, ernelson, ibolton, rjohnson, rpattath, whu, xjiang
Target Milestone: ---   
Target Release: 1.4.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-02-11 12:55:27 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 Sergio 2021-01-13 09:37:14 UTC
Description of problem:
When a rollback operation is canceled, the UI crashes and shows an error in the browser's console


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

How reproducible:
Always

Steps to Reproduce:
1. Create a namespace

oc new-project bz-test

2. Create a migration plan for this namespace

3. Execute the migration plan

4. Execute a rollback for this migration plan

5. Before the rollback ends, cancel it.


Actual results:
The screen becomes blank, and this error is shown in the browser's console

app.bundle.js:98 TypeError: Cannot read property 'reason' of undefined
    at app.bundle.js:50
    at app.bundle.js:50
    at Array.map (<anonymous>)
    at app.bundle.js:50
    at Array.map (<anonymous>)
    at app.bundle.js:50
    at app.bundle.js:50
    at app.bundle.js:50
    at app.bundle.js:50
    at Object.getPlansWithStatus (app.bundle.js:50)

Expected results:
The rollback operation should be canceled successfully and the UI should have no problem.

Additional info:

Comment 2 Ian 2021-01-13 14:54:19 UTC
Cherry picked over to 1.4.0 -> 4d491919ec729815b1f7f03f9f70c2e5a6d61193 https://github.com/konveyor/mig-ui/commit/4d491919ec729815b1f7f03f9f70c2e5a6d61193

Comment 6 Sergio 2021-01-22 11:34:07 UTC
Verified using MTC 1.4.0

openshift-migration-ui-rhel8@sha256:59088fffbb0453aea81c57e070cdec8ff57e7e4f721832cb493c36d159f31881


After canceling a Rollback the UI is displayed without problems.

We move the issue to VERIFIED status.

Comment 8 errata-xmlrpc 2021-02-11 12:55:27 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 Containers (MTC) tool image release advisory 1.4.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/RHBA-2020:5329