Bug 1921458

Summary: [SDK] Gracefully handle the `run bundle-upgrade` if the lower version operator doesn't exist
Product: OpenShift Container Platform Reporter: Fan Jia <jfan>
Component: Operator SDKAssignee: Rashmi Gottipati <rgottipa>
Status: CLOSED ERRATA QA Contact: Fan Jia <jfan>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, chuo, jesusr, rgottipa
Target Milestone: ---Keywords: UpcomingSprint
Target Release: 4.7.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: 2021-02-24 15:56:44 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:

Comment 1 Jesus M. Rodriguez 2021-01-29 15:31:08 UTC
downstream PR posted https://github.com/openshift/ocp-release-operator-sdk/pull/96

Comment 3 Fan Jia 2021-02-01 08:00:10 UTC
image: openshift-ose-operator-sdk:v4.7.0-202101300133.p0
operator-sdk version
operator-sdk version: "v1.3.0-ocp", commit: "df9d2021e84ebc8a8e2b2f50dc3c22c2c888f393", kubernetes version: "v1.19.4", go version: "go1.15.5", GOOS: "linux", GOARCH: "amd64"
test result:
# operator-sdk run bundle-upgrade  quay.io/olmqe/etcd-bundle:0.9.2-share
FATA[0000] Failed to run bundle upgrade: no existing operator found in the cluster to upgrade

Comment 6 errata-xmlrpc 2021-02-24 15:56:44 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.7.0 security, bug fix, and enhancement 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-2020:5633