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

On an SNO node one of the CatalogSources gets deleted after multiple reboots

XMLWordPrintable

    • Moderate
    • None
    • OPECO 236, OPECO 237
    • 2
    • Rejected
    • Unspecified
    • Hide
      * Before this update, a race condition occurred if custom catalogs used the same names as the default Red Hat catalogs in a disconnected environment. If the default Red Hat catalogs were disabled, the catalogs were created at start and deleted after the OperatorHub custom resource (CR) was reconciled. As a result, the custom catalogs were deleted along with the default Red Hat catalogs. With this update, the OperatorHub CR is reconciled before any catalogs are deleted, preventing the race condition.
      (link:https://issues.redhat.com/browse/OCPBUGS-9357[*OCPBUGS-9357*])
      Show
      * Before this update, a race condition occurred if custom catalogs used the same names as the default Red Hat catalogs in a disconnected environment. If the default Red Hat catalogs were disabled, the catalogs were created at start and deleted after the OperatorHub custom resource (CR) was reconciled. As a result, the custom catalogs were deleted along with the default Red Hat catalogs. With this update, the OperatorHub CR is reconciled before any catalogs are deleted, preventing the race condition. (link: https://issues.redhat.com/browse/OCPBUGS-9357 [* OCPBUGS-9357 *])
    • Bug Fix
    • Done

      Description of problem:

      On an SNO node one of the CatalogSources gets deleted after multiple reboots.

      In the initial stage we have 2 catalogsources:

      $ oc get catsrc -A
      NAMESPACE NAME DISPLAY TYPE PUBLISHER AGE
      openshift-marketplace certified-operators Intel SRIOV-FEC Operator grpc Red Hat 20h
      openshift-marketplace redhat-operators Red Hat Operators Catalog grpc Red Hat 18h

      After running several node reboots, one of the catalogsouce doesn't show up anylonger:

      $ oc get catsrc -A
      NAMESPACE NAME DISPLAY TYPE PUBLISHER AGE
      openshift-marketplace certified-operators Intel SRIOV-FEC Operator grpc Red Hat 21h

      Version-Release number of selected component (if applicable):
      4.11.0-fc.3

      How reproducible:
      Inconsistent but reproducible

      Steps to Reproduce:

      1. Deploy and configure SNO node via ZTP process. Configuration sets up 2 CatalogSources in a restricted environment for redhat-operators and certified-operators

      • apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        metadata:
        name: certified-operators
        namespace: openshift-marketplace
        spec:
        displayName: Intel SRIOV-FEC Operator
        image: registry.kni-qe-0.lab.eng.rdu2.redhat.com:5000/olm/far-edge-sriov-fec:v4.11
        publisher: Red Hat
        sourceType: grpc
      • apiVersion: operators.coreos.com/v1alpha1
        kind: CatalogSource
        metadata:
        name: redhat-operators
        namespace: openshift-marketplace
        spec:
        displayName: Red Hat Operators Catalog
        image: registry.kni-qe-0.lab.eng.rdu2.redhat.com:5000/olm/redhat-operators:v4.11
        publisher: Red Hat
        sourceType: grpc

      2. Reboot the node via `sudo reboot` several times

      3. Check catalogsources

      Actual results:

      $ oc get catsrc -A
      NAMESPACE NAME DISPLAY TYPE PUBLISHER AGE
      openshift-marketplace certified-operators Intel SRIOV-FEC Operator grpc Red Hat 22h

      Expected results:

      All catalogsources created initially are still present.

      Additional info:

      Attaching must-gather.

            rh-ee-bpalmer Bryce Palmer
            mcornea@redhat.com Marius Cornea
            bruno andrade bruno andrade
            Michael Peter Michael Peter
            Red Hat Employee
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: