-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.19, 4.20, 4.21
-
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:
- blocks
-
OCPSTRAT-1707 Align HCP NodePool minor-version skew limits with tested/supported versions
-
- In Progress
-
- links to