]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Create RPC connection before modifying OVS bridges
authorStephen Gran <stephen.gran@guardian.co.uk>
Thu, 29 Aug 2013 06:11:44 +0000 (07:11 +0100)
committerStephen Gran <stephen.gran@guardian.co.uk>
Fri, 30 Aug 2013 17:51:52 +0000 (18:51 +0100)
commitd72848c9afba40d21235a4e95cf8e69549290dca
tree80ae7ee91ed7ff83b200495f993da0d80c05408e
parentf9465f289a1812c94d81183ffd0ed5dbe865ee5f
Create RPC connection before modifying OVS bridges

On startup, the agent removes and readds flows to the OVS bridges.  If
an RPC setup error exits the process prematurely, this can leave the
bridges in an unsafe state.  It is better to set the RPC communication
up before making changes to the host system.

Closes-Bug: 1217980
Change-Id: Ib9bbb864b9129bb7b1376a150a37a0c07908d74b
Signed-off-by: Stephen Gran <stephen.gran@guardian.co.uk>
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_tunnel.py