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

Unable to modify CatalogSource registryPoll interval in OCP 4.12.5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • 4.12.z
    • OLM
    • None
    • Moderate
    • No
    • OPECO 233, Bulbasaur
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Updates to the `.spec.updateStrategy.registryPoll.interval` fields for a default CatalogSource are reverted.

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

      4.12.5

      How reproducible:

      100%

      Steps to Reproduce:

      $ oc get clusterversion
      NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.12.5    True        False         86m     Cluster version is 4.12.5
      $ oc get catalogsource  -n openshift-marketplace redhat-operators -o jsonpath='{.spec.updateStrategy.registryPoll.interval}'
      10m
      $ oc patch -n openshift-marketplace catalogsource/redhat-operators --type=merge -p '{"spec":{"updateStrategy":{"registryPoll":{"interval":"30m0s"}}}}'
      catalogsource.operators.coreos.com/redhat-operators patched
      

      Actual results:

      $ oc get catalogsource  -n openshift-marketplace redhat-operators -o jsonpath='{.spec.updateStrategy.registryPoll.interval}' 
      10m
      $ oc logs -n openshift-marketplace deployment/marketplace-operator time="2023-03-14T09:43:58Z" level=info msg="[defaults] Restoring CatalogSource redhat-operators" time="2023-03-14T09:43:58Z" level=info msg="[defaults] CatalogSource redhat-operators is annotated and its spec is the same as the default spec"

      Expected results:

      In 4.12.3 the updated value remains:
      
      $ oc get clusterversion
      NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.12.3    True        False         15d     Cluster version is 4.12.3
      $ oc get catalogsource  -n openshift-marketplace redhat-operators -o jsonpath='{.spec.updateStrategy.registryPoll.interval}'
      10m
      $ oc patch -n openshift-marketplace catalogsource/redhat-operators --type=merge -p '{"spec":{"updateStrategy":{"registryPoll":{"interval":"30m0s"}}}}'
      catalogsource.operators.coreos.com/redhat-operators patched
      $ oc get catalogsource  -n openshift-marketplace redhat-operators -o jsonpath='{.spec.updateStrategy.registryPoll.interval}'
      30m0s
      

      Additional info:

       

              rh-ee-dfranz Daniel Franz
              rhn-support-bverschu Bram Verschueren
              bruno andrade bruno andrade
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: