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

CPOv2 fails on 4.17 mgmt cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 4.20.0
    • 4.20
    • HyperShift
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      CPOv2 fails when running on a 4.17 OCP mgmt cluster

      failed to update control plane: ControlPlaneComponent.hypershift.openshift.io \"featuregate-generator\" is invalid: [conditions[0].reason: Invalid value: \"\": conditions[0].reason in body should be at least 1 chars long, conditions[1].reason: Invalid value: \"\": conditions[1].reason in body should be at least 1 chars long]
      

      The reason is that, in kube 1.30 and earlier, the job controller does not set the condition reason on the Job status.

      From a 4.17 mgmt cluster

      $ oc get job featuregate-generator -oyaml
      ...
      status:
        completionTime: "2025-05-07T19:43:56Z"
        conditions:
        - lastProbeTime: "2025-05-07T19:43:56Z"
          lastTransitionTime: "2025-05-07T19:43:56Z"
          status: "True"
          type: Complete
      

      vs this is 4.18

      status:
        completionTime: "2025-05-07T18:33:29Z"
        conditions:
        - lastProbeTime: "2025-05-07T18:33:29Z"
          lastTransitionTime: "2025-05-07T18:33:29Z"
          message: Reached expected number of succeeded pods
          reason: CompletionsReached
          status: "True"
          type: SuccessCriteriaMet
        - lastProbeTime: "2025-05-07T18:33:29Z"
          lastTransitionTime: "2025-05-07T18:33:29Z"
          message: Reached expected number of succeeded pods
          reason: CompletionsReached
          status: "True"
          type: Complete
      

      Error occurs here
      https://github.com/openshift/hypershift/blob/a8b1939b6947e82fa73b530824c85df77e3cc3db/support/controlplane-component/job.go#L52-L54

              rh-ee-mraee Mulham Raee
              sjenning Seth Jennings
              None
              None
              Lin Gao Lin Gao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: