Unable to upgrade operator for CSV Pending in Openshift 4

Solution Verified - Updated -

Issue

  • Why the old CSV is stuck in Replacing and the new one is Pending? For example:

    $ oc get csv 
    NAME                DISPLAY     VERSION   REPLACES          PHASE
    operator.v1.2.1     Operator    1.2.1                       Replacing
    operator.v1.3.0     Operator    1.3.0     operator.v1.2.1   Pending
    
  • The serviceaccount for the new CSV result in status PresentNotSatisfied:

    $ oc get csv <new-csv-name> -o yaml
    [...]
          kind:     ServiceAccount
          message:  Service account is not owned by this ClusterServiceVersion
          name:     <service-account-name>
          status:   PresentNotSatisfied
         version:  v1
    [...]
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.7
    • 4.8

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