Bug 2082676
Summary: | Subscription ResolutionFailed, error message points to wrong CatalogSource | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Ian Miller <imiller> |
Component: | OLM | Assignee: | Per da Silva <pegoncal> |
OLM sub component: | OLM | QA Contact: | Jian Zhang <jiazha> |
Status: | CLOSED DUPLICATE | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | akrzos |
Version: | 4.10 | Keywords: | Triaged |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-07-07 10:01:57 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: |
Description
Ian Miller
2022-05-06 18:14:03 UTC
Marking it as non-blocker because it occurs in very few cases. Seems like a race condition and we should investigate it, though. Marking it as a non-blocker it's not on 4.11 Sorry for the delay. The error stems from the fact that OLM expects all CatalogSources to be online when it resolves the Subscription. I've managed to reproduce this by: - bringing up crc - oc scale --replicas 0 -n openshift-cluster-version deployments/cluster-version-operator - editing one of the marketplace catsrc to point to a bad image (breaking it) - creating a healthy catsrc in the default namespace - creating and og and a sub (ref. the local catsrc) in the default namespace and watching it fail for the reasons cited above - disabling all of the default catalog sources: oc patch OperatorHub cluster --type json -p '[{"op": "add", "path": "/spec/disableAllDefaultSources", "value": true}]' subscription seems to be stuck in an error state. My best guess is that due to the quick timing of your execution path, the sub resolves before the default catsrs go away. As a workaround, it might be worth recreating the sub, or giving it a few seconds before creating it. We should investigate how/if we should get the olm reconciler to re-resolve subs on catalog source deletions I'm going to close this a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2076323 From 4.11 you'll be able to annotate the operator group to exclude global catalogs from the resolution in the namespace. This should ameliorate the issues ^^ *** This bug has been marked as a duplicate of bug 2076323 *** |