]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
OVS agent: Correct bridge setup ordering
authorKevin Benton <blak111@gmail.com>
Thu, 19 Jun 2014 05:34:00 +0000 (22:34 -0700)
committerKevin Benton <blak111@gmail.com>
Wed, 25 Jun 2014 12:30:21 +0000 (05:30 -0700)
commit3445715f98e3aaa967f1661e403e45ad85392909
tree456dc4182f9f526d0ec72780efa01ce5d5ce3a6c
parentb3063ed18e39cea2426f0c226507c6bcb6a7e001
OVS agent: Correct bridge setup ordering

This patch fixes three issues that combined to break tunnel networks.

The first issue was the the failure mode was being set on the
integration bridge after the canary flow was installed. This
immediately wiped out the canary flow.

The second problem was that the main loop would sync tunnel networks
right before resetting the tunnel bridge when the canary flow was
missing. This meant that it would sync all of the tunnels via RPC and
then wipe them out.

The final issue was that after resetting the tunnel bridge in the
main loop, the tunnel_sync variable was not set to True, so the
tunnels would never be resynchronized.

This patch addresses the three issues in the following ways:
1. Set the failure mode on the bridge before the canary flow is
installed.
2. Run the OVS restart logic before the tunnel synchronization.
3. If the restart logic is triggered, set tunnel_sync to True to
trigger synchronization.

Closes-Bug: #1292105
Change-Id: I6381e3fee49910127c420dd2e3205c64cdb9e185
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/openvswitch/test_ovs_tunnel.py