Bug 2158550

Summary: Error after renaming MigrationPolicy
Product: Container Native Virtualization (CNV) Reporter: Hilda Stastna <hstastna>
Component: User ExperienceAssignee: Hilda Stastna <hstastna>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.13.0CC: gouyang
Target Milestone: ---   
Target Release: 4.14.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-11-08 14:05:03 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 in the UI, after renaming a migration policy none

Description Hilda Stastna 2023-01-05 17:36:26 UTC
Created attachment 1935978 [details]
Error in the UI, after renaming a migration policy

Description of problem:
Error displayed after renaming a migration policy

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

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,
   name it for example "a"
3. Edit the MigrationPolicy, rename it to for example "aa"

Actual results:
Error occurs, the url changes to:
http://localhost:9000/k8s/cluster/migraations.kubevirt.io~v1alpha1~MigrationPolicy/a
- see mainly the "migraations" substring

Expected results:
No any error present, the name changed to a new name, the url is correct.

Additional info:
This bug feels to be similar to the bug:
https://bugzilla.redhat.com/show_bug.cgi?id=2142647
It seems that the problem depends on how you name the original MigrationPolicy and how you rename it. If you name it simply and rename it to some character or a substring of the url, the error is definitely on the way.

Comment 1 Guohua Ouyang 2023-04-28 07:00:42 UTC
verified on kubevirt-console-plugin-rhel9-container-v4.14.0-1047

Comment 4 errata-xmlrpc 2023-11-08 14:05:03 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.14.0 Images security and bug fix 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:6817