absolute limits API doesn't take user quotas into account
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
The limits API always returns the per tenant limits and not any per-user limits that may exist.
https:/
The call to get_project_quotas should be replaced with a call to get_user_quotas.
A similar problem exists in used_limits, as this reports overall tenant consumption and not the corresponding per user value.
I suspect this just got missed when per-user project quotas were introduced.
However if we do switch to showing the per user values for limits and used
it is possible that a user might see a different set of confusing values:
Project Quota = 10
User Quota = 5
User Usage = 1
Other User Usage = 9
If we show just the overall project usage and quota we get (used=10, quota=10) - which shows that the project quota is fully used.
However if we show just the user quotas we get (used=1, quota=5), which
suggests that there is capacity.
Conversely if:
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 shows that the project quota is not fully used.
However if we show just the user quotas we get (used=1, quota=1), which
suggests that this user doesn't have any available quota.
So maybe the limits API now needs to return both the project and user level limits.
description: | updated |
tags: | added: api |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
tags: | added: quotas |
Changed in nova: | |
assignee: | Thang Pham (thang-pham) → nobody |
Is this related? https:/ /bugs.launchpad .net/nova/ +bug/1334278