当在 OpenShift 4 中存在 CatalogSource 时,无法升级 Operator,并显示错误 "Cannot update:CatalogSource was removed"
Issue
- 当存在
CatalogSource时,operator 的状态会显示为 "Cannot update" 和 "CatalogSource was removed",或在安装的 Operator 页中显示为 "CatalogSource not found" -
在
catalog-operatorpod 日志中可以看到类似如下的错误信息:type: 'Warning' reason: 'ResolutionFailed' constraints not satisfiable: subscription jaeger-product exists, subscription jaeger-product requires redhat-operators/openshift-marketplace/stable/jaeger-operator.v1.28.0, clusterserviceversion jaeger-operator.v1.28.0 exists and is not referenced by a subscription, redhat-operators/openshift-marketplace/stable/jaeger-operator.v1.28.0 and @existing/openshift-operators//jaeger-operator.v1.28.0 provide Jaeger (jaegertracing.io/v1)type: 'Warning' reason: 'ResolutionFailed' constraints not satisfiable: no operators found from catalog redhat-operators in namespace openshift-marketplace referenced by subscription 3scale-operator, subscription 3scale-operator existstype: 'Warning' reason: 'ResolutionFailed' constraints not satisfiable: @existing/openshift-operators//servicemeshoperator.v2.1.1 and @existing/openshift-operators//servicemeshoperator.v2.2.1 provide ServiceMeshControlPlane (maistra.io/v1), subscription servicemeshoperator requires @existing/openshift-operators//servicemeshoperator.v2.2.1, subscription servicemeshoperator exists, clusterserviceversion servicemeshoperator.v2.1.1 exists and is not referenced by a subscriptiontype: 'Warning' reason: 'ResolutionFailed' constraints not satisfiable: @existing/openshift-operators//openshift-gitops-operator.v1.4.2, @existing/openshift-operators//openshift-gitops-operator.v1.4.3 and redhat-operators/openshift-marketplace/gitops-1.5/openshift-gitops-operator.v1.5.2 provide GitopsService (pipelines.openshift.io/v1alpha1), clusterserviceversion openshift-gitops-operator.v1.4.3 exists and is not referenced by a subscription, subscription openshift-gitops-operator exists, subscription openshift-gitops-operator requires at least one of redhat-operators/openshift-marketplace/gitops-1.5/openshift-gitops-operator.v1.5.2 or @existing/openshift-operators//openshift-gitops-operator.v1.4.2type: 'Warning' reason: 'ResolutionFailed' constraints not satisfiable: no operators found with name openshift-gitops-operator.v1.2.0 in channel gitops-1.5 of package openshift-gitops-operator in the catalog referenced by subscription openshift-gitops-operator, subscription openshift-gitops-operator exists
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.