Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-25171

[2168195] 563GiB disk is shown as 512KiB in the console

XMLWordPrintable

    • Moderate
    • None

      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

        1. Screenshot 2023-02-08 at 10.19.02 pm.png
          89 kB
          Leon Kladnitsky
        2. Screenshot 2023-09-08 at 9.54.44 am.png
          154 kB
          Germano Veit Michel
        3. Screenshot 2023-09-08 at 9.57.45 am.png
          213 kB
          Germano Veit Michel

              upalatuc@redhat.com Ugo Palatucci
              rhn-support-gveitmic Germano Veit Michel
              Leon Kladnitsky Leon Kladnitsky
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: