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

[2177602] Virtual Machine's Utilization -> Storage graph counts same device multiple times

XMLWordPrintable

    • Moderate
    • None

      Description of problem:

      Inside a VM, mount a filesystem multiple times:

      1. mount | grep vda3
        /dev/vda3 on / type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)
        /dev/vda3 on /mnt type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)

      Notice this is a 100G disk.

      1. lsblk
        NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
        vda 252:0 0 100G 0 disk
        ├─vda1 252:1 0 1M 0 part
        ├─vda2 252:2 0 100M 0 part /boot/efi
        └─vda3 252:3 0 99.9G 0 part /mnt
        vdb 252:16 0 1M 0 disk

      Now open the console and go to
      Virtualization -> Virtual Machines -> xyz -> Overview -> Utilization -> Storage

      Wait about 5 minutes

      You will see X used out of 200G, its counting vda3 twice due to the multiple mounts of the filesystem.

      That is incorrect. The VM has a 100G disk and it should not sum all the available and used spaces for all mountpoints.

      Version-Release number of selected component (if applicable):
      OCP 4.12.6
      CNV 4.12.1

      How reproducible:
      Always

      Steps to Reproduce:
      1. Mount the same filesystem twice or more, to different mountpoints
      2. Go to Utilization -> Storage

      Actual results:

      • Incorrect data reported

      Expected results:

      • Correct utilization reported

      Additional info:

      • This breaks reporting for Hypershift NodePool VMs, where the filesystems are mounted many times over.

              mschatzm@redhat.com Matan Schatzman
              rhn-support-gveitmic Germano Veit Michel
              Leon Kladnitsky Leon Kladnitsky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: