Bug 1702228
Summary: | Display memory in consistent way | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Shira Maximov <mshira> |
Component: | Compute Resources - CNV | Assignee: | Moti Asayag <masayag> |
Status: | CLOSED ERRATA | QA Contact: | Lukáš Hellebrandt <lhellebr> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4 | CC: | egolov, inecas, masayag, zhunting |
Target Milestone: | 6.6.0 | Keywords: | Triaged |
Target Release: | Unused | ||
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: | 2019-10-22 19:51:34 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Shira Maximov
2019-04-23 09:22:10 UTC
Created from redmine issue https://projects.theforeman.org/issues/26656 Upstream bug assigned to mshira Upstream bug assigned to mshira This fix changed memory units so that there is now inconsistent use of prefixes: KB, MB, GB now mean: 1) 10^3, 10^6, 10^9 in Kubevirt 2) 2^10, 2^20, 2^30 in Satellite The result is that if you create a 1024M VM in Kubevirt, it is shown as 977 MB VM in the Satellite. This doesn't seem like a bug, more like a inconsistency between those projects. Meaning of the units is documented. It can, however, confuse a user and doesn't look good at all. Because I can't propose any better solution, I'm ready to verify this BZ once Moti confirms this is intended. (In reply to Lukáš Hellebrandt from comment #9) > This fix changed memory units so that there is now inconsistent use of > prefixes: KB, MB, GB now mean: > 1) 10^3, 10^6, 10^9 in Kubevirt > 2) 2^10, 2^20, 2^30 in Satellite > The result is that if you create a 1024M VM in Kubevirt, it is shown as 977 > MB VM in the Satellite. > > This doesn't seem like a bug, more like a inconsistency between those > projects. Meaning of the units is documented. It can, however, confuse a > user and doesn't look good at all. > > Because I can't propose any better solution, I'm ready to verify this BZ > once Moti confirms this is intended. In kubernetes there are 2 sets of units: KB/MB/GB and KiB/MiB/GiB Therefore if you create a VM on KubeVirt side with 1GiB, you'll see it as 1GB on satellite side. If you create a VM with 1024MB on KubeVirt side, you'll see it as 977MB on satellite side. Satellite units relies on https://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#method-i-number_to_human_size When you create a VM on satellite side with 1GB, you'll see it as 1GiB on KubeVirt side. The behavior was intended to satisfy memory size as provided from satellite side, so if user specified 1GB, the reported memory for the vm should be 1GB and not 977MB. This is done by using the power of 2 scale when setting memory size on VM creation, and using the same scale to represent it on VMs view. Verified using Sat 6.6 snap 11. Verifying based on comment 9, comment 10 and the fact that creating a 1G VM in Sat leads to VM that shows as 1g in Sat and 1Gi in Kubevirt. 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, 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-2019:3172 |