[openstack-dev] [nova] Limits API and project-user-quotas
Day, Phil
philip.day at hp.com
Fri Jul 4 23:06:27 UTC 2014
Hi Folks,
Working on the server groups quotas I hit an issue with the limits API which I wanted to get feedback on.
Currently this always shows just the project level quotas and usage, which can be confusing if there is a lower user specific quota. For example:
Project Quota = 10
User Quota = 1
User Usage = 1
Other User Usage = 2
If we show just the overall project usage and quota we get (used=3, quota=10) - which suggest that the quota is not fully used, and I can go ahead and create something.
However if we show the user quotas we get (used=1, quota=1), which shows correctly that I would get a quota error on creation.
But if we do switch to returning the used view of quotas and usage we can get a different problem:
Project Quota = 10
User Quota = 5
User Usage = 1
Other User Usage = 9
Now if we show just the user quotas we get (used=1, quota=5), which suggests that there is capacity when in fact there isn't.
Whereas if we just return the overall project usage and quota (current behavior) we get (used=10, quota=10) - which shows that the project quota is fully used.
It kind of feels as if really we need to return both the project and per user values if the results are going to be reliable in the face of project-user-quotas, but that led me to thinking whether a user that has been given a specific quota is meant to eb able to see the corresponding overall project level quota ?
The quota API itself allows a user to get either the project level quota or any per-user quota within that project - which does make all of the information available even if it is a tad odd that the default (no user specified) is to see the overall quota rather than the one that apples to the user making the request. They can't however via the quotas API find out project level usage.
Thoughts on what the correct model is here ?
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140704/30b701ff/attachment.html>
More information about the OpenStack-dev
mailing list