neutron/neutron
YAMAMOTO Takashi 5dccff1cb3 Fix DBDuplicateError handling in _ensure_default_security_group
The coding in change-id Ibb0597d4db187c856f9ac1d9700701e0165c3c73
catches and ignores DBDuplicateError in a nested transaction.
It would cause another exception, InvalidRequestError, on the
next operation.  ("This Session's transaction has been rolled back")
This commit fixes it.

Also, tweak a test case to expose the error.

Closes-Bug: #1433418
Related-Bug: #1419723
Change-Id: Ie4de271c0512fb2ecc6ed6842ad20386e3785a9c
2015-03-18 14:50:48 +09:00
..
agent Merge "Advertise mtu over dhcp" 2015-03-17 22:26:26 +00:00
api Expose Rest Api access to mtu attributes 2015-03-17 18:07:11 +00:00
callbacks Migrate to oslo.log 2015-03-12 11:22:56 +01:00
cmd Merge "Move mlnx agent to be under ml2/drivers/mlnx" 2015-03-17 12:08:05 +00:00
common Expose Rest Api access to mtu attributes 2015-03-17 18:07:11 +00:00
db Fix DBDuplicateError handling in _ensure_default_security_group 2015-03-18 14:50:48 +09:00
debug Migrate to oslo.log 2015-03-12 11:22:56 +01:00
extensions Migrate to oslo.log 2015-03-12 11:22:56 +01:00
hacking Migrate to oslo.log 2015-03-12 11:22:56 +01:00
ipam Introduce External IPAM Interface 2015-03-17 15:03:05 -07:00
locale Imported Translations from Transifex 2015-03-11 06:14:01 +00:00
notifiers Migrate to oslo.log 2015-03-12 11:22:56 +01:00
openstack Migrate to oslo.log 2015-03-12 11:22:56 +01:00
plugins Merge "Add MTU selection to ML2" 2015-03-17 22:17:54 +00:00
scheduler Migrate to oslo.log 2015-03-12 11:22:56 +01:00
server Migrate to oslo.log 2015-03-12 11:22:56 +01:00
services Merge "IBM SDN-VE Plugin decomposition" 2015-03-17 21:40:15 +00:00
tests Fix DBDuplicateError handling in _ensure_default_security_group 2015-03-18 14:50:48 +09:00
__init__.py Revert "monkey patch stdlib before importing other modules" 2015-02-11 17:26:33 -08:00
auth.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
context.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
hooks.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
i18n.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
manager.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
neutron_plugin_base_v2.py Throw exception instances instead of classes 2014-09-07 12:56:30 +04:00
policy.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
quota.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
service.py Revert "Set default of api_workers to number of CPUs" 2015-03-16 17:23:44 -07:00
version.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
wsgi.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00