go-goose / goose

goose (Go OpenStack Exchange) - Go bindings for talking to OpenStack.
GNU Lesser General Public License v3.0
17 stars 39 forks source link

Do not combine unauthorised and forbidden error codes #96

Closed wallyworld closed 2 years ago

wallyworld commented 2 years ago

Both 401 and 403 were being interpreted as an UnauthorisedError. However, 403 can also be used for quota exceeded. The result is that Juju is invalidating credentials when a quota is exceed, instead of simply recording the error and allowing for a retry after the quota issue is fixed.

https://bugs.launchpad.net/juju/+bug/1966375