yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #43369
[Bug 1525295] Re: subnet listing is too slow with rbac
Reviewed: https://review.openstack.org/256609
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=f5b950dffecc049df11981dcfb5574121be3eb69
Submitter: Jenkins
Branch: master
commit f5b950dffecc049df11981dcfb5574121be3eb69
Author: Kevin Benton <blak111@xxxxxxxxx>
Date: Fri Dec 11 09:56:01 2015 -0800
Separate rbac calculation from _make_network_dict
When a subnet dict was being created, it was calling
_make_network_dict to get the 'shared' flag for the
subnet. The issue with this is that the _make_network_dict
function would iterate over the subnets on the passed in
network object, which would trigger a database lookup
of all of the subnets.
This patch just separates the 'shared' flag calculation out
into a separate function that both calls can leverage.
Change-Id: I2cb766ce1fd8ddcc75209f9e92221a3b77015ea2
Closes-Bug: #1525295
Partial-Bug: #1513782
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1525295
Title:
subnet listing is too slow with rbac
Status in neutron:
Fix Released
Bug description:
subnet listing of 100 subnets takes about 2 seconds on a powerfull hardware.
60% of the time is consumed by the calculation of 'shared' attribute of the subnet which involves rbac rules.
This makes horizon barely usable as number of networks grow.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1525295/+subscriptions
References