Bug 1940651

Summary: New CSV using ServiceAccount named "default" stuck in Pending during upgrade
Product: OpenShift Container Platform Reporter: Ben Luddy <bluddy>
Component: OLMAssignee: Ben Luddy <bluddy>
OLM sub component: OLM QA Contact: Bruno Andrade <bandrade>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: bluddy, jiazha, jlanford, openshift-bugzilla-robot
Version: 4.5Keywords: Triaged
Target Milestone: ---   
Target Release: 4.5.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1940649 Environment:
Last Closed: 2021-04-13 23:43:27 UTC Type: ---
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: 1940649    
Bug Blocks:    

Comment 3 Bruno Andrade 2021-03-30 16:03:57 UTC
Looks good, steps used to reproduce it:

OCP Version: 4.5.0-0.nightly-2021-03-27-233848
OLM version: 0.15.1
git commit: 5c6c4ed9f3fc59f387f568e5b4f210e18bacd168


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-5775s
kind: ServiceAccount
metadata:
  creationTimestamp: "2021-03-30T16:00:05Z"
  name: default
  namespace: test-operators
  resourceVersion: "42080"
  selfLink: /api/v1/namespaces/test-operators/serviceaccounts/default
  uid: 2ea0414a-1051-4ec8-8995-cf59d0269d38
secrets:
- name: default-token-bm8mn
- name: default-dockercfg-5775s


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

Comment 5 errata-xmlrpc 2021-04-13 23:43:27 UTC
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 (OpenShift Container Platform 4.5.37 bug fix 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/RHBA-2021:1015