Bug 1867169

Summary: Updated catalog source serves stale bundles
Product: OpenShift Container Platform Reporter: Daniel Sover <dsover>
Component: OLMAssignee: Vu Dinh <vdinh>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: low CC: ecordell, krizza, nhale, openshift-bugzilla-robot, vdinh
Version: 4.5   
Target Milestone: ---   
Target Release: 4.6.0   
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: 2020-11-30 16:45:28 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: 1884861    

Comment 7 Jian Zhang 2020-08-19 10:54:37 UTC
Hi Vu,

Many thanks for your details! 

> So in order to see the change in the content, you will need to delete the configmaps.

However, I have conerns about this way. Based on my understanding, the destination of the CatalogSource upgrading is to implement the updgrade of the subscription seamlessly.

To implement that, we use the `Always ImagePullPolicy` to update the CatalogSource image so that the user can use the latest index image if there are updates, and then, use the latest operator Bundle image from the index image. after that, copy the Bundle manifest to a volume.
Now, the fix of this bug is to use the `Always ImagePullPolicy` to make sure we use the latest Bundle image.

> However, after a configmap is created to hold the content of a bundle, it is persistent.

But, due to it's a persistent volume, the lastest Bundle cannot be generated. I'm not very clear here.
But, I think we should fix this issue to implement the seamless update, not let the user remove the ConfigMap manually. Or am I missing something? Thanks!

Comment 15 Jian Zhang 2020-11-02 03:43:06 UTC
Hi Kevin,

Sure, that makes sense. Verify it based on comment 5, 12, 13, 14.

Comment 16 Evan Cordell 2020-11-20 14:25:03 UTC
Note - this was merged while master was still 4.6.0, moving the bug to 4.6.

Comment 17 Evan Cordell 2020-11-20 14:26:48 UTC
*** Bug 1868143 has been marked as a duplicate of this bug. ***

Comment 20 errata-xmlrpc 2020-11-30 16:45:28 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.6 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-2020:5115