]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Handle racing condition in OFC port deletion
authorAkihiro Motoki <motoki@da.jp.nec.com>
Tue, 18 Feb 2014 08:01:01 +0000 (17:01 +0900)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:27 +0000 (15:20 +0800)
commit431f8fcb95e474f45ae216ff98a393938ad48aea
treebe9882898d519278605dcbf4849585b6cd7d6727
parent793853370218cc334a7d5705694bbb1ac13e194d
Handle racing condition in OFC port deletion

Multiple delete_port operations can run in parallel.
For such case later operation(s) will receive 404 (NotFound)
error from OFC or NotResultFound sqlalchemy exception.
These are valid exceptions and they should be ignored
in delete_port operations.

Closes-Bug: #1281574

OFCConsistencyBroken is renamed to OFCMappingNotFound
because when multiple delete_port operations run in parallel
OFCConsistencyBroken can occur and it is a valid case
so the excepion name looks inappropriate.

Change-Id: I1511d55994c88b8828f0ff62610c18ddc6dfac8f
neutron/plugins/nec/common/exceptions.py
neutron/plugins/nec/common/ofc_client.py
neutron/plugins/nec/db/api.py
neutron/plugins/nec/nec_plugin.py
neutron/plugins/nec/packet_filter.py
neutron/plugins/nec/router_drivers.py
neutron/tests/unit/nec/test_nec_plugin.py
neutron/tests/unit/nec/test_ofc_client.py