Bug 1870782

Summary: CatalogSource generate 2 pods and keep restarting
Product: OpenShift Container Platform Reporter: Ankita Thomas <ankithom>
Component: OLMAssignee: Ankita Thomas <ankithom>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: high CC: ankithom, dageoffr, ecordell, jiazha, krizza, nhale, sgao
Version: 4.5Keywords: UpcomingSprint
Target Milestone: ---   
Target Release: 4.5.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1853601
: 1870784 (view as bug list) Environment:
Last Closed: 2020-09-21 17:42:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1853601    
Bug Blocks: 1870784    

Comment 2 Kevin Rizza 2020-08-20 19:07:42 UTC
Waiting on 4.6 verification and backport. Marking for upcoming sprint.

Comment 3 Evan Cordell 2020-09-11 13:11:30 UTC
The PR is cherry-pick-approved and working its way through tests. It should merge this sprint, but if it doesn't it will be early next sprint.

Comment 5 Jian Zhang 2020-09-14 07:53:43 UTC
Cluster version is 4.5.0-0.nightly-2020-09-12-063044, which contains the fixed PR.
[root@preserve-olm-env data]# oc -n openshift-operator-lifecycle-manager exec catalog-operator-6468cf8fb-z7gm7 -- olm --version
OLM version: 0.15.1
git commit: 4bcba8c2bae16ccb6cdf010028cedfae2c5e2d75

1, Create a CatalogSource CR that consume the index image.
[root@preserve-olm-env data]# cat cs-win.yaml 
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
  name: wmco
  namespace: openshift-marketplace
  displayName: Windows operators
  sourceType: grpc
  image: quay.io/sgaoshang/wmco-index:1.0.0
      interval: 20m
[root@preserve-olm-env data]# oc create -f cs-win.yaml 
catalogsource.operators.coreos.com/wmco created

One pod generated, no restrat.
[root@preserve-olm-env data]# oc get pods
NAME                                    READY   STATUS    RESTARTS   AGE
wmco-bhfcp                              1/1     Running   0          85s

2, After a while, only the update checking pod restart. The current serving pod doesn't restart. LGTM, verify it.
[root@preserve-olm-env data]# oc get pods
NAME                                    READY   STATUS    RESTARTS   AGE
wmco-4kt95                              1/1     Running   0          45m
wmco-gh9bs                              1/1     Running   0          35s

Comment 8 errata-xmlrpc 2020-09-21 17:42:05 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.11 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.