← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1337991] Re: absolute limits API doesn't take user quotas into account

 

This wishlist bug has been open a year without any activity. I'm going
to move it to "Opinion / Wishlist", which is an easily-obtainable queue
of older requests that have come on.

In case you want to work on that, consider writing a blueprints [1] and
spec [2]. I'll recommend to read [3] if not yet done. The effort to
implement the requested feature is then driven only by the blueprint
(and spec).

References:
[1] https://blueprints.launchpad.net/nova/
[2] https://github.com/openstack/nova-specs
[3] https://wiki.openstack.org/wiki/Blueprints

** Changed in: nova
       Status: Confirmed => Opinion

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1337991

Title:
  absolute limits API doesn't take user quotas into account

Status in OpenStack Compute (nova):
  Opinion

Bug description:
  The limits API always returns the per tenant limits and not any per-
  user limits that may exist.

  https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/limits.py#L94-95

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1337991/+subscriptions


References