Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error loading bundle into db: FOREIGN KEY constraint failed #952

Closed
camilamacedo86 opened this issue May 11, 2022 · 0 comments · Fixed by #953
Closed

error loading bundle into db: FOREIGN KEY constraint failed #952

camilamacedo86 opened this issue May 11, 2022 · 0 comments · Fixed by #953

Comments

@camilamacedo86
Copy link
Contributor

camilamacedo86 commented May 11, 2022

Description

Error: error loading bundle into db: FOREIGN KEY constraint failed
Usage:
  opm registry add [flags]

Steps to reproduce

opm registry add -d /database/index.db -b quay.io/operatorhubio/hive-operator:v2.5.3508-6cb94c6 --mode=semver --skip-tls-verify=false --use-http=false

What/Where it is causing an impact? (Context)

We have been facing issues with the operator-sdk run bundle and operator-idk run bundle-upgrade. These commands use OLM as dep/lib (version v1.21.0 latest release). The issue does not occur for all/any scenario, but it has been affecting SDK users and the CVP pipeline in some edge cases.

More info and details can be found in operator-framework/operator-sdk#5410

Where the error occurs

The error error loading bundle into db: FOREIGN KEY constraint failed came from: here. So, it is around here in the opm code. But, unfortunately, we are returning all errors without a context to know where it fails exactly.

Assumptions made so far

operators.operatorframework.io.bundle.channel.default.v1: alpha
operators.operatorframework.io.bundle.channels.v1: mce-2.0

From @joelanford : I'm guessing this is the issue. OPM puts the bundle in the mce-2.0 channel, but the bundle says "the default channel is alpha". except there is no alpha channel.

Issues related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant