Reinstalling an Operator fails Due to Catalog Cache with ResolutionFailed in OCP 4

Solution Verified - Updated -

Issue

  • While reinstalling an Operator the status of the Operator goes to Unknown

    XXXX-XX-XX T14:10:01.997392517Z I0302 14:10:01.997250       1 event.go:282] Event(v1.ObjectReference{Kind:"Namespace", Namespace:"", Name:"openshift-operators-redhat", UID:"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX", APIVersion:"v1", ResourceVersion:"XXXXXXXX", FieldPath:""}): type: 'Warning' reason: 'ResolutionFailed' constraints not satisfiable: @existing/openshift-operators-redhat//elasticsearch-operator.5.3.4-13 and redhat-operators/openshift-marketplace/stable/elasticsearch-operator.5.3.5-20 originate from package elasticsearch-operator, subscription elasticsearch-operator requires redhat-operators/openshift-marketplace/stable/elasticsearch-operator.5.3.5-20, subscription elasticsearch-operator exists, clusterserviceversion elasticsearch-operator.5.3.4-13 exists and is not referenced by a subscription
    
  • While updating different Operators, the upgrade is stuck and the following error is reported in the respective Subscription of the problematic Operator.

    - message: 'constraints not satisfiable: subscription kiali-ossm exists, clusterserviceversion
        kiali-operator.v1.48.0 exists and is not referenced by a subscription, @existing/openshift-operators//kiali-operator.v1.48.0,
        @existing/openshift-operators//kiali-operator.v1.48.1 and @existing/openshift-operators//kiali-operator.v1.48.2
        provide MonitoringDashboard (monitoring.kiali.io/v1alpha1), subscription kiali-ossm
        requires @existing/openshift-operators//kiali-operator.v1.48.2'
      reason: ConstraintsNotSatisfiable
      status: 'True'
      type: ResolutionFailed
    

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content