Bug 2231106

Summary: Error code 504 is displayed in the migration details page
Product: Migration Toolkit for Containers Reporter: mohamed <midays>
Component: UIAssignee: John Matthews <jmatthew>
Status: NEW --- QA Contact: mohamed <midays>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.7.12CC: rjohnson
Target Milestone: ---Keywords: Regression
Target Release: ---   
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: 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:
Attachments:
Description Flags
status code 504 none

Description mohamed 2023-08-10 15:04:06 UTC
Created attachment 1982816 [details]
status code 504

Description of problem:

In the migration details page, at first the migration details are displayed without any issues. However, after sometime, the details disappear, and an error is printed:

Version-Release number of selected component (if applicable):
(GCP) / OCP 3.11 -> OCP 4.14
MTC 1.7.12

How reproducible:
Always

Steps to Reproduce:
1. Create a migration plan
2. Execute the migration and wait for it to successfully finish
3. Navigate to the migration details page
4. wait for some time

Actual results:

at first the details of the migration can be observed, but after a while, the details disappear, and replaced with a 504 status code error


Expected results:

regardless of how much time passed, the details should always be printed


Additional info: 

API response:

{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
s "status": "Failure",
  "message": "migplans.migration.openshift.io \"test-rlbk\" is forbidden: User \"system:anonymous\" cannot get resource \"migplans\" in API group \"migration.openshift.io\" in the namespace \"openshift-migration\"",
  "reason": "Forbidden",
  "details": {
    "name": "test-rlbk",
    "group": "migration.openshift.io",
    "kind": "migplans"
  },
  "code": 403
}