Bug 2019754 - 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.9.z
Assignee: Joel Speed
QA Contact: sunzhaohua
URL:
Whiteboard:
: 2030955 (view as bug list)
Depends On: 2013528
Blocks: 2031047
TreeView+ depends on / blocked
 
Reported: 2021-11-03 10:07 UTC by Joel Speed
Modified: 2022-04-11 08:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2013528
Environment:
Last Closed: 2021-11-22 21:47:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-machine-approver pull 139 0 None open Bug 2019754: Ensure pending CSR count is valid post approval 2021-11-03 10:09:53 UTC
Red Hat Product Errata RHBA-2021:4712 0 None None None 2021-11-22 21:47:18 UTC

Comment 4 sunzhaohua 2021-11-16 06:47:42 UTC
verified
$ oc get clusterversion                                                                                                                                 [14:46:27]
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.9.0-0.nightly-2021-11-15-113921   True        False         36m     Cluster version is 4.9.0-0.nightly-2021-11-15-113921

$ oc get csr | grep Pending                                                                                                                             [14:46:08]

$ token=`oc sa get-token prometheus-k8s -n openshift-monitoring`                                                                                        [14:46:14]
$ oc exec -c machine-approver-controller  machine-approver-6c479cfd7-b6kr9  -- 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  148k    0  148k    0     0  9887k      0 --:--:-- --:--:-- --:--:-- 9887k

Comment 7 errata-xmlrpc 2021-11-22 21:47:05 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.9.8 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:4712

Comment 8 Joel Speed 2021-12-10 13:07:23 UTC
*** Bug 2030955 has been marked as a duplicate of this bug. ***


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