]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ovs_lib: Fix a race between get_port_tag_dict and port removal
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Thu, 16 Apr 2015 04:39:55 +0000 (13:39 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Tue, 21 Apr 2015 01:16:02 +0000 (01:16 +0000)
commitd36940b720616ec6607c62eca50023eb00bdae01
tree1178887f81ecad60a5b1a07b53deb95d377ed8ec
parent19ae3603c882e8423dc802f92eebd559ae2749ad
ovs_lib: Fix a race between get_port_tag_dict and port removal

get_port_tag_dict() gets a list of ports using get_port_name_list()
and then queries the db again for ports in the list.
It fails if some of ports disappeared in between.
This change fixes it by ignoring "not exist" errors in the later query.

Closes-Bug: #1444797
Change-Id: Ic54b644bb1d72a4664b70f124863d17805c26fff
neutron/agent/common/ovs_lib.py