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

Unable to modify CatalogSource registryPoll interval in OCP 4.13.x

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 4.13.z
    • OLM
    • Informational
    • No
    • OPECO 249
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Note: This is a re-opened issue of OCPBUGS-14108 because of the regression.

      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.13.9, 4.13.27, 4.13.32

      How reproducible:

      100%

      Steps to Reproduce:

      $ oc get clusterversion
      NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.13.9    True        False         86m     Cluster version is 4.13.9
      $ 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="2024-02-09T08:53:44Z" level=info msg="[defaults] Restoring CatalogSource redhat-operators" time="2024-02-09T08:53:44Z" level=info msg="[defaults] CatalogSource redhat-operators is annotated and its spec is the same as the default spec"

      Expected results:

      In 4.13.9 the updated value remains:
      
      $ oc get clusterversion
      NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.13.9    True        False         15d     Cluster version is 4.13.9
      $ 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-jkeister Jordan Keister
              rhn-support-shishika Shinri Ishikawa
              Jian Zhang Jian Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: