]> 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)
committerGerrit Code Review <review@openstack.org>
Fri, 21 Feb 2014 08:37:53 +0000 (08:37 +0000)
commita38d73d9449675374f45c44b35978735e53cdbaf
tree37dc697a6e39b8625eba6da709febbdae5035d39
parent269066360ffb102463c12c9732cac2d1ba18ccfa
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