[multi-user] Confusing error printed when user without sufficient permissions attempts to add a model

Bug #1808616 reported by Peter Matulis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Unassigned

Bug Description

When a user who has neither been granted 'superuser' controller permissions nor 'add-model' model permissions attempts to use `add-model` a confusing error is printed:

$ juju add-model golf
ERROR cloud "aws" not found

Here, the controller is AWS-based.

After either of the above permissions is granted the command succeeds.

Tags: multi-user
Revision history for this message
Richard Harding (rharding) wrote :

Thanks, more clear error messaging is definitely useful.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.6-beta1
Changed in juju:
milestone: 2.6-beta1 → 2.6-beta2
Changed in juju:
milestone: 2.6-beta2 → 2.6-rc1
Changed in juju:
milestone: 2.6-rc1 → 2.6-rc2
Changed in juju:
milestone: 2.6-rc2 → 2.6.1
Changed in juju:
milestone: 2.6.1 → 2.6.2
Changed in juju:
milestone: 2.6.2 → 2.6.3
Changed in juju:
milestone: 2.6.3 → 2.6.4
Changed in juju:
milestone: 2.6.4 → 2.6.5
Changed in juju:
milestone: 2.6.5 → 2.6.6
Changed in juju:
milestone: 2.6.6 → 2.6.7
Changed in juju:
milestone: 2.6.7 → 2.7-beta1
Changed in juju:
milestone: 2.7-beta1 → 2.7-rc1
tags: added: multi-user
Changed in juju:
milestone: 2.7-rc1 → none
Revision history for this message
Nam Nguyen (nammn) wrote :

This seems to have been fixed some releases ago:

```
❯ juju add-model bla
ERROR you do not have add-model access to any clouds on this controller.
Please ask the controller administrator to grant you add-model permission
for a particular cloud to which you want to add a model.
```

Changed in juju:
status: Triaged → 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.