-
Bug
-
Resolution: Done-Errata
-
None
-
False
-
-
False
-
CLOSED
-
---
-
---
-
-
-
CNV I/U Operators Sprint 234, CNV I/U Operators Sprint 235, CNV I/U Operators Sprint 236, CNV I/U Operators Sprint 237
-
High
-
No
Description of problem:
when running any libvirt metric on Virtual machine that is in paused status, by executing Prometheus query the output is empty.
Version-Release number of selected component (4.12.1 - 4.13.0):
How reproducible:
100%
Steps to Reproduce:
1.create a VM > oc create -f examples/vm-cirros.yaml (or any other vm)
2.pause the VM by executing the following command > virtctl pause VM <VM name>
3. wait ~30 seconds
3.run any libvirt metric by executing Prometheus query > example:
oc exec -n openshift-monitoring prometheus-k8s-0 -c prometheus – curl -s
http://127.0.0.1:9090/api/v1/query?query=kubevirt_vmi_cpu_usage_seconds | jq .
Actual results:
oc exec -n openshift-monitoring prometheus-k8s-0 -c prometheus – curl -s http://127.0.0.1:9090/api/v1/query?query=kubevirt_vmi_cpu_usage_seconds | jq .
{
"status": "success",
"data":
Expected results:
oc exec -n openshift-monitoring prometheus-k8s-0 -c prometheus – curl -s http://127.0.0.1:9090/api/v1/query?query=kubevirt_vmi_cpu_usage_seconds | jq .
{
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric":
,
"value": [
1677072210.101,
"52"
]
}
]
}
}
Additional info: