Bug 1878737 - [MTC-UI] The UI shows a blank screen when executing a cancelled migration
Summary: [MTC-UI] The UI shows a blank screen when executing a cancelled migration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Migration Tooling
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Ian
QA Contact: Xin jiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-14 12:31 UTC by Sergio
Modified: 2020-09-30 18:43 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-30 18:43:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4148 0 None None None 2020-09-30 18:43:19 UTC

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


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