rancher / aks-operator

Azure Kubernetes Service operator for Rancher
Apache License 2.0
9 stars 29 forks source link

LTS k8s versions as 1.27 are available in list but can't be provisioned #717

Open thehejik opened 2 weeks ago

thehejik commented 2 weeks ago

It is possible to select k8s LTS versions as 1.27.16 from rancher 2.9-head for upcoming v2.9.4 with rancher-aks-operator:104.4.0+up1.9.4-rc.2 but then the provisioning fails on following error.

I guess we shouldn't either allow provisioning of LTS versions and not showing them in the list or change the API calls to allow that.

image

Error failed to create cluster: PUT https://management.azure.com/subscriptions/XXXXX/resourceGroups/th-aks-cg/providers/Microsoft.ContainerService/managedClusters/th-aks-29 -------------------------------------------------------------------------------- RESPONSE 400: 400 Bad Request ERROR CODE: K8sVersionNotSupported -------------------------------------------------------------------------------- { "code": "K8sVersionNotSupported", "details": null, "message": "Managed cluster th-aks-29 is on version 1.27.16, which is only available for Long-Term Support (LTS). If you intend to onboard to LTS, please ensure the cluster is in Premium tier and LTS support plan (see https://aka.ms/aks/enable-lts). Otherwise, use [az aks get-versions] command to get the supported version list in this region. For more information, please check https://aka.ms/supported-version-list", "subcode": "" } --------------------------------------------------------------------------------

Edit after chat with @mjura : So far only way to get AKS 1.27 is to import it - provisioning is not possible as user can't pass az equivalent to --tier premium --k8s-support-plan AKSLongTermSupport via UI. Waiting for PM decission whether we should implement new option in operator.

kkaempf commented 2 weeks ago

We might want to improve the way the error message is displayed 🤔