Better error message for add-model with no credential

Bug #1988565 reported by Vitaly Antonenko
6
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-user-password
juju add-user superadmin
juju grant superadmin superuser
juju change-user-password superadmin
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/lxd" not found
```

Tags: bitesize ui
Revision history for this message
Ian Booth (wallyworld) wrote :

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.

tags: added: bitesize ui
summary: - Problem with controller access credentials for added users
+ Better error message for add-model with no credential
Changed in juju:
milestone: none → 2.9.35
importance: Undecided → High
status: New → Triaged
Changed in juju:
assignee: nobody → Evanson Mwangi (mr-parish)
Changed in juju:
status: Triaged → In Progress
Revision history for this message
Evanson Mwangi (mr-parish) wrote :
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.