mapi_current_pending_csr metric is always set to 1 in OpenShift Container Platform 4.8
After installing or updating to OCP 4.8 it was found that
openshift-cluster-machine-approveris always reporting one, even though no pending
$ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.8.12 True False 43h Cluster version is 4.8.12 $ oc get csr No resources found $ oc exec -c machine-approver-controller machine-approver-XXXXXXXX-XXXXX -- curl -H "Authorization: Bearer XXXXXX" -k 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 1
mapi_current_pending_csrconstantly reporting 1, even though there is no pending
- Red Hat OpenShift Container Platform (OCP) 4.8 and 4.9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.