Bug 2031047 - mapi_current_pending_csr is always set to 1 on OpenShift Container Platform 4.8
Summary: mapi_current_pending_csr is always set to 1 on OpenShift Container Platform 4.8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Compute
Version: 4.8
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 4.8.z
Assignee: Damiano Donati
QA Contact: sunzhaohua
URL:
Whiteboard:
Depends On: 2019754
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-10 11:55 UTC by OpenShift BugZilla Robot
Modified: 2022-04-11 08:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-05 16:12:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-machine-approver pull 146 0 None open [release-4.8] Bug 2031047: Ensure pending CSR count is valid post approval 2021-12-10 11:55:18 UTC
Red Hat Product Errata RHBA-2021:5209 0 None None None 2022-01-05 16:12:15 UTC

Comment 3 sunzhaohua 2021-12-17 06:44:05 UTC
Verified
clusterversion: 4.8.0-0.nightly-2021-12-16-211324

$ token=`oc sa get-token prometheus-k8s -n openshift-monitoring`     
$ oc exec -c machine-approver-controller  machine-approver-7c7c869cdf-gjnkf  -- curl -k -H "Authorization: Bearer `oc sa get-token prometheus-k8s -n openshift-monitoring`"   -H "Content-type: application/json" https://localhost:9192/metrics | grep "mapi_current_pending_csr"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0# HELP mapi_current_pending_csr Count of pending CSRs at the cluster level
# TYPE mapi_current_pending_csr gauge
mapi_current_pending_csr 0
100  166k    0  166k    0     0  4748k      0 --:--:-- --:--:-- --:--:-- 4748k

$ oc get csr | grep Pending                                                                                                                   [14:42:55]
 $

Comment 6 errata-xmlrpc 2022-01-05 16:12: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 (OpenShift Container Platform 4.8.25 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/RHBA-2021:5209


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