Azure / Azure/azure-cli-extensions

Not able to connect AKS to Azure Arc using connectedk8s

Open
#1,824 3 comments 0 reactions 0 assignees View on GitHub
Connected Kubernetes Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### **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:**
```
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
six.reraise(*sys.exc_info())
...
lib/python3.6/json/decoder.py, ln 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
lib/python3.6/json/decoder.py, ln 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
```

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

- _Put any pre-requisite steps here..._
- `az connectedk8s connect --name {} --resource-group {} --location {}`

## Expected Behavior

## Environment Summary
```
Linux-5.3.0-1022-azure-x86_64-with-debian-buster-sid
Python 3.6.10
Installer: DEB

azure-cli 2.7.0

Extensions:
connectedk8s 0.2.1
k8sconfiguration 0.1.8

```
## Additional Context

Contributor guide

Open the contributing guide

Research direction

Begin with the `az connectedk8s connect` entry point in connectedk8s 0.2.1 and reproduce it in the listed Linux, Python, and Azure CLI environment. Trace the JSONDecodeError shown in the traceback; done means the command completes the AKS-to-Azure Arc connection without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, kubernetes, python
Domain
cli, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.