Bug 2045086
| Summary: | KubeVirtComponentExceedsRequestedMemory Prometheus Rule is Failing to Evaluate | ||
|---|---|---|---|
| Product: | Container Native Virtualization (CNV) | Reporter: | Kedar Bidarkar <kbidarka> |
| Component: | Virtualization | Assignee: | Igor Bezukh <ibezukh> |
| Status: | CLOSED ERRATA | QA Contact: | Denys Shchedrivyi <dshchedr> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.10.0 | CC: | cnv-qe-bugs, ibezukh, phoracek, sgott |
| Target Milestone: | --- | ||
| Target Release: | 4.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | virt-operator-container-v4.11.0-40 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-09-14 19:28:30 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Kedar Bidarkar
2022-01-25 15:18:26 UTC
The issue is still present on a freshly installed virt-operator-container-v4.10.0-203 hco-bundle-v4.10.0-636:
When I open alert KubeVirtComponentExceedsRequestedMemory in UI - I see this:
An error occurred
found duplicate series for the match group {pod="bridge-marker-fj4pl"} on the right hand-side of the operation: [{__name__="container_memory_usage_bytes", container="bridge-marker", endpoint="https-metrics", id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod333c8eb0_22dd_4d11_bc21_69b94b085d28.slice/crio-fe078919ccac0a41a41cd08f097f623b594a4bbb5b5c08a251d02de88b82c7b0.scope", image="registry.redhat.io/container-native-virtualization/bridge-marker@sha256:23d3e1b923ed0196997c6c2f4206d514b83a78b2771075d9afcc6473c44c1c97", instance="192.168.1.183:10250", job="kubelet", metrics_path="/metrics/cadvisor", name="k8s_bridge-marker_bridge-marker-fj4pl_openshift-cnv_333c8eb0-22dd-4d11-bc21-69b94b085d28_1", namespace="openshift-cnv", node="virt-den-410-88lfr-worker-0-m5d4p", pod="bridge-marker-fj4pl", prometheus="openshift-monitoring/k8s", service="kubelet"}, {__name__="container_memory_usage_bytes", container="POD", endpoint="https-metrics", id="/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod333c8eb0_22dd_4d11_bc21_69b94b085d28.slice/crio-dd8d1aff4453865c08b1a99cc6e245e0aef2d31c21053e9d1b38138f26493687.scope", instance="192.168.1.183:10250", job="kubelet", metrics_path="/metrics/cadvisor", name="k8s_POD_bridge-marker-fj4pl_openshift-cnv_333c8eb0-22dd-4d11-bc21-69b94b085d28_0", namespace="openshift-cnv", node="virt-den-410-88lfr-worker-0-m5d4p", pod="bridge-marker-fj4pl", prometheus="openshift-monitoring/k8s", service="kubelet"}];many-to-many matching not allowed: matching labels must be unique on one side
Moving this bz back to "Assigned"
My apologies, the PR indeed isn't related to the bug scope. However, the suggested query cannot be used since its evaluating a re-defined record rule taken from openshift-monitoring. Thus, it may work on downstream on OCP but its useless on upstream. Moreover, I can tell that the KubeVirtComponentExceedsRequestedCPU has a faulty query as well, again because its using downstream record rules. I also think we need to re-visit the logic of the alerts since the queries don't return a scalar value, but a vector, so I am not sure how the "< 0" could be evaluated. Even if you don't see errors when evaluating the alert query, it doesn't mean the query is correct, since it can return an empty vector, and then the expression "< 0" may work. Also it looks like with this PR https://github.com/openshift/cluster-monitoring-operator/pull/1214 Openshifit-monitoring has deprecated the node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate record rule So KubeVirtComponentExceedsRequestedMemory seems unreliable even on downstream. I meant to say that KubeVirtComponentExceedsRequestedCPU is unreliable *** Bug 2029357 has been marked as a duplicate of this bug. *** Verified on CNV-v4.11.0-244 Issue was fixed - no messages about evaluating fails 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 (Important: OpenShift Virtualization 4.11.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:6526 |