Show both user and project limits

Registered by Thang Pham

Both user and project quotas should be shown by "nova absolute-limits".

One of the problems today is that "nova absolute-limits" only shows the project quotas. In some cases, it is necessary to show both the user and project quotas, so the end user knows the true threshold. Take for example the following scenario, found in https://bugs.launchpad.net/nova/+bug/1337991.

Project Quota = 10
User Quota = 5
User Usage = 1
Other User Usage = 9

If we just show the overall project usage and quota, we get (used=10 & quota=10), which shows that the project quota is fully used. However, if we just show the user quotas, we get (used=1 & quota=5), which suggests that there is capacity.

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 does not have any available quota.

This leads to a requirement that the limits API should return both the project and user level limits.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Thang Pham
Direction:
Needs approval
Assignee:
Thang Pham
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/user-project-limits,n,z

Addressed by: https://review.openstack.org/127094
    Display user and project limits

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.