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

Bug 1878737

Summary: [MTC-UI] The UI shows a blank screen when executing a cancelled migration
Product: OpenShift Container Platform Reporter: Sergio <sregidor>
Component: Migration ToolingAssignee: Ian <ibolton>
Status: CLOSED ERRATA QA Contact: Xin jiang <xjiang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.5CC: chezhang, mberube, rjohnson, rpattath, whu, xjiang
Target Milestone: ---   
Target Release: 4.5.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: 2020-09-30 18:43:07 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 2020-09-14 12:31:39 UTC
Description of problem:
When we cancel a migration and execute it again, the UI shows a blank screen. If we refresh the browser, everything is shown properly again.

Version-Release number of selected component (if applicable):
CMT 1.3
SOURCE CLUSTER: azure 4.2
TARGET CLUSTER: azure 4.5
Browser: Chrome

How reproducible:
Always

Steps to Reproduce:
1. Deploy an application

$ oc process -p NAMESPACE=nginx-example -f https://github.com/sergiordlr/temp-testfiles/blob/master/app_migration/nginx_pvs/nginx_with_pv_defaultsc_template.yml?raw=true | oc create -f -

2. Create a migration plan for the application

3. Execute the migration plan. Quiesced migration.

4. Wait until pods are quiesced in the source cluster and cancel the migration.

5. Execute the migration again


Actual results:
After we click on "Migrate" in step 5, the screen becomes blank. And an error is shown in the browser's console:


app.bundle.js:106 TypeError: Cannot read property 'some' of null
    at app.bundle.js:58
    at Array.filter (<anonymous>)
    at app.bundle.js:58
    at Array.map (<anonymous>)
    at app.bundle.js:58
    at app.bundle.js:50
    at app.bundle.js:50
    at app.bundle.js:50
    at app.bundle.js:50
    at app.bundle.js:50

Expected results:
The UI should show the screen normally, with the new migration execution running.

Additional info:

If we refresh the browser with F5, the UI starts working fine again.

Comment 1 Ian 2020-09-14 16:18:10 UTC
PR Opened https://github.com/konveyor/mig-ui/pull/1016. Will fix upon merging. Thanks.

Comment 5 Sergio 2020-09-18 09:40:51 UTC
Verified using MTC 1.3

openshift-migration-ui-rhel8@sha256:f306de1051cd2029944b2aa9511626b1dce365317fd04168478f14a43ad95e44

Now, the screen shows the new execution properly after we cancel a migration a execute a new one.

Moved to VERIFIED status.

Comment 9 errata-xmlrpc 2020-09-30 18:43:07 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.3.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:4148