-
Notifications
You must be signed in to change notification settings - Fork 551
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
OLM 0.16.1 More than one Head for channel when using opm --semver-skippatch #1771
Comments
OCP Bugzilla Cross-Reference |
Looks like this is a bug in |
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. |
@benluddy I've been trying to test this out with However, I'm seeing a problem where the LAST entry in a channel isn't showing the replaces show up, which results in the same error. Here is the
It shows 4.1.1 replaces 4.1.0 Yet ListBundles shows:
replaces is null for v4.1.1 So, it looks like its partially fixed. With this catalog, testoperatora works, but testoperatorb fails with the original error. Here's an example catalogsource: |
In
I failed to reproduce the resolution error using your latest index image. Are there other CatalogSources or Subscriptions on your cluster that could explain it? |
I think this is resolved. It looks like semver-skippatch isn't going to work for us because it doesn't handle cross-channel via skipRange. I think the problem I had here was related to trying to use the OpenShift registry which may have been an old version. The upstream image worked as designed. |
Bug Report
The operator-registry project added the ability to add operator bundles to a catalog index image DAG using semantic versioning rather than the CSV
replaces
option.Although this works and the graph looks correct, it appears that OLM is still looking for the
replaces
value.What did you do?
catalog-operator
opm registry add --mode semver-skippatch
deptest
What did you expect to see?
I expected both operators A and B to be installed.
What did you see instead? Under which circumstances?
Operator B failed to install.
Debug log shows:
The source code seems to indicate that
replaces
is needed:https://github.com/operator-framework/operator-lifecycle-manager/blob/master/pkg/controller/registry/resolver/resolver.go#L549-L560
Environment
operator-lifecycle-manager version:
0.16.1
Kubernetes version information:
Client Version: 4.6.0-0.nightly-2020-09-15-112431
Server Version: 4.6.0-0.nightly-2020-09-17-073141
Kubernetes Version: v1.19.0+b4ffb45
Kubernetes cluster kind:
OCP on aws
Possible Solution
Continue to add
replaces
to the CSVs.Here is a catalog index image that is the same as the previous, but has
replaces
specified in addition to usingopm registry add --mode semver-skippatch
. This works fine. Both Operator A and B are installedThis is the catalog index image:
docker.io/cdjohnson/depcatalogs@sha256:7fbe51329cbaaee3882d72195f7471d964a2c61bd5d3fa164df6a64ee324cfa0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: