operator-registry icon indicating copy to clipboard operation
operator-registry copied to clipboard

opm index database cannot be read using : quay.io/operator-framework/upstream-community-operators

Open cmoulliard opened this issue 5 years ago • 7 comments

Issue

The index database pushed within the following image which is currently packaged as CatalogSource from olm release 0.14.1 cannot be read quay.io/operator-framework/upstream-community-operators

The following command returns this error

 ./bin/opm index export -i quay.io/operator-framework/upstream-community-operators:latest -f tmp/packages -c docker -o prometheus
INFO[0000] export from the index                         index="quay.io/operator-framework/upstream-community-operators:latest" package=prometheus
INFO[0000] Pulling previous image quay.io/operator-framework/upstream-community-operators:latest to get metadata  index="quay.io/operator-framework/upstream-community-operators:latest" package=prometheus
INFO[0000] running docker pull                           index="quay.io/operator-framework/upstream-community-operators:latest" package=prometheus
INFO[0001] Getting label data from previous image        index="quay.io/operator-framework/upstream-community-operators:latest" package=prometheus
INFO[0001] running docker inspect                        index="quay.io/operator-framework/upstream-community-operators:latest" package=prometheus
Error: no such table: operatorbundle

because the following SQL request cannot find the operatorbundle table

https://github.com/operator-framework/operator-registry/blob/338978155aef7c488592fed6fb3f11f1f6affab2/pkg/sqlite/query.go#L564-L567

cmoulliard avatar Feb 13 '20 08:02 cmoulliard

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 13 '20 09:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 13 '20 01:06 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 12 '20 10:08 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 13 '20 08:10 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 12 '20 11:12 stale[bot]

That issue seems to be resolved, but in trying to replicate I found another one.

This should be fixed by: https://github.com/operator-framework/community-operators/pull/3010

ecordell avatar Jan 19 '21 16:01 ecordell

@ecordell, @cmoulliard I suppose you are trying to pull an image which is not the one you want. You are trying to pull an image which is for our pipeline purposes. This is the index image for Kubernetes upstream-community-operators, correct one: quay.io/operatorhubio/catalog:latest https://quay.io/repository/operatorhubio/catalog?tab=tags

J0zi avatar Jan 22 '21 11:01 J0zi