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

Precaching spec error due to invalid policy combination reported as precaching/backup failures on spokes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Normal
    • None
    • 4.12.0
    • TALM Operator
    • None
    • CNF RAN Sprint 230, CNF RAN Sprint 231, CNF RAN Sprint 232, CNF RAN Sprint 233, CNF RAN Sprint 234
    • 5
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      When precaching is enabled with catalog source policy only (i.e. subscription policy missing in the cgu policy list), precaching can not proceed without actual operator info. The CGU conditions reported are misleading.
      

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

      
      

      How reproducible:

      100%
      

      Steps to Reproduce:

      1. Create a cgu with precaching enabled and catalog source policy only
      2.
      3.
      

      Actual results:

        conditions:
        - lastTransitionTime: "2022-11-29T13:11:20Z"
          message: All selected clusters are valid
          reason: ClusterSelectionCompleted
          status: "True"
          type: ClustersSelected
        - lastTransitionTime: "2022-11-29T13:11:20Z"
          message: Completed validation
          reason: ValidationCompleted
          status: "True"
          type: Validated
        - lastTransitionTime: "2022-11-29T13:11:21Z"
          message: Precaching is required and not done
          reason: InProgress
          status: "False"
          type: PrecachingSuceeded
        - lastTransitionTime: "2022-11-29T13:11:23Z"
          message: 'Precaching spec is incomplete: inconsistent precaching configuration:
            olm index provided, but no packages'
          reason: InvalidPlatformImage
          status: "False"
          type: PrecacheSpecValid
        - lastTransitionTime: "2022-11-29T13:11:23Z"
          message: No clusters available for remediation (Backup failed)
          reason: Completed
          status: "False"
          type: Progressing
        - lastTransitionTime: "2022-11-29T13:11:23Z"
          message: No clusters available for remediation (Backup failed)
          reason: Failed
          status: "False"
          type: Succeeded
      
      

      Expected results:

      CGU should not proceed as if actual precaching job failed on all clusters. It should remain in not started state so that admin could fix the policies. Also the reason message should not be "InvalidPlatformImage".
      

      Additional info:

      
      

      Attachments

        Issue Links

          Activity

            People

              jche@redhat.com Jun Chen
              jche@redhat.com Jun Chen
              Joshua Clark Joshua Clark
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: