Bug 2158550 - Error after renaming MigrationPolicy
Summary: Error after renaming MigrationPolicy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.14.0
Assignee: Hilda Stastna
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-05 17:36 UTC by Hilda Stastna
Modified: 2023-11-08 14:05 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:05:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Error in the UI, after renaming a migration policy (13.55 KB, image/png)
2023-01-05 17:36 UTC, Hilda Stastna
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 1189 0 None open Bug 2158550: Display MigrationPolicy page after renaming correctly 2023-03-24 14:55:41 UTC
Red Hat Issue Tracker CNV-23972 0 None None None 2023-01-05 17:51:31 UTC
Red Hat Product Errata RHSA-2023:6817 0 None None None 2023-11-08 14:05:16 UTC

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


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