]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Handle DBDuplicateError exception properly when creating default sg
authorEugene Nikanorov <enikanorov@mirantis.com>
Sat, 14 Mar 2015 20:35:08 +0000 (23:35 +0300)
committerEugene Nikanorov <enikanorov@mirantis.com>
Tue, 17 Mar 2015 11:08:07 +0000 (14:08 +0300)
commit8dee8df12b402943b3f7f2e34d3ccc2c00068619
tree121744e0256714b345f852e64712ecbc33171a6b
parent8f11581a35c64d3261f1762a3fd8d12c1bd43d65
Handle DBDuplicateError exception properly when creating default sg

Previously, an exception was not caught in one of invocations
(create_network) of _ensure_default_security_group.
Move exception handling inside that method so it never fails
with such exception.

Change-Id: Ibb0597d4db187c856f9ac1d9700701e0165c3c73
Closes-Bug: #1419723
neutron/db/api.py
neutron/db/securitygroups_db.py
neutron/tests/unit/test_db_plugin.py
neutron/tests/unit/test_extension_security_group.py