Bug 2039208 - Recording Rule "kubevirt_vm_container_free_memory_bytes" is not working
Summary: Recording Rule "kubevirt_vm_container_free_memory_bytes" is not working
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Metrics
Version: 4.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.10.0
Assignee: Shirly Radco
QA Contact: Satyajit Bulage
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-11 09:15 UTC by Shirly Radco
Modified: 2022-03-16 16:06 UTC (History)
3 users (show)

Fixed In Version: hco-bundle-registry-container-v4.10.0-638
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-16 16:06:09 UTC
Target Upstream Version:
Embargoed:
sbulage: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt issues 6486 0 None closed Recording Rule "kubevirt_vm_container_free_memory_bytes" is not working 2022-01-31 15:11:25 UTC
Github kubevirt kubevirt pull 7052 0 None Merged Fix kubevirt_vm_container_free_memory_bytes 2022-01-31 15:14:09 UTC
Github kubevirt kubevirt pull 7146 0 None Merged [release-0.49] Fix kubevirt_vm_container_free_memory_bytes 2022-01-31 15:14:34 UTC
Red Hat Product Errata RHSA-2022:0947 0 None None None 2022-03-16 16:06:23 UTC

Description Shirly Radco 2022-01-11 09:15:46 UTC
Description of problem:
When we try to execute recording rules: "kubevirt_vm_container_free_memory_bytes" shows "No datapoints found".
This happens since not all VMs have a memory limit set and due to kube_pod_container_resource_limits_memory_bytes metric deprecation in favor of
kube_pod_container_resource_limits.

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


How reproducible:
100%

Steps to Reproduce:
1. Test kubevirt_vm_container_free_memory_bytes when there is a memory limit set for the VMI container.
2.
3.

Actual results:
The recording rule returns "No datapoints found"

Expected results:
The recording rule should have a value 


Additional info:

Comment 1 Shirly Radco 2022-01-11 09:21:07 UTC
PR https://github.com/kubevirt/kubevirt/pull/7052

Comment 2 Satyajit Bulage 2022-02-02 12:55:00 UTC
I am still see "No datapoints found." when  execute "kubevirt_vm_container_free_memory_bytes" metrics.

Currently cluster is running with --> Deployed: CNV-v4.10.0-641

Comment 3 Satyajit Bulage 2022-02-03 08:29:15 UTC
After adding "memory limits" in the VM spec, I am able to see metrics is showing output.
Verifying it.

Comment 4 Satyajit Bulage 2022-02-03 08:49:13 UTC
Bringing back to ON_QA for value validation.

Comment 5 Satyajit Bulage 2022-02-16 03:53:04 UTC
I see recording rule: "kubevirt_vm_container_free_memory_bytes" is using new metrics "https://github.com/kubevirt/kubevirt/pull/7209/files#diff-0f904f2ae31317b82daba8b2976856da054ce0ff43731afe9a91befa5e2489fdR401"

I checked the values by executing individual metrics (from above code) and values are approximately correct(free memory is continuously changing).

Comment 8 errata-xmlrpc 2022-03-16 16:06:09 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 (Moderate: OpenShift Virtualization 4.10.0 Images security and bug fix update), 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-2022:0947


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