Incorrect ownerReference for a service account while upgrading an Operator in Openshift 4

Solution Verified - Updated -

Issue

  • The new as well as the old CSVs stay in Pending state while upgrading an operator.
  • The error seen in the old CSV is with respect to it's service account ownership:

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

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

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