Bug 2100342 - Operator-sdk run bundle offer the wrong error message
Summary: Operator-sdk run bundle offer the wrong error message
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Operator SDK
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.12.0
Assignee: Rashmi Gottipati
QA Contact: Fan Jia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-23 06:51 UTC by Fan Jia
Modified: 2023-01-17 19:50 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-17 19:50:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:50:45 UTC

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


Note You need to log in before you can comment on or make changes to this bug.