Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.99k forks source link

az connectedk8s enable-features --features cluster-connect failes as helm 3.7 removed chart command #19651

Open Banchio opened 3 years ago

Banchio commented 3 years ago

Describe the bug

Command Name az connectedk8s enable-features Extension Name: connectedk8s. Version: 1.1.10.

Errors:

Unable to pull helm chart from the registry 'mcr.microsoft.com/azurearck8s/batch1/stable/azure-arc-k8sagents:1.4.0': Error: unknown command "chart" for "helm"
Run 'helm --help' for usage.

To Reproduce:

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

Expected Behavior

complete feature activation like helm 3.6.3. Since in Helm 3.7.0 chart command has been removed, this does not work anymore.

Environment Summary

Windows-10-10.0.17763-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.28.0

Extensions:
connectedk8s 1.1.10

Additional Context

Banchio commented 3 years ago

I saw it is referenced here: https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/troubleshooting#azure-cli-is-unable-to-download-helm-chart-for-azure-arc-agents

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @akashkeshari.

Issue Details
## Describe the bug **Command Name** `az connectedk8s enable-features Extension Name: connectedk8s. Version: 1.1.10.` **Errors:** ``` Unable to pull helm chart from the registry 'mcr.microsoft.com/azurearck8s/batch1/stable/azure-arc-k8sagents:1.4.0': Error: unknown command "chart" for "helm" Run 'helm --help' for usage. ``` ## To Reproduce: Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information. - AKS HCI cluster connected through Azure ARC - `az connectedk8s enable-features --features cluster-connect -n {} -g {}` ## Expected Behavior complete feature activation like helm 3.6.3. Since in Helm 3.7.0 chart command has been removed, this does not work anymore. ## Environment Summary ``` Windows-10-10.0.17763-SP0 Python 3.8.9 Installer: MSI azure-cli 2.28.0 Extensions: connectedk8s 1.1.10 ``` ## Additional Context
Author: Banchio
Assignees: -
Labels: `Service Attention`, `needs-triage`, `Connected Kubernetes`
Milestone: -
yonzhan commented 3 years ago

route to service team

akashkeshari commented 3 years ago

@Banchio ,

For the time being, please use the mitigation suggested in the link you pasted above. We will soon release a fix for this issue and let you know

akashkeshari commented 3 years ago

@Banchio

This issue has been fixed in the latest release of connectedk8s CLI. (version 1.1.11) Please upgrade using the cmd 'az extension update -n connectedk8s' ant try again. Note that the 1.1.11 version of the CLI no longer has dependency on the helm client installed by the user. The CLI, during runtime will download a suitable helm version and use it. 'Helm' is no longer a pre-requisite for the connectedk8s CLI