Bug 2072794 - [RFE] Add kubevirt filesystem usage metric in the dashboard
Summary: [RFE] Add kubevirt filesystem usage metric in the dashboard
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Metrics
Version: 4.10.6
Hardware: x86_64
OS: All
unspecified
high
Target Milestone: ---
: 4.11.2
Assignee: João Vilaça
QA Contact: Ahmad
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-07 01:18 UTC by Germano Veit Michel
Modified: 2023-01-12 14:09 UTC (History)
5 users (show)

Fixed In Version: hco-bundle-registry-v4.11.1-15
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-12 14:08:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 7814 0 None Merged Add VMI filesystem usage metrics 2022-11-07 10:53:05 UTC
Github kubevirt kubevirt pull 8621 0 None Merged [release-0.53] Add VMI filesystem usage metrics 2022-11-10 09:18:12 UTC
Red Hat Issue Tracker CNV-17460 0 None None None 2022-11-10 09:29:16 UTC
Red Hat Product Errata RHEA-2023:0155 0 None None None 2023-01-12 14:09:12 UTC

Description Germano Veit Michel 2022-04-07 01:18:15 UTC
Description of problem:

Currently in Virtualization -> Overview -> Filesystem usage has a metric about pod filesystem usage, which should be dropped by BZ2072793.

Please replace it with actual VM filesystem usage collected by guest agent:

# oc rsh virt-launcher-rhel8-accepted-panda-m2ghb
sh-4.4# virsh qemu-agent-command 1 '{"execute":"guest-get-fsinfo"}' --pretty
{
  "return": [
    {
      "name": "vda2",
      "total-bytes": 104634368,
      "mountpoint": "/boot/efi",
      "disk": [
        {
          "bus-type": "virtio",
          "bus": 0,
          "unit": 0,
          "pci-controller": {
            "bus": 4,
            "slot": 0,
            "domain": 0,
            "function": 0
          },
          "dev": "/dev/vda2",
          "target": 0
        }
      ],
      "used-bytes": 6006784,
      "type": "vfat"
    },
    {
      "name": "vda3",
      "total-bytes": 11244908544,
      "mountpoint": "/",
      "disk": [
        {
          "bus-type": "virtio",
          "bus": 0,
          "unit": 0,
          "pci-controller": {
            "bus": 4,
            "slot": 0,
            "domain": 0,
            "function": 0
          },
          "dev": "/dev/vda3",
          "target": 0
        }
      ],
      "used-bytes": 4077879296,
      "type": "xfs"
    }
  ]
}

Comment 2 Krzysztof Majcher 2022-04-14 08:23:05 UTC
Joao, please assess if adding this metric can be done within 4.11 timeframe.
Then we'll ask Shirly/Assaf to make necessary dashboard changes.

Comment 3 Simone Tiraboschi 2022-06-06 06:06:43 UTC
the PR is still not merged, moving back to post

Comment 4 Krzysztof Majcher 2022-06-29 15:49:01 UTC
Targetting to 4.11.1 as kubevirt relase for 4.11 is already closed.

Comment 5 Debarati Basu-Nag 2022-09-29 20:02:37 UTC
Ohad, please work with João to verify this bug.

Comment 6 SATHEESARAN 2022-10-18 11:03:04 UTC
Tested with CNV-4.11.1-20 and the metrics - kubevirt_vmi_filesystem_* is not yet available for consumption.
Moving this bug to ASSIGNED state.

@Joao, I request you to confirm the non-availability of the fix in 4.11.1 and take
the required actions on this bug ( either move the target_release to 4.12 or cherry-pick the fix to 4.11 )

Comment 7 João Vilaça 2022-10-18 12:02:25 UTC
I can cherry-pick, but will only be available for 4.11.2, what do you think @sasundar, @kmajcher ?

Comment 8 SATHEESARAN 2022-10-18 12:32:37 UTC
(In reply to João Vilaça from comment #7)
> I can cherry-pick, but will only be available for 4.11.2, what do you think
> @sasundar, @kmajcher ?

As this metric provide valuable information about VM filesystem usage, it is good
to include that as part of 4.11.z.

I agree to include this fix in 4.11.2, but I would still wait for comments from
Krzysztof.

Comment 9 Krzysztof Majcher 2022-10-18 12:45:38 UTC
Please address in 4.11.2, I've update the target release field accordingly.

Comment 11 Ahmad 2022-12-19 17:00:26 UTC
verified v4.11.2 
kubevirt_vmi_filesystem_* metrics are displayed in 4.11.2

Comment 18 errata-xmlrpc 2023-01-12 14:08:55 UTC
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 (OpenShift Virtualization 4.11.2 Images), 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/RHEA-2023:0155


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