This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2168195 - 563GiB disk is shown as 512KiB in the console
Summary: 563GiB disk is shown as 512KiB in the console
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.12.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
: 4.14.0
Assignee: Ugo Palatucci
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-08 12:28 UTC by Germano Veit Michel
Modified: 2023-08-22 11:10 UTC (History)
1 user (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   CNV-25171 0 None None None 2023-08-22 11:09:31 UTC

Description Germano Veit Michel 2023-02-08 12:28:03 UTC
Description of problem:

This one needs a bit of specific numerology to reproduce. 
I noticed it in one of my VMs by chance.

Basically:
* Pre-configured PV of 563G (I'm using LSO)
* VM disk PVC of 500G binds to the PV above

Result: the UI shows the disk as 512KiB.

If I move things around (i.e. change some of the sizes, the problem goes away).

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

How reproducible:
Always

Steps to Reproduce:
1. Using LSO, create a 563G partition (I have some of 100 and 200G which do not reproduce)

$ sudo fdisk -l /dev/sda | grep -E 'Device|sda14 '
Device          Start        End    Sectors  Size Type
/dev/sda14 2726299648 3907029134 1180729487  563G Linux filesystem

2. Let LSO create the PV for it

NAME                CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM   STORAGECLASS   REASON   AGE
local-pv-6079dbae   563Gi      RWO            Delete           Available           local-ssd               27m

3. Create a VM disk in such a way that it will bind to the PV above. But request only 500G

NAME                            STATUS    VOLUME              CAPACITY   ACCESS MODES   STORAGECLASS   AGE
fedora-disk-bad-swift           Bound     local-pv-6079dbae   563Gi      RWO            local-ssd      30m

4. Navigate to the console, Virtual Machines -> VM -> Disks. See the size it reports.

See the screenshot attached for the exact case above.

Actual results:
512K

Expected results:
563G

Additional info:
* Only happens with very specific values


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