]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Reduce security group db calls to neutron server
authorZHU ZHU <zhuzhubj@cn.ibm.com>
Fri, 5 Sep 2014 08:01:07 +0000 (03:01 -0500)
committerYaguang Tang <yaguang.tang@canonical.com>
Wed, 22 Oct 2014 03:20:34 +0000 (11:20 +0800)
commitf9f694f95f5338d62f75ce54677dd165dc87a8d5
treed09e2704278064b8a8128f92a561430a5c522b78
parent830142e6923ff5fa8303afc22b0b61c39a374fe8
Reduce security group db calls to neutron server

Within ovs agent daemon loop, prepare_devices_filter will impose heavy workloads
to neutron server in order to retrieve the security groups message to apply
firewall rules. If agent is configured to use Noopfirewall driver or security
groups are disabled, there is no need for loading the rules from server and
refreshing the firewalls. This will reduce the number of db calls and improve
performance for neutron server in this case.

Change-Id: Id244aab3cac37fc6ed3dc05cbee91cdf9e34d9cc
Closes-Bug: #1365806
(cherry picked from commit 524981cce05a9b365036c0a1e9810036936d3d5b)
neutron/agent/securitygroups_rpc.py
neutron/tests/unit/test_security_groups_rpc.py