Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-57614

oc get apirequestcounts without any items which doesn't work as expected.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.18.z, 4.19.z, 4.20.0
    • openshift-apiserver
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Critical
    • Yes
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      There is no results on OCP 4.20 cluster,
      
      $ oc get apirequestcounts.apiserver.openshift.io 
      No resources found
      

      Version-Release number of selected component (if applicable):

      $ oc get clusterversion
      NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.20.0-0.nightly-2025-06-16-162515   True        False         4h2m    Cluster version is 4.20.0-0.nightly-2025-06-16-162515
      

      How reproducible:

      $ oc get apirequestcounts.apiserver.openshift.io  
      No resources found

      Steps to Reproduce:

      see above
          

      Actual results:

      No resources found

      Expected results:

      It should see some ouput of apirequests count 

      Additional info:

      Checked this with OCP 4.14.52, like this
      $ oc get apirequestcounts.apiserver.openshift.io 
      NAME                                                                 REMOVEDINRELEASE   REQUESTSINCURRENTHOUR   REQUESTSINLAST24H
      alertingrules.v1.monitoring.openshift.io                                                          11                      55
      alertmanagerconfigs.v1alpha1.monitoring.coreos.com                                                4                       13
      alertmanagerconfigs.v1beta1.monitoring.coreos.com                                                 8                       42
      alertmanagers.v1.monitoring.coreos.com                                                            84                      298
      alertrelabelconfigs.v1.monitoring.openshift.io                                                    10                      47
      apirequestcounts.v1.apiserver.openshift.io                                                        7762                    19860
      apiservers.v1.config.openshift.io                                                                 47                      239
      apiservices.v1.apiregistration.k8s.io                                                             1766                    5607
      authentications.v1.config.openshift.io                                                            64                      255
      authentications.v1.operator.openshift.io                                                          325                     1965
      baremetalhosts.v1alpha1.metal3.io                                                                 7                       34
      bmceventsubscriptions.v1alpha1.metal3.io                                                          7                       33
      brokertemplateinstances.v1.template.openshift.io                                                  3                       15
      ...
      

      This brings an impact on the product: 
      Alerts APIRemovedInNextEUSReleaseInUse and APIRemovedInNextReleaseInUse don't work as expected. 
      It is currently unclear from which version it started and further testing is needed。
      Checked old releases, this problem emerged starting from OCP 4.18.1

      $ oc get clusterversion
      NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.18.1    True        False         78m     Cluster version is 4.18.1
      
      $ oc get apirequestcounts.apiserver.openshift.io 
      NAME                                                               REMOVEDINRELEASE   REQUESTSINCURRENTHOUR   REQUESTSINLAST24H
      flowschemas.v1beta3.flowcontrol.apiserver.k8s.io                   1.32               0                       16
      prioritylevelconfigurations.v1beta3.flowcontrol.apiserver.k8s.io   1.32               0                       9
      

              Unassigned Unassigned
              wk2019 Ke Wang
              None
              None
              Rahul Gangwar Rahul Gangwar
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: