azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Can't enable dashboard on k8s cluster

Open jorgecarleitao opened this issue 6 years ago • 3 comments

Describe the bug

Command Name az aks enable-addons --addons kube-dashboard

Errors:

argument of type 'NoneType' is not iterable
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 608, in execute
    raise ex
cli/core/commands/__init__.py, ln 666, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 659, in _run_job
    six.reraise(*sys.exc_info())
lib/python3.8/site-packages/six.py, ln 703, in reraise
    raise value
...
azure/cli/core/__init__.py, ln 493, in default_command_handler
    return op(**command_args)
cli/command_modules/acs/custom.py, ln 1846, in aks_enable_addons
    _ensure_container_insights_for_monitoring(cmd, instance.addon_profiles['omsagent'])
cli/command_modules/acs/custom.py, ln 2496, in _ensure_container_insights_for_monitoring
    if 'loganalyticsworkspaceresourceid' in addon.config:
TypeError: argument of type 'NoneType' is not iterable

To Reproduce:

  • create a k8 cluster (without RBAC)
  • az aks browse --resource-group gitlab --name k8-test will ask you to run az aks enable-addons --addons kube-dashboard.
  • az aks enable-addons --resource-group {} --name {} --addons kube-dashboard causes the crash above.

Expected Behavior

The addon necessary to run az aks browse should be enabled.

Environment Summary

macOS-10.15.3-x86_64-i386-64bit
Python 3.8.1

azure-cli 2.1.0

Additional Context

jorgecarleitao avatar Mar 04 '20 04:03 jorgecarleitao

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm

ghost avatar Mar 04 '20 05:03 ghost

aks

yonzhan avatar Mar 04 '20 05:03 yonzhan

Hello! Please try again with the latest Azure CLI version. Feel free to reopen an issue if it still doesn't work. https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest

Jen7714 avatar May 29 '20 16:05 Jen7714