Comment 12 for bug 1815154

Revision history for this message
Achilleas Anagnostopoulos (achilleasa) wrote :

It looks like the admin user does not have read access to the model created by the other user. The permission checking code that fails is: https://github.com/juju/juju/blob/2.5/apiserver/facades/client/storage/storage.go#L121

Is it safe to assume that a controller admin has read (and maybe write as I can see a checkCanWrite() method below the one linked above) access to *all* models in the controller?

Also, storage listing is not available before 2.5 we should probably update the status cmd implementation to check `errors.IsNotSupported` when attempting to list storage as it will probably cause issues if you use a > 2.5.0 juju cli to query an older controller's status.