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.
Reviewed: https:/ /review. openstack. org/174203 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=d36940b7206 16ec6607c62eca5 0023eb00bdae01
Committed: https:/
Submitter: Jenkins
Branch: master
commit d36940b720616ec 6607c62eca50023 eb00bdae01
Author: YAMAMOTO Takashi <email address hidden>
Date: Thu Apr 16 13:39:55 2015 +0900
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 4664b70f124863d 17805c26fff
Change-Id: Ic54b644bb1d72a