Bug 2054950
Summary: | A large number is showing on disk size field | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Guohua Ouyang <gouyang> | ||||||
Component: | Console Kubevirt Plugin | Assignee: | Hilda Stastna <hstastna> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Guohua Ouyang <gouyang> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 4.10 | CC: | aos-bugs, gouyang, hstastna, yzamir | ||||||
Target Milestone: | --- | ||||||||
Target Release: | 4.11.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: |
Cause:
Size is always in bytes
Consequence:
A none user friendly number is displayed
Fix:
Process the bytes using a "humanize" method that show the SI units correctly
Result:
Size is display using Byte SI units.
For example "1024B" will be displayed as "1KiB".
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2022-08-10 10:49:51 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: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 2074895 | ||||||||
Attachments: |
|
Description
Guohua Ouyang
2022-02-16 04:41:42 UTC
(In reply to Hilda Stastna from comment #1) > Hi Guohua, > > to be more specific, the problem is incorrect units or the disk size > displayed in bytes instead of Gib, in the "Edit disk" modal window. But I > would like to make sure about the expected result. Should the disk size be > displayed in GiB in that window? Also let's make sure about the behavior > when changing units - The value doesn't change when changing GiB to MiB/TiB. > Is this expected behavior? Thanks! the problem is it loads with a large number and unit GiB. the expected results is it loads a small number and unit GiB, a large number is not readable. Tests should cover three scenarios: 1. create VM from template has no boot source 2. create VM from template has manual updated boot source 3. create VM from template which has auto-updated boot source Test on master which has the PR included, the first 2 scenarios are PASS, but failed on the scenario 3, it still shows a large number on storage and edit disk modal. Created attachment 1867326 [details]
large number on storage step while using templates which has auto-updated boot source
Test it on latest master and 4.11, the problem #1, #2, #3 are not reproduced any more. move the bug back to ON_QA. 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 Container Platform 4.11.0 bug fix and 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-2022:5069 |