juju autoload-credentials fails - manual add-credential succeeds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
High
|
Unassigned |
Bug Description
We seem to have run into an issue in PS5 where juju autoload-
We ran into this when granting a user "add-model". The existing model was created by the admin user and access granted, so was using an admin credential eg admin/stg-
The user then, with novarc sourced, runs juju autoload-
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 "prodstack-is-beta" only (--controller prodstack-is-beta)
3. both (--client --controller prodstack-is-beta)
Enter your choice, or type Q|q to quit: 3
Looking for cloud and credential information on local client...
Looking for cloud information on controller "prodstack-
1. openstack region "prodstack5" project "${OS_TENANT_NAME}" user "stg-enablement
2. rackspace credential for user "stg-enablement
Select a credential to save by number, or type Q to quit: 1
Select the cloud it belongs to, or type Q to quit [prodstack5]:
WARNING cloud prodstack5 not valid
1. openstack region "prodstack5" project "${OS_TENANT_NAME}" user "stg-enablement
2. rackspace credential for user "stg-enablement
Select a credential to save by number, or type Q to quit: Q
No credentials loaded to controller prodstack-is-beta.
I'd have expected another option there where project was correctly expanded from the set env var?
We then run the add-credential manually, pasting requested from the novarc which works:
juju add-credential prodstack5
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 "prodstack-is-beta" only (--controller prodstack-is-beta)
3. both (--client --controller prodstack-is-beta)
Enter your choice, or type Q|q to quit: 3
Using cloud "prodstack5" from the controller to verify credentials.
Enter credential name: stg-enablement-
Regions
prodstack5
Select region [any region, credential is not region specific]: prodstack5
Using auth-type "userpass".
Enter username: stg-enablement-
Enter password: XXXXXXXXXXXX
Enter tenant-name (optional): stg-enablement-
Enter tenant-id (optional):
Enter version (optional):
Enter domain-name (optional):
Enter project-domain-name (optional):
Enter user-domain-name (optional):
Credential "stg-enablement
Controller credential "stg-enablement
For more information, see ‘juju show-credential prodstack5 stg-enablement-
Changed in juju: | |
milestone: | 2.9.11 → 2.9.12 |
Changed in juju: | |
milestone: | 2.9.12 → 2.9.13 |
Changed in juju: | |
milestone: | 2.9.13 → 2.9.14 |
Changed in juju: | |
milestone: | 2.9.14 → 2.9.15 |
Changed in juju: | |
milestone: | 2.9.15 → 2.9.16 |
Changed in juju: | |
milestone: | 2.9.16 → 2.9.17 |
Changed in juju: | |
milestone: | 2.9.17 → 2.9.18 |
Changed in juju: | |
milestone: | 2.9.18 → 2.9.19 |
Changed in juju: | |
milestone: | 2.9.19 → 2.9.20 |
Changed in juju: | |
milestone: | 2.9.20 → 2.9.21 |
Changed in juju: | |
milestone: | 2.9.21 → 2.9.22 |
Changed in juju: | |
milestone: | 2.9.22 → 2.9.23 |
Changed in juju: | |
milestone: | 2.9.23 → 2.9.24 |
Changed in juju: | |
milestone: | 2.9.24 → 2.9.25 |
Changed in juju: | |
milestone: | 2.9.25 → 2.9.26 |
Changed in juju: | |
milestone: | 2.9.26 → 2.9.27 |
Changed in juju: | |
milestone: | 2.9.27 → 2.9.28 |
Changed in juju: | |
milestone: | 2.9.28 → 2.9.29 |
Changed in juju: | |
milestone: | 2.9.29 → 2.9.30 |
Changed in juju: | |
milestone: | 2.9.30 → 2.9-next |
status: | Incomplete → Triaged |
Changed in juju: | |
milestone: | 2.9-next → 3.1-beta1 |
Changed in juju: | |
milestone: | 3.1-beta1 → 3.1-rc1 |
Changed in juju: | |
milestone: | 3.1-rc1 → 3.1-rc2 |
Changed in juju: | |
milestone: | 3.1-rc2 → 3.1-rc3 |
Can you paste your novarc (with secrets redacted).
There's a few variations on a theme that need to be catered for and it seems there's one that Juju doesn't handle.