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
This has been fixed upstream, is this issue for tracking the downstream fix?
Yes, Rashmi. I create this issue for tracking the downstream fix.
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