]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
faster quantum-openvswitch-agent periodic reports
authorPeter Feiner <peter@gridcentric.ca>
Tue, 18 Jun 2013 20:48:30 +0000 (20:48 +0000)
committerPeter Feiner <peter@gridcentric.ca>
Fri, 28 Jun 2013 17:55:41 +0000 (17:55 +0000)
commit364e97b44158976dca923bcf9ff5dff926da5dc4
tree12fe230f4c8329dc024123f3bf30f931deca8e14
parent67548e10f05a702dcaa8f05528ee1b4286094094
faster quantum-openvswitch-agent periodic reports

One of two patches that fixes bug #1194438.

Instead of spawning ovs-vsctl for every port on br-int, we just dump the
required columns from the Interfaces table and grab the rows that we need. This
is a big win because the time it takes for ovs-vsctl to connect to the
openvswitch controller is orders of magnitude greater than the time it takes to
parse the rows. In practice, instead of taking roughly 1s per interface, the
agent's periodic task only takes 1s in total.

Change-Id: Idbf32c38e0c4a9c9634c1e4f0e79bd556b720493
quantum/agent/linux/ovs_lib.py
quantum/tests/unit/openvswitch/test_ovs_lib.py