juju gives weird errors about macaroons when a read-only user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Medium
|
Unassigned |
Bug Description
I was provided access to a model from a controller I did not create. Once it was registered I attempted to deploy an application:
juju deploy mysql
This resulted in
ERROR storing charm for URL "cs:trusty/
The same command with debug:
shared@maas:~$ juju deploy mysql --debug
2016-06-20 14:49:06 INFO juju.cmd supercommand.go:63 running juju [2.0-beta9 gc go1.6.1]
2016-06-20 14:49:06 INFO juju.juju api.go:230 connecting to API addresses: [192.168.
2016-06-20 14:49:06 INFO juju.api apiclient.go:494 dialing "wss://
2016-06-20 14:49:06 INFO juju.api apiclient.go:271 connection established to "wss://
2016-06-20 14:49:06 DEBUG juju.juju api.go:382 API hostnames [192.168.
2016-06-20 14:49:06 DEBUG juju.juju api.go:408 API addresses unchanged
2016-06-20 14:49:06 DEBUG juju.api apiclient.go:520 health ping failed: permission denied (unauthorized access)
2016-06-20 14:49:06 DEBUG httpbakery client.go:244 client do GET https:/
2016-06-20 14:49:06 DEBUG httpbakery client.go:246 } -> error <nil>
2016-06-20 14:49:06 DEBUG httpbakery client.go:244 client do GET https:/
2016-06-20 14:49:06 DEBUG httpbakery client.go:246 } -> error <nil>
2016-06-20 14:49:06 ERROR cmd supercommand.go:448 storing charm for URL "cs:trusty/
shared@maas:~$ juju show-model
openvim:
name: openvim
model-uuid: 778f7126-
controller-uuid: 4b4c3107-
owner: admin@local
type: maas
life: alive
status:
current: available
since: 1 hour ago
users:
shared@local:
access: read
last-
Once I was given write ACL to the model I was able to proceed. In the future I would expect Juju to catch that I was a read only user and alert me to this and to why I can't take action on a model.
tags: | added: 2.0 usability |
Changed in juju-core: | |
milestone: | none → 2.0.0 |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0.0 → none |
milestone: | none → 2.0.0 |
Changed in juju: | |
milestone: | 2.0.0 → 2.0.1 |
Changed in juju: | |
milestone: | 2.0.1 → none |
The error message does need to be improved \o/