Bug 1935909
| Summary: | New CSV using ServiceAccount named "default" stuck in Pending during upgrade | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ben Luddy <bluddy> |
| Component: | OLM | Assignee: | Ben Luddy <bluddy> |
| OLM sub component: | OLM | QA Contact: | Bruno Andrade <bandrade> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | high | ||
| Priority: | high | CC: | bandrade, bluddy, hshukla, jiazha |
| Version: | 4.5 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: ClusterServiceVersions required associated ServiceAccounts to either have no ownerReferences or to have an ownerReference to the CSV in question.
Consequence: The "default" ServiceAccount, which is not created as part of operator installation, could not be satisfied as a CSV requirement if its .metadata.ownerReferences was not empty.
Fix: ClusterServiceVersions now require associated ServiceAccounts to either have no ownerReferences to CSVs or to have an ownerReference to the CSV in question.
Result: ServiceAccounts with only non-ClusterServiceVersion ownerReferences can satisfy the requirements of any ClusterServiceVersion.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-07-27 22:51:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1936707 | ||
|
Description
Ben Luddy
2021-03-05 19:07:16 UTC
Looks good, steps used to reproduce it:
OCP Version: 4.8.0-0.nightly-2021-03-09-115915
OLM version: 0.17.0
git commit: 8ccfdb9a30b7162e6330fb599a8d837d1e44758b
1) Create the namespace and the default service account is present
oc get sa default -n test-operators -o yaml
apiVersion: v1
imagePullSecrets:
- name: default-dockercfg-p8xvt
kind: ServiceAccount
metadata:
creationTimestamp: "2021-03-09T16:00:37Z"
name: default
namespace: test-operators
resourceVersion: "55575"
uid: a038effe-79f1-4137-b956-fe8347e9b256
secrets:
- name: default-token-mrnk9
- name: default-dockercfg-p8xvt
2) Create the operator group
3) Create the CSV as oriented
4) Check if CSV installation succeeds.
phase: Succeeded
reason: InstallSucceeded
requirementStatus:
- group: ""
kind: ServiceAccount
message: ""
name: default
status: Present
version: v1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:2438 |