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:
It happens everywhere if there is a disk size field: in the catalog, in the disk modal etc.
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.
verified on v4.12.0-106
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