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

Need update hypershift cli to allow np support Y-3 version skew with hcp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.19, 4.20, 4.21
    • HyperShift
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Critical
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      https://github.com/openshift/hypershift/pull/5931 had been merged, we should update cli to keep consistent with hypershift controller, to allow nodepool has Y-3 version skew. with hcp.
          

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

      4.21,4.20,4.19
          

      How reproducible:

      always
          

      Steps to Reproduce:

          1. hypershift create nodepool azure  --cluster-name $CLUSTER_NAME  --name 418  --node-count 1 --nodepool-subnet-id $subnetid --marketplace-offer=aro4 --marketplace-publisher=azureopenshift  --marketplace-sku=aro_417 --marketplace-version=417.94.20240701 --release-image=quay.io/openshift-release-dev/ocp-release:4.18.28-x86_64
      Flag --node-count has been deprecated, please use '--replicas' instead
      {"level":"error","ts":"2025-11-20T17:52:52+08:00","msg":"Failed to create nodepool","error":"NodePool minor version 4.18 is not compatible with the HostedCluster minor version 4.21 (max allowed difference: 1)","stacktrace":"github.com/openshift/hypershift/cmd/nodepool/core.(*CreateNodePoolOptions).CreateRunFunc.func1\n\t/Users/xiuwang/workdir/repo/hypershift/cmd/nodepool/core/create.go:48\ngithub.com/openshift/hypershift/cmd/nodepool/azure.NewCreateCommand.func1\n\t/Users/xiuwang/workdir/repo/hypershift/cmd/nodepool/azure/create.go:164\ngithub.com/spf13/cobra.(*Command).execute\n\t/Users/xiuwang/workdir/repo/hypershift/vendor/github.com/spf13/cobra/command.go:1015\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/Users/xiuwang/workdir/repo/hypershift/vendor/github.com/spf13/cobra/command.go:1148\ngithub.com/spf13/cobra.(*Command).Execute\n\t/Users/xiuwang/workdir/repo/hypershift/vendor/github.com/spf13/cobra/command.go:1071\ngithub.com/spf13/cobra.(*Command).ExecuteContext\n\t/Users/xiuwang/workdir/repo/hypershift/vendor/github.com/spf13/cobra/command.go:1064\nmain.main\n\t/Users/xiuwang/workdir/repo/hypershift/main.go:78\nruntime.main\n\t/Users/xiuwang/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.4.darwin-amd64/src/runtime/proc.go:283"}
      Error: NodePool minor version 4.18 is not compatible with the HostedCluster minor version 4.21 (max allowed difference: 1)
      NodePool minor version 4.18 is not compatible with the HostedCluster minor version 4.21 (max allowed difference: 1)
          2.
          3.
          

      Actual results:

          

      Expected results:

      Should support Y-3 nodepool version skew
      
          

      Additional info:

      
          

              rhn-support-liangli Liangquan Li
              rh-ee-xiuwang XiuJuan Wang
              None
              None
              Yu Li Yu Li
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: