Bug 2142647

Summary: Error after MigrationPolicy deletion
Product: Container Native Virtualization (CNV) Reporter: Hilda Stastna <hstastna>
Component: User ExperienceAssignee: Aviv Turgeman <aturgema>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.12.0CC: aturgema, gouyang
Target Milestone: ---   
Target Release: 4.13.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: 2023-01-24 13:42: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:
Attachments:
Description Flags
Error displayed after migration policy deletion none

Description Hilda Stastna 2022-11-14 18:03:43 UTC
Created attachment 1924300 [details]
Error displayed after migration policy deletion

Description of problem:
Error 404 is displayed after MigrationPolicy deletion.

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

How reproducible:
always

Steps to Reproduce:
1. Go to Virtualization > MigrationPolicies
2. Create a migration policy as an admin or a privileged user,
   if there is no any migration policy
3. Try to delete the migration policy

Actual results:
The following text is displayed:
404: Page Not Found
The server doesn't have a resource type "migr". Try refreshing the page if it was recently added.

Expected results:
The remaining list of migration policies or the page with the button to create a migration policy is displayed.

Additional info:
It does not matter from where a migration policy is deleted (from the list or when being in its details page).

Comment 1 Hilda Stastna 2022-11-14 18:55:33 UTC
Note that this bug and the exact text of the error depends on the name of the deleted migration policy.

Comment 2 Hilda Stastna 2022-11-15 11:56:41 UTC
To make sure that anyone can reproduce this:
Try to name the policy "a", for example, or some other character present in the url, or some substring of the url string you can see before you delete the policy.

Comment 6 errata-xmlrpc 2023-01-24 13:42: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 (Important: OpenShift Virtualization 4.12.0 Images security 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-2023:0408