Arc-enabled Kubernetes custom location creation failing after AZ CLI upgraded to 2.70.0 version
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### Describe the bug
Arc-enabled Kubernetes custom location creation failing after AZ CLI upgraded to 2.70.0 version when running below command to create custom location. This is working fine until version 2.69.0
### Related command
az customlocation create
### Errors
az : ERROR: The command failed with an unexpected error. Here is the traceback:
At line:1 char:1
+ az customlocation create --name 'jumpstart-cl' `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (ERROR: The comm... the traceback::String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
ERROR: 'CredentialAdaptor' object has no attribute 'signed_session'
Traceback (most recent call last):
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 666, in execute
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 734, in _run_jobs_serially
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 703, in _run_job
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 336, in __call__
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 120, in handler
File "C:\Users\arcdemo\.azure\cliextensions\customlocation\azext_customlocation\custom.py", line 70, in create_customlocation
return sdk_no_wait(no_wait, cl_client.create_or_update, resource_group_name=resource_group_name,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/util.py", line 744, in sdk_no_wait
File "C:\Users\arcdemo\.azure\cliextensions\customlocation\azext_customlocation\vendored_sdks\azure\mgmt\extendedlocation\v2021_08_15\operations\_custom_locations_operations.py", line 378, in create_or_update
raw_result = self._create_or_update_initial(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\arcdemo\.azure\cliextensions\customlocation\azext_customlocation\vendored_sdks\azure\mgmt\extendedlocation\v2021_08_15\operations\_custom_locations_operations.py", line 330, in _create_or_update_initial
response = self._client.send(request, stream=False, **operation_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/service_client.py", line 336, in send
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/pipeline/__init__.py", line 197, in run
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/pipeline/__init__.py", line 150, in send
File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\msrest/pipeline/requests.py", line 65, in send
AttributeError: 'CredentialAdaptor' object has no attribute 'signed_session'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
### Issue script & Debug output
az customlocation create --name 'jumpstart-cl' `
--resource-group $Env:resourceGroup `
--namespace arc `
--host-resource-id $connectedClusterId `
--cluster-extension-ids $extensionId `
--kubeconfig $Env:KUBECONFIG
### Expected behavior
Custom location resource must be created successfully without any issues
### Environment Summary
{
"azure-cli": "2.70.0",
"azure-cli-core": "2.70.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"arcdata": "1.5.21",
"connectedk8s": "1.10.7",
"customlocation": "0.1.3",
"k8s-extension": "1.6.3"
}
}
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.