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

Deploy operator in another namespace failed, that catalogsource isn't in olm namespace. #2230

Closed
0xff-dev opened this issue Jul 1, 2021 · 4 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@0xff-dev
Copy link

0xff-dev commented Jul 1, 2021

Bug Report

What did you do?
deploy my catalogsource in namespace a, then deploy operator in namespace b, the feedback is targeted catalogsource xxx missing.

What did you expect to see?
operator can be deployed normally.

What did you see instead? Under which circumstances?

status:
  catalogHealth:
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: operatorhubio-catalog
      namespace: olm
      resourceVersion: "195556"
      uid: 097c661b-a753-479e-9661-697e687db658
    healthy: true
    lastUpdated: "2021-06-30T23:36:42Z"
  conditions:
  - lastTransitionTime: "2021-06-30T23:36:42Z"
    message: targeted catalogsource kkk/daas-registry missing
    reason: UnhealthyCatalogSourceFound
    status: "True"
    type: CatalogSourcesUnhealthy

Environment

  • operator-lifecycle-manager version:
    0.17.0
  • Kubernetes version information:
    {Major:"1", Minor:"18", GitVersion:"v1.18.15"}
  • Kubernetes cluster kind:

Possible Solution


Maybe get namespace from subscription.spec.catalogsrouceNamespace.

@0xff-dev 0xff-dev added the kind/bug Categorizes issue or PR as related to a bug. label Jul 1, 2021
@exdx
Copy link
Member

exdx commented Jul 8, 2021

The issue is that not all catalogs are globally-scoped. The olm namespace is special -- OLM treats catalogs in this namespace as cluster-scoped for resolution. So one could create a subscription in another namespace for a package in this special namespace. Other namespaces do not behave like this however -- resolution to the catalog is scoped to that single namespace. We are planning to add documentation to address this, and potentially change the design to be more explicit in subsequent versions of OLM.

The special global catalog namespace is also configurable on the olm deployment.

@exdx
Copy link
Member

exdx commented Jul 8, 2021

Doc in operator-framework/olm-docs#170

@exdx exdx self-assigned this Jul 8, 2021
@exdx exdx added this to the 0.19.0 milestone Jul 8, 2021
@0xff-dev
Copy link
Author

Doc in operator-framework/olm-docs#170

Thanks. It's very useful to me.

@timflannagan
Copy link
Contributor

I'm going to close this out now that we have a dedicated issue on the olm-docs repository as it's attached to the v0.19.0 milestone - I followed-up in the PR that Dan had already created that attempts to get the ball rolling on documenting this behavior. We can track updating the documentation there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants