Projects stuck in Terminating state and unable to run "oc api-resources" on OpenShift

Solution Verified - Updated -

Issue

  • Projects are stuck in Terminating status after redeploying master certificates;

  • Running oc api-resources does not return a list of resources and shows error:

    $ oc api-resources
    error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
    

    or

    $ oc api-resources
    error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: Unauthorized   
    

Environment

  • Red Hat OpenShift Container Platform (OCP) 3.11
  • Red Hat OpenShift Container Platform (OCP) 4.x

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