-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fail to run "az connectedk8s connect" #1943
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @akashkeshari. |
connectedk8s |
@chhtw , Can you run the following command and share the output so that we can look into the issue: To unblock you, run the following commands:
Let me know if you face any issues following above steps. Thanks, |
@akashkeshari , Here is the log for 'az rest -m post -u https://eastus.dp.kubernetesconfiguration.azure.com/azure-arc-k8sagents/GetLatestHelmPackagePath?api-version=2019-11-01-preview --resource https://management.core.windows.net/ --debug' Command arguments: ['rest', '-m', 'post', '-u', 'https://eastus.dp.kubernetesconfiguration.azure.com/azure-arc-k8sagents/GetLatestHelmPackagePath?api-version=2019-11-01-preview', '--resource', 'https://management.core.windows.net/', '--debug'] 400 Bad RequestRequest Header Or Cookie Too Largeopenresty/1.15.8.2 cli.azure.cli.core.util : Bad Request( <title>400 Request Header Or Cookie Too Large</title>400 Bad RequestRequest Header Or Cookie Too Largeopenresty/1.15.8.2 ) Bad Request( <title>400 Request Header Or Cookie Too Large</title> 400 Bad RequestRequest Header Or Cookie Too Largeopenresty/1.15.8.2 ) Event: Cli.PostExecute [] az_command_data_logger : exit code: 1 telemetry.save : Save telemetry record of length 5468 in cache telemetry.check : Returns Positive. telemetry.main : Begin creating telemetry upload process. telemetry.process : Creating upload process: "/opt/az/bin/python3 /opt/az/lib/python3.6/site-packages/azure/cli/telemetry/__init__.py /home/myadmin/.azure" telemetry.process : Return from creating process telemetry.main : Finish creating telemetry upload process. Command ran in 5.773 seconds (init: 0.590, invoke: 5.183) |
interesting it loading all cli command modules |
@yungezz, this is exactly why we need command index (Azure/azure-cli#13294). 😉 |
This issue has been fixed. Please update the connectedk8s extension to version 0.2.4 and try again: Let us know if you still face this issue |
Duplicate of #2077 |
I tried to follow https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/connect-cluster to connect k8s, but got an error after I ran the command "az connectedk8s connect", not quite sure how to fix it.
The command failed with an unexpected error. Here is the traceback: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 215, in invoke cmd_result = self.invocation.execute(args) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 654, in execute raise ex File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 718, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 711, in _run_job six.reraise(*sys.exc_info()) File "/opt/az/lib/python3.6/site-packages/six.py", line 703, in reraise raise value File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 688, in _run_job result = cmd_copy(params) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 325, in __call__ return self.handler(*args, **kwargs) File "/opt/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 545, in default_command_handler return op(**command_args) File "/home/myadmin/.azure/cliextensions/connectedk8s/azext_connectedk8s/custom.py", line 209, in create_connectedk8s registry_path = os.getenv('HELMREGISTRY') if os.getenv('HELMREGISTRY') else get_helm_registry(profile, location) File "/home/myadmin/.azure/cliextensions/connectedk8s/azext_connectedk8s/custom.py", line 408, in get_helm_registry telemetry.set_exception(exception=str(response.json()), fault_type=Get_HelmRegistery_Path_Fault_Type, File "/opt/az/lib/python3.6/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/opt/az/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/opt/az/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/opt/az/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az connectedk8s connect Extension Name: connectedk8s. Version: 0.2.1.
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az connectedk8s connect --name {} --resource-group {} --debug
Expected Behavior
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: