Bug 1947946

Summary: Operator upgrades can delete existing CSV before completion
Product: OpenShift Container Platform Reporter: Evan Cordell <ecordell>
Component: OLMAssignee: Ben Luddy <bluddy>
OLM sub component: OLM QA Contact: kuiwang
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: aivaras.laimikis, alkazako, assingh, bluddy, dageoffr, ecordell, jiazha, kaczynsk, krizza, nhale, openshift-bugzilla-robot, tflannag, vdinh
Version: 4.4   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: CustomResourceDefinition objects applied as part of an operator installation could sometimes satisfy the installation requirements of a newer version of the same operator. Consequence: During an operator upgrade, the version being replaced could be prematurely removed. In some cases, this could cause the upgrade to become stuck. Fix: CRDs that are created or updated as part of operator bundle installation are annotated to indicate their bundle of origin. These annotations are used by the CSV controller to distinguish between pre-existing CRDs and same-bundle CRDs. Result: Upgrades will not complete until the current version's CRDs have been applied.
Story Points: ---
Clone Of: 1857877 Environment:
Last Closed: 2021-07-27 22:58:43 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: 1857877    
Bug Blocks: 1904583    

Comment 6 kuiwang 2021-05-19 00:52:51 UTC
Thanks Ben.

LGTM now.

Comment 9 errata-xmlrpc 2021-07-27 22:58:43 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security 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/RHSA-2021:2438