]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix race in get_network(s) in OVS plugin
authorEugene Nikanorov <enikanorov@mirantis.com>
Tue, 24 Dec 2013 11:08:22 +0000 (15:08 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Thu, 2 Jan 2014 19:20:23 +0000 (23:20 +0400)
commit126a26367b40125b3e434c948f21a4980bc86340
treead569bbe656dc837e93b8c0b8840a56b0ef5dc02
parent40210e5a63be6858ecf008c71f987b195d559fdc
Fix race in get_network(s) in OVS plugin

Load network bindings eagerly with networks.
Otherwise a different db query could try to fetch network bindings
for already deleted networks. The issue is reproducible with
concurrent tempest network API tests.

Closes-Bug: 1263686
Change-Id: I0521ab162220c66a62491ff8e7e4a9f6d7bef6c4
neutron/plugins/openvswitch/ovs_db_v2.py
neutron/plugins/openvswitch/ovs_models_v2.py
neutron/plugins/openvswitch/ovs_neutron_plugin.py