← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1179745] Re: expensive policy check operation

 

** Changed in: neutron
       Status: Fix Committed => 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/1179745

Title:
  expensive policy check operation

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  If one does:

  quantum port-list

  The plugin will return a list of all ports but then in api/v2/base.py
  it does a get_network() for each network returned in the port list
  which is expensive. It would be better to avoid this or do a
  get_networks() instead.

              obj_list = [obj for obj in obj_list
                          if policy.check(request.context,
                                          self._plugin_handlers[self.SHOW],
                                          obj,
                                          plugin=self._plugin)]
  https://github.com/openstack/quantum/blob/master/quantum/api/v2/base.py#L214

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