Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2100342

Summary: Operator-sdk run bundle offer the wrong error message
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.11CC: cchantse
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 19:50:29 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:

Description Fan Jia 2022-06-23 06:51:15 UTC
Description of problem:
Operator-sdk run bundle will give the wrong error message while the offered index image doesn't exist or UNAUTHORIZED.

Version-Release number of selected component (if applicable):
operator-sdk version: "v1.22.0-ocp", commit: "7cce8230bda4895aacaee6103fe9c1dadc87b77d", kubernetes version: "v1.24.1", go version: "go1.18.3", GOOS: "linux", GOARCH: "amd64"


How reproducible:
always

Steps to Reproduce:
1.install operator through run bundle (the index image doesn't exist)
$ operator-sdk run bundle quay.io/xxxxx/k8sstatus-bundle:v4.10 --index-image quay.io/kakatest/kkkkk:test

Actual results:
$operator-sdk-upstream run bundle quay.io/xxxxx/k8sstatus-bundle:v4.10 --index-image quay.io/kakatest/kkkkk:test
FATA[0010] Failed to run bundle: error in upgrading the bundle "" that was installed traditionally 

Expected results:
$operator-sdk run bundle quay.io/olmqe/k8sstatus-bundle:v4.10 --index-image quay.io/kakatest/kkkkk:test
FATA[0008] Failed to run bundle: error determining whether index "quay.io/kakatest/kkkkk:test" is FBC or SQLite based: get index image labels: error pulling image quay.io/kakatest/kkkkk:test: error resolving name : unexpected status code [manifests test]: 401 UNAUTHORIZED 


Additional info:
The upstream fix: https://github.com/operator-framework/operator-sdk/pull/5893

Comment 1 Rashmi Gottipati 2022-07-13 14:01:55 UTC
This has been fixed upstream, is this issue for tracking the downstream fix?

Comment 2 Fan Jia 2022-07-14 00:32:38 UTC
Yes, Rashmi. I create this issue for tracking the downstream fix.

Comment 6 errata-xmlrpc 2023-01-17 19:50:29 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.12.0 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-2022:7399