-
Notifications
You must be signed in to change notification settings - Fork 3.1k
az aks exception #31345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for opening this issue, we will look into it. |
Hi! We're also seeing issue with
|
Same issue on OSX as well while doing |
downgrading aks-preview extension worked for me: az extension remove --name aks-preview
az extension add --name aks-preview --version 14.0.0b3 |
Seeing this on 22.04 as well. |
The AKS CLI recently introduced a regression that prevents using aks-preview extensions (Azure/azure-cli#31345), and hence create CI clusters. To address this, we temporarily hardcode the last known good version of aks-preview. Note that I removed the comment about this being a Mariner requirement, as aks-preview is also a requirement of AKS App Routing, which will be introduced soon in #11164. Signed-off-by: Aurélien Bombo <[email protected]>
I am not sure if this should be filed in the repo: https://github.com/Azure/azure-cli-extensions |
Please run |
Corresponding issue on the repo: Azure/azure-cli-extensions#8691 |
I can see forcing pip install azure-mgmt-core==1.5.0, but it didn't help me. this worked for me: az extension add --name aks-preview --version 14.0.0b3 |
The root problem should be fixed in #31322 and will be available in the next az cli version on May 6th. |
So with the new release this issue was fixed, all you need to do now is: az extension update --name aks-preview |
Closing as new aks-preview version has the fix. |
Describe the bug
On Ubuntu 24.04 all aks commands throw an exception. Below an example:
A downgrade from aks-preview to version 14.0.0b3 fixes the problem, so it is probably a bug in aks-preview version 14.0.0b4
Related command
az aks get-credentials -g XXXXXXX -n YYYYYYY
Errors
The command failed with an unexpected error. Here is the traceback:
'NoneType' object has no attribute 'dict'
Traceback (most recent call last):
File "/opt/az/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 564, in execute
self.commands_loader.load_arguments(command)
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 549, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/knauer/.azure/cliextensions/aks-preview/azext_aks_preview/init.py", line 45, in load_arguments
load_arguments(self, command)
File "/home/knauer/.azure/cliextensions/aks-preview/azext_aks_preview/_params.py", line 429, in load_arguments
k8s_support_plans = self.get_models(
^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/init.py", line 804, in get_models
return get_sdk(self.cli_ctx, resource_type, *attr_args, mod='models', operation_group=operation_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/init.py", line 91, in get_sdk
return _sdk_get_versioned_sdk(cli_ctx.cloud.profile, resource_type, *attr_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 692, in get_versioned_sdk
sdk_path = get_versioned_sdk_path(api_profile, resource_type, operation_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 684, in get_versioned_sdk_path
api_version = getattr(api_version, operation_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 479, in getattr
self._resolve()
File "/opt/az/lib/python3.12/site-packages/azure/cli/core/profiles/_shared.py", line 466, in _resolve
for operation_group_name, operation_type in self._client_type.dict.items():
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'dict'. Did you mean: 'dir'?
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
Issue script & Debug output
Expected behavior
The configuration for kubectl must be created
Environment Summary
Additional context
Ubuntu 24.04
The text was updated successfully, but these errors were encountered: