[multi-user] Operating without sufficient access produces confusing and/or inconsistent errors

Bug #1807462 reported by Peter Matulis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

When a remote Juju user with read access only attempts to deploy a charm (e.g. 'apache2') the following text is printed:

ERROR storing charm for URL "cs:apache2-26": delegatable macaroon cannot be obtained for public entities

This can be improved.

When the user is granted write access the charm is deployed successfully.

Interestingly, when the read-only user attempts to scale an application (`add-unit`) the messaging is more meaningful:

You do not have permission to add a unit.
You may ask an administrator to grant you access with "juju grant".

ERROR permission denied (unauthorized access)

However, when the user attempts to run an action (`run-action`), remove an application (`remove-application`), or remove a machine (`remove-machine`) the error is simply:

ERROR permission denied (unauthorized access)

When trying to remove a model (`destroy-model`) the error is:

Destroying model
ERROR failed to destroy model "admin/aws-alpha"
ERROR cannot destroy model: permission denied

When trying to remove a controller (`destroy-controller` or `kill-controller`) without superuser access the error is:

ERROR getting controller environ: getting model config from API: permission denied (unauthorized access)

So we might want to be more consistent and direct with all this messaging.

Revision history for this message
Peter Matulis (petermatulis) wrote :

See also bug 1571855.

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
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
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.