-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
AZ CLI Connectedk8s Error crd_cleanup_force_delete(kubectl_client_location, kube_config, kube_context) #6637
Comments
Thank you for opening this issue, we will look into it. |
Any help on this? |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @akashkeshari. |
@rohan-dassani, @TheOnlyWei, could you please help take a look at this issue? |
@msuleman92 , seems like there is some issue with the kubectl installation can you please cd to the directory - $HOME/.azure/kubectl-client and use the kubectl there and run the command Can you delete the kubectl file in this location and try onboarding again Also if the kubectl download fails again , can you run this command for manual kubectl installation |
@msuleman92 , the connectedk8s extension internally installs kubectl client and places it in this folder, seems like that installation has failed. Can you try installing kubctl client manually to unblock you az aks install-cli --install-location |
Here's a text version of the above that we're getting as well, this is a pain in new VMs where we try to use to run, on old VMs it works fine.
|
Seems like a proxy issue in your environment. Please refer to this older github issue for help - Azure/azure-cli#19571 @yonzhan to help here with this issue since CLI team has resolved very similar issues in the past. |
This might be related to Azure/azure-cli#27863 As per the last comment in that issue, the following resolved the issue for me: Invoke-WebRequest -Uri https://secure.globalsign.net/cacert/Root-R1.crt -OutFile c:\globalsignR1.crt'
Import-Certificate -FilePath c:\globalsignR1.crt -CertStoreLocation Cert:\LocalMachine\Root'
# insert az command here |
Describe the bug
Hi,
While trying to connect my Kubernetes cluster to azure arc is shows the errors related to custom.py.
Related command
az connectedk8s connect -g ARC-AKS-MicroK8 -n Arc-Data-Microk8s --kube-config "C:\Users\user.kube\config" --kube-context $Env:KUBECONTEXT --correlation-id "d009f5dd-dba8-4ac7-bac9-b54ef3a6671a"
Errors
The command failed with an unexpected error. Here is the traceback:
[WinError 2] The system cannot find the file specified
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 663, in execute
File "D:\a_work\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_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 697, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 333, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "C:\Users\arcdemo.azure\cliextensions\connectedk8s\azext_connectedk8s\custom.py", line 334, in create_connectedk8s
crd_cleanup_force_delete(kubectl_client_location, kube_config, kube_context)
File "C:\Users\arcdemo.azure\cliextensions\connectedk8s\azext_connectedk8s\custom.py", line 2410, in crd_cleanup_force_delete
response_helm_delete = Popen(cmd_helm_delete, stdout=PIPE, stderr=PIPE)
File "subprocess.py", line 971, in init
File "subprocess.py", line 1440, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Issue script & Debug output
Debug AZ CLI Connectedk8s.txt
Expected behavior
Should be Successful.
Environment Summary
"azure-cli": "2.51.0",
"azure-cli-core": "2.51.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"arcdata": "1.5.4",
"connectedk8s": "1.4.0",
"k8s-extension": "1.4.2"
Additional context
No response
The text was updated successfully, but these errors were encountered: