]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ignore PortNotFound exceptions on lockless delete
authorKevin Benton <blak111@gmail.com>
Mon, 17 Mar 2014 15:46:39 +0000 (08:46 -0700)
committerKevin Benton <blak111@gmail.com>
Tue, 18 Mar 2014 05:10:55 +0000 (22:10 -0700)
commit4d18154aa8b075363ac52914e3f330db7cc04308
tree3bbffcaceaddafa03483b8d6268c55314d3bb9fe
parentcde3da2f89ba5fc4c7ef138cffb3a711c2d4ba9a
Ignore PortNotFound exceptions on lockless delete

Modifies the delete_ports_by_device_id method to
ignore PortNotFound exceptions because it has no
protection against concurrent operations deleting
the same ports that it's trying to delete.

Closes-Bug: #1293657
Change-Id: Icbcded149364a0e231ae811a440a691518bf20ad
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/cisco/test_network_plugin.py
neutron/tests/unit/test_db_plugin.py