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

TALM - precache does not begin if version is unspecified even if image is already specified in clusterversion policy

    XMLWordPrintable

Details

    • Important
    • Rejected
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      CGU precache does not begin with following error when clusterversion policy does not include desiredUpdate.version spec. This should not be needed when desiredUpdate.image is already specified. 
      
      As a side note, when both version and image are specified, image should take the priority.
      
        - lastTransitionTime: "2022-12-10T21:01:05Z"
          message: unable to find version  on update graph on url http://helix21.lab.eng.tlv2.redhat.com:8080/images/upgrade-graph_stable-4.12?channel=stable-4.13
          reason: InvalidPlatformImage
          status: "False"
          type: Validated
      

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

      4.12

      How reproducible:

      100%

      Steps to Reproduce:

      1. ocp upgrade policy includes following clusterversion spec: 
      
              object-templates:
              - complianceType: Musthave
                objectDefinition:
                  apiVersion: config.openshift.io/v1
                  kind: ClusterVersion
                  metadata:
                    name: version
                  spec:
                    channel: stable-4.13
                    desiredUpdate:
                      force: true
                      image: registry.ocp-edge-cluster-0.qe.lab.redhat.com:5000/openshift-release-dev/ocp-release@sha256:0cac0d49cb9a5f9d708c7f64b0998cfc19e7b4cbb35c48bb4a2cf6e0f7ea3f82
                    upstream: http://helix21.lab.eng.tlv2.redhat.com:8080/images/upgrade-graph_stable-4.12
              remediationAction: Inform
      
      3. start precache via CGU using above policy
      

      Actual results:

      precache does not begin with following error   
      
      - lastTransitionTime: "2022-12-10T21:01:05Z"
          message: unable to find version  on update graph on url http://helix21.lab.eng.tlv2.redhat.com:8080/images/upgrade-graph_stable-4.12?channel=stable-4.13
          reason: InvalidPlatformImage
          status: "False"
          type: Validated
       

      Expected results:

      precache starts and succeeds

      Additional info:

      channel, upstream and desiredUpdate.version should not be required when desiredUpdate.image is specified. 

       

       

       

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              npathan@redhat.com Nahian Pathan
              rhn-support-yliu1 Yang Liu
              Yang Liu Yang Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: