azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az aks update --enable-vpa/disable-vpa

Open ovie91 opened this issue 2 years ago • 6 comments

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command

End users are testing if they need VPA and they installing then removing it, after a while they want to add it again and error occurs Commands executed

az aks update -g "<rg_name>" -n "<aks_name>" --disable-vpa

or

az aks update -g "<rg_name>" -n "<aks_name>" --enable-vpa

Error msg

(NotAllAgentPoolOrchestratorVersionSpecifiedAndUnchanged) Using managed cluster api, all Agent pools' OrchestratorVersion must be all specified or all unspecified. If all specified, they must be stay unchanged or the same with control plane. For agent pool specific change, please use per agent pool operations: https://aka.ms/agent-pool-rest-api
Code: NotAllAgentPoolOrchestratorVersionSpecifiedAndUnchanged
Message: Using managed cluster api, all Agent pools' OrchestratorVersion must be all specified or all unspecified. If all specified, they must be stay unchanged or the same with control plane. For agent pool specific change, please use per agent pool operations: https://aka.ms/agent-pool-rest-api

To Reproduce Just run back and forth above commands and error will occur

Expected behavior Error shouldnt occur

Environment summary 1.24.6 AKS, West Europe

Additional context

ovie91 avatar Feb 01 '23 10:02 ovie91

route to CXP team

yonzhan avatar Feb 01 '23 10:02 yonzhan

@ovie91 We are looking into it and get back to you for any additional information.

SaurabhSharma-MSFT avatar Feb 01 '23 16:02 SaurabhSharma-MSFT

@ovie91 I am not able to reproduce this error. I have tried to enable and disable VPA multiple times using the cmdlet, however, I did not receive any errors.

SaurabhSharma-MSFT avatar Feb 01 '23 17:02 SaurabhSharma-MSFT

I thought it was problem with running command over and over but its not.

Error occurs when one of the pool is in different version ( e.g. we have auto upgrade set to rapid ), once currentOrchestratorVersion is different than Orchestrator version then error will occur.

"orchestratorVersion": "1.24.6"
"currentOrchestratorVersion": "1.25.4"

above setting is extracted from az aks nodepool list

So my assumption is that VPA is not supported with two different version on the cluster?

ovie91 avatar Feb 02 '23 08:02 ovie91

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

Issue Details

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command

End users are testing if they need VPA and they installing then removing it, after a while they want to add it again and error occurs Commands executed

az aks update -g "<rg_name>" -n "<aks_name>" --disable-vpa

or

az aks update -g "<rg_name>" -n "<aks_name>" --enable-vpa

Error msg

(NotAllAgentPoolOrchestratorVersionSpecifiedAndUnchanged) Using managed cluster api, all Agent pools' OrchestratorVersion must be all specified or all unspecified. If all specified, they must be stay unchanged or the same with control plane. For agent pool specific change, please use per agent pool operations: https://aka.ms/agent-pool-rest-api
Code: NotAllAgentPoolOrchestratorVersionSpecifiedAndUnchanged
Message: Using managed cluster api, all Agent pools' OrchestratorVersion must be all specified or all unspecified. If all specified, they must be stay unchanged or the same with control plane. For agent pool specific change, please use per agent pool operations: https://aka.ms/agent-pool-rest-api

To Reproduce Just run back and forth above commands and error will occur

Expected behavior Error shouldnt occur

Environment summary 1.24.6 AKS, West Europe

Additional context

Author: ovie91
Assignees: -
Labels:

bug, Service Attention, AKS, customer-reported, Auto-Assign

Milestone: -

ghost avatar Jul 19 '23 22:07 ghost

@ovie91 Is this issue still occurring for you?

mbifeld avatar Dec 11 '25 19:12 mbifeld