Bug 1980168
| Summary: | The earlier version bundles that generated by pkgman-to-bundle won't be installed success | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Fan Jia <jfan> |
| Component: | Operator SDK | Assignee: | Varsha <vnarsing> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fan Jia <jfan> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.8 | CC: | aos-bugs, jesusr |
| Target Milestone: | --- | ||
| Target Release: | 4.9.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1979506 | Environment: | |
| Last Closed: | 2022-04-07 03:54:11 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: | |||
| Bug Depends On: | 1979506 | ||
| Bug Blocks: | |||
|
Description
Fan Jia
2021-07-08 01:32:49 UTC
@Jia Fan With https://github.com/operator-framework/operator-sdk/pull/4964, one can select the bundle version which they want to and deploy it. They can further copy the version of bundle which they want to run in the project's root directory and run it. However the `FROEIGN KEY constraint` seems to be an error with the `run bundle`. Based on another bugzilla which was opened related to this (https://bugzilla.redhat.com/show_bug.cgi?id=1883377), looks like the issue has been solved. Reference on running bundles with plgman-to-bundle command by copying them to project's root dir: https://sdk.operatorframework.io/docs/olm-integration/quickstart-package-manifests/#migrating-packagemanifests-to-bundles (In reply to Varsha from comment #1) > @Jia Fan With https://github.com/operator-framework/operator-sdk/pull/4964, > one can select the bundle version which they want to and deploy it. They can > further copy the version of bundle which they want to run in the project's > root directory and run it. However the `FROEIGN KEY constraint` seems to be > an error with the `run bundle`. Based on another bugzilla which was opened > related to this (https://bugzilla.redhat.com/show_bug.cgi?id=1883377), looks > like the issue has been solved. > > Reference on running bundles with plgman-to-bundle command by copying them > to project's root dir: > https://sdk.operatorframework.io/docs/olm-integration/quickstart-package- > manifests/#migrating-packagemanifests-to-bundles Yes, Varsha. The latest "opm" doesn't have the same problem. But the default index image for `operator-sdk run bundle` is "quay.io/operator-framework/upstream-opm-builder:latest". And the problem still exists for "operator-sdk". This bug seems to be similar to https://bugzilla.redhat.com/show_bug.cgi?id=1979506&GoAheadAndLogIn=1. This PR: https://github.com/operator-framework/operator-sdk/pull/5062 solves the issue. This was fixed in release-4.9: https://github.com/openshift/ocp-release-operator-sdk/pull/141/commits/d7b4ad12d51564e84d0ced3c5d543f0e4a148720 |