AKS icon indicating copy to clipboard operation
AKS copied to clipboard

Not able to upgrade aks cluster nodepool to 1.24.9 from azure cli from portal [BUG]

Open teocrispy91 opened this issue 2 years ago • 21 comments

Describe the bug Not able to upgrade aks nodepool from 1.24.6 to 1.24.9 from azure cli portal . My control Plane got upgraded. But as soon as i try to upgrade the nodepool i am getting the below mentioned error. I am able to upgrade the same with vscode azure cli without any issues.

To Reproduce Steps to reproduce the behavior: az aks upgrade --resource-group test --name testcluster --kubernetes-version 1.24.9 --control-plane-only az aks nodepool upgrade --cluster-name testcluster --name testwin --resource-group test --kubernetes-version 1.24.9

Control plane upgrades sucessfully without any issues. but as soon as i run the second command to upgrade nodepool it fails with the below error My azure cli version is 2.45.0 2. See error Attribute error agent pool has no attribute kubernetes_version(screenshot attached)

Expected behavior nodeppol get upgraded successfully

Screenshots testclust

teocrispy91 avatar Feb 20 '23 07:02 teocrispy91

Hello @teocrispy91. Can you check the current nodepool k8s version?

az aks nodepool show --cluster-name testcluster --name testwin --resource-group test

Old clusters using nodepool without VMSS can get an upgrade using the command az aks nodepool upgrade. If you have upgraded the controlplane only, maybe you can use the command without the option --control-plane-only to get the cluster upgraded, like:

az aks upgrade --resource-group test --name testcluster --kubernetes-version 1.24.9

Is it possible for you to try this ?

Best regards.

carvido1 avatar Feb 20 '23 16:02 carvido1

@carvido1 az aks upgrade --resource-group test --name testcluster --kubernetes-version 1.24.9 --control-plane-only az aks upgrade --resource-group test --name testcluster --kubernetes-version 1.24.9 Both these commands are working But why suddenly like one by one upgrade of nodepool stopped working with this command az aks nodepool upgrade --cluster-name testcluster --name testwin --resource-group test --kubernetes-version 1.24.9 I was trying to upgrade from 1.24.6 to 1.24.9

teocrispy91 avatar Feb 21 '23 05:02 teocrispy91

Hello @teocrispy91

As I mentioned there are two kind of AKS clusters when it comes to nodepools defined by the vm-set-type argument when calling the az client.

  • availabilitySet: this option allows you to scale horizontally the nodes, but you won't be allowed to change the SKU or add extra nodepools to your AKS cluster
  • VMSS (virtual machine scale sets): with this nodepool type you can add extra system or user nodepool. This type comes with autoscaling options.

Which one are you running ? Can you send more info about the number of nodepools you have? Can you check if these nodepools have any application running on them with a selector and a podDisruptionBudget is preventing the cluster to get upgraded ? ... There are many factors that can lead the nodepool upgrade to fail, I think you need to provide more insights to get help.

In addition, as I'm not azure or microsoft employee but I have used AKS for some years, my recommendation is that you create a support ticket with them. Azure has basic support included on your subscription.

BR

carvido1 avatar Feb 21 '23 10:02 carvido1

we are using the type vmss

teocrispy91 avatar Feb 21 '23 11:02 teocrispy91

This is a duplicate see here #25530 It is fixed but still in the dev branch of az-cli and not yet released.

slzmruepp avatar Mar 05 '23 12:03 slzmruepp

Action required from @Azure/aks-pm

ghost avatar Apr 04 '23 19:04 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Apr 20 '23 00:04 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar May 05 '23 06:05 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar May 20 '23 06:05 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jun 04 '23 06:06 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jun 19 '23 12:06 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jul 04 '23 12:07 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jul 20 '23 00:07 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Aug 04 '23 06:08 ghost

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

Issue needing attention of @Azure/aks-leads

This can be closed. https://github.com/Azure/azure-cli/pull/25539 is merged. Please close this issue

mruepp avatar Sep 04 '24 16:09 mruepp