juju autoload-credentials is stuck
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Caner Derici |
Bug Description
Hello,
I have a new juju2.9.44 client and I wanted to add an openstack cloud.
```
$ juju version
2.9.44-ubuntu-amd64
$ juju list-clouds
Only clouds with registered credentials are shown.
There are more clouds, use --all to see them.
Clouds available on the controller:
Cloud Regions Default Type
localhost 1 localhost lxd
Clouds available on the client:
Cloud Regions Default Type Credentials Source Description
localhost 1 localhost lxd 1 built-in LXD Container Hypervisor
$ . ~/.canonistack-
$ openstack keypair list
+------
| Name | Fingerprint | Type |
+------
| ballot_laptop | 06:bb:3e:
+------
$ juju autoload-
This operation can be applied to both a copy on this client and to the one on a controller.
Do you want to add a credential to:
1. client only (--client)
2. controller "overmind" only (--controller overmind)
3. both (--client --controller overmind)
Enter your choice, or type Q|q to quit: 1
Looking for cloud and credential information on local client...
.
.
```
And that is stuck.
After using the debug flag
```
$ juju --debug autoload-
15:36:04 INFO juju.cmd supercommand.go:56 running juju [2.9.44 02d498631e196f2
15:36:04 DEBUG juju.cmd supercommand.go:57 args: []string{
Do you want to add a credential to:
1. client only (--client)
2. controller "overmind" only (--controller overmind)
3. both (--client --controller overmind)
Enter your choice, or type Q|q to quit: 1
15:36:10 INFO cmd detectcredentia
Looking for cloud and credential information on local client... 15:36:10 DEBUG juju.kubernetes
15:36:10 DEBUG juju.provider.
15:36:10 DEBUG juju.provider.
.
.
```
So because I have an azurecli configured for something, this is causing an issue for an unrelated cloud addition.
I'm not sure it's intended.
Changed in juju: | |
assignee: | nobody → Joseph Phillips (manadart) |
assignee: | Joseph Phillips (manadart) → Caner Derici (cderici) |
milestone: | none → 3.1.6 |
milestone: | 3.1.6 → none |
I think the thing to do is use a context to time-box the attempt for each potential credential.
Report those that failed, then action the detected ones as normal.