Bug 2006561
| Summary: | [sig-instrumentation] Prometheus when installed on the cluster shouldn't have failing rules evaluation [Skipped:Disconnected] [Suite:openshift/conformance/parallel] | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ben Parees <bparees> |
| Component: | Monitoring | Assignee: | Haoyu Sun <hasun> |
| Status: | CLOSED ERRATA | QA Contact: | Junqi Zhao <juzhao> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.9 | CC: | amuller, anpicker, aos-bugs, erooth, hasun, hongyli, sippy, spasquie, stbenjam, wking |
| Target Milestone: | --- | ||
| Target Release: | 4.10.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: |
job=periodic-ci-openshift-release-master-nightly-4.10-e2e-aws-canary=all
|
|
| Last Closed: | 2022-03-10 16:12:32 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2011798 | ||
|
Description
Ben Parees
2021-09-21 22:05:47 UTC
The problem comes from the query of alert "HighlyAvailableWorkloadIncorrectlySpread":
There is duplication of metrics "kube_pod_spec_volumes_persistentvolumeclaims_info" when joining by (namespace, pod).
We can resolve the problem by changing the query to those below.
=> replace "kube_pod_spec_volumes_persistentvolumeclaims_info" with "max by( namespace, pod, workload ) kube_pod_spec_volumes_persistentvolumeclaims_info)"
count without(node) (group by(node, workload, namespace) (kube_pod_info{node!=""}
* on(namespace, pod) group_left(workload) (max by( namespace, pod, workload )(kube_pod_spec_volumes_persistentvolumeclaims_info)
* on(namespace, pod) group_left(workload) (namespace_workload_pod:kube_pod_owner:relabel
* on(namespace, workload, workload_type) group_left() (count without(pod) (namespace_workload_pod:kube_pod_owner:relabel{namespace=~"(openshift-.*|kube-.*|default)"})> 1))))) == 1
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 Container Platform 4.10.3 security 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:0056 |