Bug 2111240 - GiB changes to B in Template's Edit boot source reference modal
Summary: GiB changes to B in Template's Edit boot source reference modal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.12.0
Assignee: Phillip Bailey
QA Contact: Leon Kladnitsky
URL:
Whiteboard:
Depends On:
Blocks: 2119613
TreeView+ depends on / blocked
 
Reported: 2022-07-26 19:40 UTC by Hilda Stastna
Modified: 2023-01-24 13:39 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2119613 (view as bug list)
Environment:
Last Closed: 2023-01-24 13:38:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
0 B after trying to edit the Disk size field, GiB changed to B (67.04 KB, image/png)
2022-07-26 19:40 UTC, Hilda Stastna
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 801 0 None open Bug 2111240: Fix units display bug 2022-07-31 14:37:25 UTC
Red Hat Issue Tracker CNV-20124 0 None None None 2023-01-24 12:53:29 UTC
Red Hat Product Errata RHSA-2023:0408 0 None None None 2023-01-24 13:39:02 UTC

Description Hilda Stastna 2022-07-26 19:40:50 UTC
Created attachment 1899534 [details]
0 B after trying to edit the Disk size field, GiB changed to B

Description of problem:
GiB changes to B for the Disk size field, in Edit boot source reference modal, when editing VM Template's boot source reference.

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

How reproducible:
always

Steps to Reproduce:
1. Go to VM Template list
2. For some template, choose Edit boot source reference - Actions column
3. In the modal, edit Disk size field: click into the field and try to write any char (does not matter if number or not) or delete the default value that is 30.

Actual results:
The unit GiB disappears, then 0 B appears, no matter the user writes in the field.

Expected results:
The unit GiB stays displayed and the value can be edited normally.

Additional info:

Comment 1 Guohua Ouyang 2022-07-26 23:37:22 UTC
It happens everywhere if there is a disk size field: in the catalog, in the disk modal etc.

Comment 2 Yifat Menchik 2022-07-27 15:32:20 UTC
After discussing this with phbailey, his suggestion seems good and reasonable to me. So agreed that instead of using dynamic units, we'll use a dropdown for the units and make it more consistent with other modals we have.

Comment 3 Guohua Ouyang 2022-08-19 00:27:55 UTC
verified on v4.12.0-106

Comment 7 errata-xmlrpc 2023-01-24 13:38:04 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


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