[RFE] Enhance Quota API calls to return resource usage per tenant

Bug #1599488 reported by Timur Sufiev on 2016-07-06
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
neutron
Wishlist
Prince Nana Owusu Boateng

Bug Description

The existing Neutron Quota API call [1] misses the option to fetch 'in_use' values for each type of quotable resources, alongside with their quota limits. Consequently, Horizon web app has to request a list of every resource that is quotable [2], which is pretty inefficient. The desired feature on the Neutron side would be to support 'in_use' return values in call [1], so that it behaves similar to [3, 4]. Whether or not the 'reserved' return values (again, see [3, 4]) should be supported in the same call is out of the scope of this particular feature request, but it certainly won't hurt if reserving quotable resources makes sense for Neutron.

[1] http://developer.openstack.org/api-ref-networking-v2-ext.html#listQuotasForTenant
[2] https://github.com/openstack/horizon/blob/10.0.0.0b1/openstack_dashboard/usage/quotas.py#L313-L336
[3] http://developer.openstack.org/api-ref-blockstorage-v2.html#showQuota
[4] http://developer.openstack.org/api-ref-compute-v2.1.html#listDetailQuotas

Timur Sufiev (tsufiev-x) on 2016-07-06
tags: added: quotas rfe
Sergey Belous (sbelous) on 2016-07-06
Changed in neutron:
assignee: nobody → Sergey Belous (sbelous)
Changed in neutron:
importance: Undecided → Wishlist

We should get Salvatore's opinion on this one. It sounds like a genuine improvement, but the devil is in the details.

Changed in neutron:
status: New → Confirmed

In the meantime we can get Salvatore's opinion, I wonder about the accuracy of the in_use attribute at any given time, have you given this any thought?

Whether or not this is accepted it would require an API change and a full spec process.

Changed in neutron:
status: Confirmed → Triaged

This needs a full spec. Can't be approved unless a capable approver volunteers to follow through the pipeline.

Best effort.

tags: added: rfe-postponed
removed: rfe
Sean M. Collins (scollins) wrote :

I'll volunteer myself to help the with the approval process

Timur Sufiev (tsufiev-x) wrote :

Sean, thank you very much!

Fix proposed to branch: master
Review: https://review.openstack.org/383673

Changed in neutron:
status: Triaged → In Progress

Change abandoned by Armando Migliaccio (<email address hidden>) on branch: master
Review: https://review.openstack.org/383673
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Changed in neutron:
assignee: Sergey Belous (sbelous) → Prince Nana Owusu Boateng (nanaboat)
Changed in neutron:
assignee: Prince Nana Owusu Boateng (nanaboat) → asingh (aradhana1-singh)
Changed in neutron:
assignee: asingh (aradhana1-singh) → Prince Nana Owusu Boateng (nanaboat)
Changed in neutron:
assignee: Prince Nana Owusu Boateng (nanaboat) → asingh (aradhana1-singh)
Changed in neutron:
assignee: asingh (aradhana1-singh) → Prince Nana Owusu Boateng (nanaboat)
Changed in neutron:
assignee: Prince Nana Owusu Boateng (nanaboat) → asingh (aradhana1-singh)
Rob Cresswell (robcresswell) wrote :

Why does this bug keep getting reassigned without any patches or discussion? Please stop spamming my inbox with reassign emails, or discuss amongst yourselves who is supposedly working on it.

Eric Peterson (ericpeterson-l) wrote :

rob - you can mute emails for a given bug. it's on the right hand side

Rob Cresswell (robcresswell) wrote :

Fully aware I can mute bug emails; I'd like to see the updates, just without the spam every couple of days.

Changed in neutron:
assignee: asingh (aradhana1-singh) → Prince Nana Owusu Boateng (nanaboat)

Reviewed: https://review.openstack.org/348947
Committed: https://git.openstack.org/cgit/openstack/neutron-specs/commit/?id=8c6711b5911c116aea63b8f8b0782a4ca5f5e777
Submitter: Jenkins
Branch: master

commit 8c6711b5911c116aea63b8f8b0782a4ca5f5e777
Author: Sergey Belous <email address hidden>
Date: Fri Jul 29 19:01:33 2016 +0300

    Extend Quota API to report usage statistics

    This patch proposes a new extension for quota API.
    This adds following endpoint: GET /v2.0/quotas/{tenant_id}/detail
    It reports detailed quotas for a specific tenant such as
    reserved, limit and used for each resource.

    Change-Id: I3cfe95f429d5aef771c906f7fcd7175d1d44523a
    Co-Authored-By: Sean M. Collins <email address hidden>
    Co-Authored-By: Prince Boateng<email address hidden>
    Co-Authored-By: Aradhana Singh <email address hidden>
    Related-bug: #1599488

Should the bug got to rfe-approved?

tags: added: rfe-approved
removed: rfe-postponed

Reviewed: https://review.openstack.org/383673
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=a8109af65f275ec1b2e725695bf3bb9976f22ae3
Submitter: Jenkins
Branch: master

commit a8109af65f275ec1b2e725695bf3bb9976f22ae3
Author: Sergey Belous <email address hidden>
Date: Fri Oct 7 14:29:07 2016 +0300

    Extend Quota API to report usage statistics

    Extend existing quota api to report a quota set. The quota set
    will contain a set of resources and its corresponding reservation,
    limits and in_use count for each tenant.

    DocImpact:Documentation describing the new API as well as the new
    information that it exposes.
    APIImpact

    Co-Authored-By: Prince Boateng<email address hidden>
    Change-Id: Ief2a6a4d2d7085e2a9dcd901123bc4fe6ac7ca22
    Related-bug: #1599488

Changed in neutron:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers