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

Creating hosted cluster from CLI fails due to invalid ReleaseImage

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • Done
    • Bug Fix
    • Hide
      Before this update, when the `LookupDefaultOCPVersion` function was called without a specified release stream, the system might have tried to use a multi-architecture OCP version that was newer than what the currently installed HyperShift Operator supported. As a consequence, potential compatibility issues occurred. With this release, the logic for determining the default OCP version is updated so that it consults the supported-versions configmap to identify the latest stable multi-architecture OCP release image that is compatible with the HyperShift Operator. As a result, when no release stream is provided, the system defaults to an OCP version that is guaranteed to be supported by the installed HyperShift Operator, which prevents compatibility problems. (link:https://issues.redhat.com/browse/OCPBUGS-56701[OCPBUGS-56701])
      Show
      Before this update, when the `LookupDefaultOCPVersion` function was called without a specified release stream, the system might have tried to use a multi-architecture OCP version that was newer than what the currently installed HyperShift Operator supported. As a consequence, potential compatibility issues occurred. With this release, the logic for determining the default OCP version is updated so that it consults the supported-versions configmap to identify the latest stable multi-architecture OCP release image that is compatible with the HyperShift Operator. As a result, when no release stream is provided, the system defaults to an OCP version that is guaranteed to be supported by the installed HyperShift Operator, which prevents compatibility problems. (link: https://issues.redhat.com/browse/OCPBUGS-56701 [ OCPBUGS-56701 ])
    • None
    • None
    • None
    • None

      Description of problem:

      • While trying to create a hosted cluster with the KubeVirt platform from CLI as per the command provided in the official document, it fails with an invalid ReleaseImage message.
      • The provisioner attempts to deploy a hosted cluster with a version "4.19.0-rc.3" which is not even GA.

      Version-Release number of selected component:

      OpenShift v4.18.13
      multicluster-engine.v2.8.1
      kubevirt-hyperconverged-operator.v4.18.2

      How reproducible:

      Follow the command in the official document to deploy the hosted cluster with KubeVirt.

      Steps to Reproduce:

       ./hcp create cluster kubevirt \
        --name hcp-virt-test1\
        --node-pool-replicas 2 \
        --pull-secret gcp/pull-secret.txt \
        --memory 4Gi \
        --cores 2 \
        --etcd-storage-class=standard-csi
      

      Actual results:

      • The hcp create command though doesn't throw any error, the HCP isn't deployed. It fails with an error message "ValidReleaseImage condition is false: the latest version supported is: "4.18.0". Attempting to use: "4.19.0-rc.3" "
      • The provisioner attempts to deploy a hosted cluster with a version "4.19.0-rc.3" which is not even GA.
      $ ./hcp create cluster kubevirt \
        --name hcp-virt-test1\
        --node-pool-replicas 2 \
        --pull-secret gcp/pull-secret.txt \
        --memory 4Gi \
        --cores 2 \
        --etcd-storage-class=standard-csi
      {"level":"info","ts":"2025-05-26T18:04:36+05:30","msg":"Applied Kube resource","kind":"Namespace","namespace":"","name":"clusters"}
      {"level":"info","ts":"2025-05-26T18:04:36+05:30","msg":"Applied Kube resource","kind":"Secret","namespace":"clusters","name":"hcp-virt-test1-pull-secret"}
      {"level":"info","ts":"2025-05-26T18:04:36+05:30","msg":"Applied Kube resource","kind":"Secret","namespace":"clusters","name":"hcp-virt-test1-etcd-encryption-key"}
      {"level":"info","ts":"2025-05-26T18:04:36+05:30","msg":"Applied Kube resource","kind":"","namespace":"clusters","name":"hcp-virt-test1"}
      {"level":"info","ts":"2025-05-26T18:04:36+05:30","msg":"Applied Kube resource","kind":"NodePool","namespace":"clusters","name":"hcp-virt-test1"}
      
      
      $ oc get hc
      NAME             VERSION   KUBECONFIG                        PROGRESS   AVAILABLE   PROGRESSING   MESSAGE
      hcp-virt-test1                                               Partial    False       False         ValidReleaseImage condition is false: the latest version supported is: "4.18.0". Attempting to use: "4.19.0-rc.3"
      

      Expected results:

      • The hosted cluster should be deployed with the default/latest OpenShift release.

      OR,

      • The usage of --release-image should be made mandatory as a required option for "hcp create" command.
      • At least it should NOT attempt to provision a hosted cluster with a release which is not even GA.

              rh-ee-brcox Bryan Cox
              rhn-support-akesarka Amit Kesarkar
              None
              None
              Wen Wang Wen Wang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: