-
Notifications
You must be signed in to change notification settings - Fork 544
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: Subscription/InstallPlan for namespace scoped operator with required for cluster only scoped operator fails to install required operator #1084
Comments
Hello @dacleyra, Thank you for submitting an Issue. Based on the problem you described, it appears that you've created an
Based on the logs you provided, it does not appear that the operator providing the |
Yes, by installing a namespace scoped operator, the OLM UI creates a Subscription and the OperatorGroup where its spec.targetNamespace is to equal the metadata.namespace field, as you say. The problem is that that in OLM the Subscription automatically generates an InstallPlan with an unsupported InstallMode for the required apis / operators. |
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. |
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. |
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. |
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. |
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. |
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. |
Unfortunately, the OLM resolver simply doesn't take into account the OperatorGroup settings (AKA InstallModes) during resolution. So it is unable to tell if this operator is not installable in this specific namespace. We currently don't have a plan to change the resolver to do so. However, we do have a plan to "descope" the operator so that they will become singleton operators. As a result, the InstallModes will be obsolete in the future. You can take a look at the issue #2437 for more information. |
Bug Report
What did you do?
required
api/csv that is part of a Cluster only scoped operator, such as serverless-operator.v1.0.0What did you expect to see?
What did you see instead? Under which circumstances?
Failed: OwnNamespace InstallModeType not supported, cannot configure to watch own namespace
It appears the parent is passing down its InstallMode to the required operator in the InstallPlan, even though it is not supported. OLM could possibly figure out what InstallModes are supported, and choose another.
Environment
OLM 0.11.0 on OCP 4.2, also tried 0.12.0 with override
Kubernetes Version: v1.14.6+2e5ed54
OCP 4.2
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: