Bug 2080609

Summary: Operator fails to install due to service name lookup failure
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: OLMAssignee: Alexander Greene <agreene>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: agreene, akrzos, imiller, keyoung, tflannag
Version: 4.9Keywords: Reopened, Triaged
Target Milestone: ---Flags: agreene: needinfo-
Target Release: 4.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-23 13:25:10 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: 2074612    
Bug Blocks:    

Comment 2 Jian Zhang 2022-05-06 09:35:18 UTC
1, Create a cluster that contains the fixed PR via the cluster-bot.

mac:~ jianzhang$ oc get clusterversion
NAME      VERSION                                                   AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.10.0-0.ci.test-2022-05-06-085926-ci-ln-2bz39r2-latest   True        False         2m      Cluster version is 4.10.0-0.ci.test-2022-05-06-085926-ci-ln-2bz39r2-latest

2, Create a CatalogSource without the `updateStrategy`
mac:~ jianzhang$ cat cs-bug.yaml 
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
  name: bug-operator
  namespace: openshift-marketplace
spec:
  sourceType: grpc
  image: quay.io/olmqe/learn-operator-index:v2
  displayName: Bug Operators
  publisher: OLM QE
mac:~ jianzhang$ oc create -f cs-bug.yaml 
catalogsource.operators.coreos.com/bug-operator created

3, Delete its SA.
mac:~ jianzhang$ oc project openshift-marketplace
Now using project "openshift-marketplace" on server "https://api.ci-ln-2bz39r2-72292.origin-ci-int-gce.dev.rhcloud.com:6443".

mac:~ jianzhang$ oc get sa
NAME                   SECRETS   AGE
bug-operator           2         2m3s
builder                2         19m
certified-operators    2         20m
community-operators    2         20m
default                2         27m
deployer               2         19m
marketplace-operator   2         27m
redhat-marketplace     2         20m
redhat-operators       2         20m
mac:~ jianzhang$ oc delete sa bug-operator 
serviceaccount "bug-operator" deleted

4, It can be created as expected, LGTM, verify it.
mac:~ jianzhang$ oc get sa
NAME                   SECRETS   AGE
bug-operator           2         21s
builder                2         20m
certified-operators    2         20m
community-operators    2         20m
default                2         28m
deployer               2         20m
marketplace-operator   2         28m
redhat-marketplace     2         20m
redhat-operators       2         20m

Comment 5 Jian Zhang 2022-05-14 01:54:12 UTC
Change it to VERIFIED based on comment 2.

Comment 8 errata-xmlrpc 2022-05-23 13:25:10 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.10.15 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-2022:2258