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

Unable to modify CatalogSource registryPoll interval in OCP 4.12.5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 4.12.z
    • OLM
    • None
    • Moderate
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

    Description

      Note: This issue is a duplicate of OCPBUGS-10238 intended to target the 4.13 version.

      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:

       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: