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

Creating hosted cluster from CLI fails due to invalid ReleaseImage

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • In Progress
    • Bug Fix
    • Hide
      Cause: When the LookupDefaultOCPVersion function was called without a specified release stream.

      Consequence: The system might attempt to use a multi-architecture OpenShift Container Platform (OCP) version that is newer than what the currently installed HyperShift Operator supports, leading to potential compatibility issues.

      Fix: The logic for determining the default OCP version has been updated. It now consults the supported-versions ConfigMap to identify the latest stable multi-architecture OCP release image that is compatible with the HyperShift Operator.

      Result: When no release stream is provided, the system will now default to an OCP version that is guaranteed to be supported by the installed HyperShift Operator, preventing compatibility problems.
      Show
      Cause: When the LookupDefaultOCPVersion function was called without a specified release stream. Consequence: The system might attempt to use a multi-architecture OpenShift Container Platform (OCP) version that is newer than what the currently installed HyperShift Operator supports, leading to potential compatibility issues. Fix: The logic for determining the default OCP version has been updated. It now consults the supported-versions ConfigMap to identify the latest stable multi-architecture OCP release image that is compatible with the HyperShift Operator. Result: When no release stream is provided, the system will now default to an OCP version that is guaranteed to be supported by the installed HyperShift Operator, preventing compatibility problems.
    • 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:
              9 Start watching this issue

                Created:
                Updated: