Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-17890

operatorhub want to use redhat-marketplace catalogsource when all default catalogsources are disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • 4.12.z
    • OLM / OperatorHub
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      We are running air-gapped, we disabled the default catalogsources as described in https://docs.openshift.com/container-platform/4.12/operators/admin/olm-restricted-networks.html#olm-restricted-networks-operatorhub_olm-restricted-networks after that our air-gapped catalogsource is placed. We do this many times.
      
      But today during a rollout a subscription got stuck, with the following message:
      
      ```
      - message: 'failed to populate resolver cache from source redhat-marketplace/openshift-marketplace:
            failed to list bundles: rpc error: code = Unavailable desc = connection error:
            desc = "transport: Error while dialing dial tcp: lookup redhat-marketplace.openshift-marketplace.svc
            on 172.30.0.10:53: no such host"'
      ```
      
      I took some time to understand the message, but it was clear it wanted to use a default catalogsource that was still available.
      
      first we tried delete the olm-operator pod:
      
      ```
      oc -n openshift-operator-lifecycle-manager delete pod olm-operator-b86687bd8-hjzj4
      ```
      
      We created the subscription again, but it failed with the same message.
      
      Then we restarted all the pods:
      
      ```
      oc -n openshift-operator-lifecycle-manager delete $(oc -n openshift-operator-lifecycle-manager get pods -o name)
      ```
      
      Then the installation of the operator continued without recreating the subscription, the message was gone.
      

      Version-Release number of selected component (if applicable):

      4.12

      How reproducible:

      Not easily reproduced

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

              agreene1991 Alexander Greene (Inactive)
              rhn-support-andbartl Andy Bartlett
              Jian Zhang Jian Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: