Bug 1940649

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, hshukla, jdelft, jiazha, jlanford, kuiwang, openshift-bugzilla-robot
Version: 4.5Keywords: Triaged
Target Milestone: ---   
Target Release: 4.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1936707
: 1940651 (view as bug list) Environment:
Last Closed: 2021-04-20 19:27:22 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: 1936707    
Bug Blocks: 1940651    

Comment 2 Bruno Andrade 2021-03-26 04:08:25 UTC
Looks good, steps used to reproduce it:

OLM version: 0.16.1
git commit: 58918fa71fca6874c7bd884ce541de0ecf1ea411

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-jl745
kind: ServiceAccount
metadata:
  creationTimestamp: "2021-03-26T04:05:49Z"
  name: default
  namespace: test-operators
  resourceVersion: "46938"
  selfLink: /api/v1/namespaces/test-operators/serviceaccounts/default
  uid: dac31d3f-9e96-457e-a547-d4cc6f300b59
secrets:
- name: default-token-v8vh6
- name: default-dockercfg-jl745

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 8 errata-xmlrpc 2021-04-20 19:27:22 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.6.25 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:1153