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

The catalog's "PHASE" doesn't have a 'final' status when meet some unexpected error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.15.0
    • OLM / Registry
    • Moderate
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          The catalog's "PHASE" is empty if some unexpected error occurs.

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

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

      How reproducible:

          always

      Steps to Reproduce:
       

      1.Enable TP. $ oc patch featuregate cluster -p '{"spec": {"featureSet": "TechPreviewNoUpgrade"}}' --type=merge     
      2. create one catalog with wrong parameter
      ##############
      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
      3. get the catalog status
      $oc get catalog
      NAME                               PHASE     AGE 
      redhat-operators-kaka-wrongtime              26m

      Actual results:

          1. the catalog PHASE is empty since the catalog created failed
      $oc get catalog 
      NAME                             PHASE     AGE 
      redhat-operators-kaka-wrongtime            26m

      Expected results:

          2.should set the catalog to be "failing/failed" status if the creating work "time-out"/"unexpected error" to remind the customer there is something wrong with the catalog.
      $oc get catalog 
      NAME                            PHASE     AGE 
      redhat-operators-kaka-wrongtime failing   26m

      Additional info:

          

            rh-ee-gabell Gavin Bell
            rhn-support-jfan Jia Fan
            Jia Fan Jia Fan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: