Unable to upgrade operator for CSV Pending in Openshift 4
Issue
-
Why the old
CSV
is stuck inReplacing
and the new one isPending
? 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 newCSV
result in statusPresentNotSatisfied
:$ 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.