]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix _restore_local_vlan_map race
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Wed, 21 Oct 2015 04:54:06 +0000 (13:54 +0900)
committerYAMAMOTO Takashi <yamamoto@midokura.com>
Thu, 22 Oct 2015 09:35:21 +0000 (18:35 +0900)
commitc69407e676c483820f5c505d8d6d7923b0461819
tree6eedbe2331287767e89417342bf4c8a89f2f36ab
parent07dda9709aec13c949e7953b187c4ab8be3e1227
Fix _restore_local_vlan_map race

Local vlan mappings provisioned by _restore_local_vlan_map
might not be cleaned up properly if the corresponding ports are
removed before we enter the main loop.

This commit fixes the problem by making _restore_local_vlan_map
just record local vlan IDs and leave the rest of provisioning logic
to the main loop.

Closes-Bug: #1507776
Change-Id: I84ff6684ae3fda7d839c14b1a7382871f45ce610
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_neutron_agent.py