-
Notifications
You must be signed in to change notification settings - Fork 566
Description
Bug Report
What did you do?
A clear and concise description of the steps you took (or insert a code snippet).
We upgrade operators by switching the catalog source image.
What did you expect to see?
A clear and concise description of what you expected to happen (or insert a code snippet).
We expect all the operators are upgraded successfully to the succeeded status.
What did you see instead? Under which circumstances?
A clear and concise description of what you expected to happen (or insert a code snippet).
Several new operators are in pending status. These operators can't be upgraded to the later version.
In the CSV status, it shows service account is owned by another ClusterServiceVersion
name: ibmlicensings.operator.ibm.com
status: Present
uuid: 5db2e0ca-29fb-49df-977a-6343129a271b
version: v1
- group: ''
kind: ServiceAccount
message: Service account is owned by another ClusterServiceVersion
name: ibm-licensing-operator
status: PresentNotSatisfied
version: v1
- group: ''
kind: ServiceAccount
message: Service account is owned by another ClusterServiceVersion
name: ibm-license-service
status: PresentNotSatisfied
version: v1
The install plan of the operator has been completed, but the service account still references the old CSV.
Environment
- operator-lifecycle-manager version:
0.17.0
-
Kubernetes version information:
name: kube-apiserver version: 1.20.0-beta.2
- Kubernetes cluster kind:
OCP 4.7.13
Possible Solution
Delete and reinstall these operators
Additional context
Add any other context about the problem here.
I am wondering if it is because the owner reference of the service account isn't updated during the update in OLM 0.17.0
https://github.com/operator-framework/operator-lifecycle-manager/blob/v0.17.0/pkg/controller/operators/catalog/step_ensurer.go#L138
I believe this PR is a fix to solve the issue: #2076
@benluddy Could you help to confirm that?
Could we get which OCP versions have this fix?
cc @pgodowski