Bug 1949117 - "Migration plan resources" page displays a permanent error message when a migration plan is deleted from the backend
Summary: "Migration plan resources" page displays a permanent error message when a mig...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: UI
Version: 1.4.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 1.6.0
Assignee: Ian
QA Contact: Xin jiang
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-13 13:09 UTC by Sergio
Modified: 2021-09-29 14:34 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-29 14:34:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-ui pull 1281 0 None None None 2021-08-23 21:42:58 UTC
Red Hat Product Errata RHSA-2021:3694 0 None None None 2021-09-29 14:34:55 UTC

Description Sergio 2021-04-13 13:09:56 UTC
Description of problem:
When the UI is showing a migplan and showing the "Migration plan resources", and this migplan is deleted from the backend (via oc command, or by other user  in another browser) while the UI is in this screen, the UI displays an error in the "Migration plan resources" section saying: 

'''
Danger alert:Error loading debug data for plan "empty"
Request failed with status code 404"
'''

From this moment on, this error is displayed in all the migration plans in the UI and "Migration plan resources" cannot be displayed any more no matter the migration plan.

Refreshing the browser with F5 fixes the problem.


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

How reproducible:
Always

Steps to Reproduce:
1. Create 2 empty namespaces in the source cluster
oc new-project empty
oc new-project empty2

2. Create 2 migration plans, one for each namespace created in step 1. We can use the same name for the migplans, "empty" and "empty2".

3. Migrate both migration plans and wait until both have finished.

4. In the UI, click on "Migration plans" (on the left) -> on the "empty" migration plan row -> click on the number "1" in the cell "Migrations" 

   The migration will be displayed, and the migration plan resources will be displayed too. Click on “Migration plan resources” to display the resources.

5. From the CLI, delete the migration plan. (while the UI is showing the "empty" migplan resources)

   oc delete migplan empty -n openshift-migration

6. You will see an error in the UI
'''
Danger alert:Error loading debug data for plan "empty"
Request failed with status code 404"
'''

(if you dont see this error directly, click on “Migration plan resources”)

7. This error will never disappear and will always be shown for every existing plan and for all the new created plans.

Actual results:
This error will never disappear and will always be shown for every existing plan and for all the new created plans.

Expected results:
When the UI displays other plans this error should not be present any more.

Additional info:
To fix the problem and to be able to see the migration resources again, we need to refresh the browser with F5.

Comment 6 errata-xmlrpc 2021-09-29 14:34:47 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 (Moderate: Migration Toolkit for Containers (MTC) 1.6.0 security & bugfix 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-2021:3694


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