Better error message for add-model with no credential
Bug #1988565 reported by
Vitaly Antonenko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Evanson Mwangi |
Bug Description
Let's add a new user with superuser controller access and login to controller:
```
juju bootstrap lxd lxd
juju change-
juju add-user superadmin
juju grant superadmin superuser
juju change-
juju logout
juju login
```
After login as `superuser`, let's check our rights:
```
juju users
```
Add try to add model
```
juju add-model test-model
```
The result is the ERROR:
```
ERROR getting credential: cloud credential "lxd/superadmin
```
Changed in juju: | |
assignee: | nobody → Evanson Mwangi (mr-parish) |
Changed in juju: | |
status: | Triaged → In Progress |
Changed in juju: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is expected - just because you have been given permission to add a model to a cloud, you can't do it without supplying your own credential. You don't get to use someone else's credit card to pay for your cloud use :-)
You need to use the --credential argument to add-model.
The error is telling you that it cannot find your credential for that cloud. Adding an extra line of text to better explain the situation would be helpful.