Reviewed: https://review.openstack.org/431793 Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=af8a01b362acd85aff34dfde0a7ace197007f768 Submitter: Jenkins Branch: master
commit af8a01b362acd85aff34dfde0a7ace197007f768 Author: MinSun <mi...@cisco.com> Date: Fri Feb 10 09:00:35 2017 +0800 usage: Ensure to count resources of a given project When retrieving resource usage, the current code calls subnet_list twice for shared=False/True, but 'shared' attribute of subnet is not defined in the Networking API and actually there is no need to use it (even though it works as expected accidentally). What we need here is to specify tenant_id as a query parameter with a single API to limit the scope to a given project. The same way can be used for network_list() and router_list() calls and it is more efficient. By doing so, we now need only one network_list() call. Change-Id: I40d61ed9cbae4b083e4f3cec9caa269e92daf306 Closes-Bug: #1663170 ** Changed in: horizon Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1663170 Title: call neutron api twice for list subnet when count subnet quotas Status in OpenStack Dashboard (Horizon): Fix Released Bug description: When update a tenant's subnet quota, we have to list all existed subnets to count the minimal quota for subnet. In current code, it first lists none-shared subnets and then lists shared subnets. At last, put the two values together. It has to call neutron list subnet api twice. In fact, it can be done by one api call without shared parameter. To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1663170/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp