Bug 1892642
Summary: | oauth-server password metrics do not appear in UI after initial OCP installation | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Paul Needle <pneedle> | ||||||
Component: | oauth-apiserver | Assignee: | Standa Laznicka <slaznick> | ||||||
Status: | CLOSED ERRATA | QA Contact: | pmali | ||||||
Severity: | low | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 4.6 | CC: | alegrand, anpicker, aos-bugs, erooth, kakkoyun, lcosic, mfojtik, pkrupa, spasquie, surbania, xxia | ||||||
Target Milestone: | --- | Keywords: | UserExperience | ||||||
Target Release: | 4.8.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: |
Cause:
Some metrics were not properly initialized in code.
Consequence:
These metrics would not appear in searches in the Prometheus UI.
Fix:
Initialize the metrics that appeared missing.
Result:
All oauth-server metrics should appear in Prometheus UI metrics searches even though they did not see any updates yet.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2021-07-27 22:33:58 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: | |||||||||
Attachments: |
|
Description
Paul Needle
2020-10-29 11:29:49 UTC
This relates to https://github.com/openshift/openshift-docs/issues/21085. Please can you advise as to whether this is by design. I will update the documentation accordingly, once the cause has been identified. Thanks, Paul. Created attachment 1725048 [details]
Auto-complete without the metrics. This screenshot was taken before UWM setup
Created attachment 1725049 [details]
Auto-complete with the metrics. This screenshot was taken after UWM setup
From a conversation with our Monitoring Engineering team, I understand that the metrics aren't scraped by prometheus-k8s because the namespace doesn't have the openshift.io/cluster-monitoring="true" label. Moving the BZ component to oauth-apiserver. Paul. ``` oc get ns openshift-authentication -o json | jq '.metadata.labels' { "olm.operatorgroup.uid/2c885697-4676-49a0-8570-908efe54c41d": "", "openshift.io/cluster-monitoring": "true" } ``` @Paul can you run the same command on your cluster? oc get ns openshift-authentication -o json | jq '.metadata.labels' @Simon I ran this on a newly deployed cluster which exhibits the issue. The output is as follows: ---- $ oc get ns openshift-authentication -o json | jq '.metadata.labels' { "olm.operatorgroup.uid/65d0d381-1625-483f-b83e-cab4e0002507": "", "openshift.io/cluster-monitoring": "true" } ---- @Paul a must-gather would be handy :) @Simon I have now sent you a link to the must-gather output, which was too large to attach to this BZ. The archive is from a fresh OCP 4.6.1 installation. From a review by our Monitoring team, I understand that these metrics likely only appear after a user login attempt because the metrics counter is not initialised at start up. Can someone please review whether it is possible to have the metrics counter initialise at start up? Thanks, Paul. 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.8.2 bug fix and 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-2021:2438 |