Unable to delete any Project or Namespace in RHOCP 4

Solution Verified - Updated -

Issue

  • Attempt to delete a Project or namespace with oc delete ns <ns-name> hangs.
  • After deletion attempt the Project or namespace remains in Terminating status.
  • Status conditions of the Project or namespace after deletion attempt shows the following message.

    status:
    conditions:
    - lastTransitionTime: "YYYY-MM-ddTHH:mm:ss"
      message: 'Discovery failed for some groups, 1 failing: unable to retrieve the
      complete list of server APIs: metrics.k8s.io/v1beta1: the server has received
      too many requests and has asked us to try again later'
      reason: DiscoveryFailed
      status: "True"
    
  • Unable to use PromQL to query the prometheus-adapter metrics job (apiserver_current_inflight_requests{job="prometheus-adapter"}) from OCP console Observe -> Metrics

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    o 4.11
    o 4.10
  • prometheus-adapter
  • kube-apiserver

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content