Cluster Operator image-registry is degraded in the RHOCP cluster

Solution Verified - Updated -

Issue

  • The Cluster Operator(CO) image-registry is degraded with below error:

    $ oc describe co/image-registry
    <..>
    time="2024-02-26T08:57:14Z" level=error msg="error while validating cloud credentials: failed checking create cloud creds: error gathering AWS credentials details: error querying username: InvalidClientTokenId: The security token included in the request is invalid.\n\tstatus code: 403, request id: ef421f6c-27b3-4cf7-85d3-307ff1cd8bba" controller=secretannotator
    <..>
    
  • Secrets inside the namespace openshift-image-registry containing IAM account credentials got deleted by mistake.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • AWS

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