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

Should stop creating the catalog if the pollInterval is not appropriate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • 4.15.0
    • OLM / Registry
    • None
    • Important
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The catalog is created when the pollInterval is set like "2mm"/"22222222222m". Should check the pollInterval at first and reject the create work if the pollInterval is not supported.

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

      4.15.0-0.nightly-2023-12-19-033450    

      How reproducible:

      always

      Steps to Reproduce:

      1.patch the olmv1
      $oc patch featuregate cluster -p '{"spec": {"featureSet": "TechPreviewNoUpgrade"}}' --type=merge
      2.create one catalog with the wrong pollInterval
      3.
      ##############
      apiVersion: catalogd.operatorframework.io/v1alpha1
      kind: Catalog
      metadata:
        name: redhat-operators-kaka-wrongtime
      spec:
        source:
          image:
            pollInterval: 2mm
            ref: quay.io/olmqe/olmtest-operator-index:nginxolm69758v1
          type: image 
      #######
      $oc create -f poll-wrongtime-catalog-redhat.yaml 
      catalog.catalogd.operatorframework.io/redhat-operators-kaka-wrongtime created

      Actual results:

      1. the catalog is created at first,but it failed and the error log is shown in the catalog manager.
      $oc create -f poll-wrongtime-catalog-redhat.yaml  catalog.catalogd.operatorframework.io/redhat-operators-kaka-wrongtime created

      Expected results:

      Should check the pollInterval at first and reject the create work if the pollInterval is not supported.

      Additional info:

          

            rh-ee-cchantse Catherine Chan-Tse
            rhn-support-jfan Jia Fan
            Jia Fan Jia Fan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: