-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Describe the bug
Based on the README provided, the expected usage of this tool is via the Azure CLI by installing the aks-preview extension and running az aks kollect. However when running this command the aks-periscope.yaml file is not found to be included with that extension. I have seen in your notes of previous commits that there was some plan on changing the behavior of how this tool is consumed but this has not been reflected in the provided readme
To Reproduce
- run 'az extension add --name aks-preview'
- run 'az aks kollect -g -n --storage-account
- Receive following error & traceback:
The command failed with an unexpected error. Here is the traceback:
[Errno 2] No such file or directory: 'C:\Users\jamesonhearn\.azure\cliextensions\aks-preview\azext_aks_preview\deploymentyaml\aks-periscope.yaml'
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 657, in execute
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 720, in _run_jobs_serially
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 691, in _run_job
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 328, in call
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "C:\Users\jamesonhearn.azure\cliextensions\aks-preview\azext_aks_preview\custom.py", line 1430, in aks_kollect
deployment_yaml = _read_periscope_yaml()
File "C:\Users\jamesonhearn.azure\cliextensions\aks-preview\azext_aks_preview\custom.py", line 1520, in _read_periscope_yaml
yaml_file = open(periscope_yaml_file, "r")
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\jamesonhearn\.azure\cliextensions\aks-preview\azext_aks_preview\deploymentyaml\aks-periscope.yaml'
Expected behavior
Expect logging to be successfully run against the provided cluster and storage in the specified storage account
Desktop (please complete the following information):
- OS: Windows 11
- Version 21H2
Additional context
CLI is latest version and aks-preview extension was uninstalled and reinstalled

