question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az aks nodepool list does not work well

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

az aks nodepool list does not work well when the number of nodepool is 10 or more. (this number is the button to read more appears in azure portal) It worked when the version was 2.40.0, but not 2.41.0.

Command Name az aks nodepool list

Errors:

The command failed with an unexpected error. Here is the traceback:
'ContainerServiceClientConfiguration' object has no attribute 'api_version'
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 710, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/paging.py", line 129, in __next__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/paging.py", line 76, in __next__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/containerservice/v2022_07_01/operations/_agent_pools_operations.py", line 406, in get_next
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/containerservice/v2022_07_01/operations/_agent_pools_operations.py", line 391, in prepare_request
AttributeError: 'ContainerServiceClientConfiguration' object has no attribute 'api_version'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here… create 10 nodepools

Expected Behavior

Environment Summary

Windows-10-10.0.22621-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.41.0

Extensions:
application-insights 0.1.16
quota 0.1.0

Dependencies:
msal 1.20.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

Kubernetes version 1.24.6

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
PowerSurjcommented, Oct 15, 2022

for those seeking immediate workaround, look at downgrading az aks-preview extension i did not spend time tracing at which exact release it got broken, but i found it works at below version

az extension remove --name aks-preview
az extension add --name aks-preview --version 0.5.94

and you don’t have to downgrade azure-cli

0reactions
whagecommented, Oct 24, 2022

The fix has been merged as part of this PR - #24270. Closing.

Thanks for the quick response and solution. Can we get a new azure-cli debian package with the fix? Maybe I’m mistaken but I can’t yet find it. Looking for it here: https://packages.microsoft.com/repos/azure-cli/pool/main/a/azure-cli/

Read more comments on GitHub >

github_iconTop Results From Across the Web

az aks nodepool
List node pools in the managed Kubernetes cluster. To get list of nodes in the cluster run kubectl get nodes command. az aks...
Read more >
AKS nodepool in a failed state, PODS all pending
Then one of my nodepools started working again which is of type user but the one of type system is still in a...
Read more >
Building an AKS baseline architecture - Part 1 - Cluster ...
Everything around AKS is pretty well documented in the official ... fail to do so, you risk running a non-supported cluster not covered...
Read more >
aks patching and node pool upgrade azure kubernetes ...
Remember If you don't run the nodeimage switch remember the whole cluster including the kubernetes version of the control plane is also upgraded ......
Read more >
AKS Checklist
The AKS Checklist is a (tentatively) exhaustive list of all elements you need to think of when preparing a cluster for production.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found