neutron/neutron
Kevin Benton 608b54137f Call _allocate_vr_id outside of transaction
_allocate_vr_id is called from _set_vr_id, which was starting a
transaction before calling it. This caused an error when the retry
logic was triggered inside of _allocate_vr_id since it would
encounter a DB exception and put the transaction into a bad state
that couldn't be used on the retry.

This patch just stops _set_vr_id from starting a transaction because
it didn't serve a purpose. It also stops _allocate_vr_id from allowing
subtransactions when it starts a transaction, since it's retry logic
isn't compatible with them.

Co-Authored-By: Ann Kamyshnikova <akamyshnikova@mirantis.com>
Closes-Bug: #1528201
Change-Id: If7bcae39098f40f5ee9db78d3190bf9fdaf6438b
(cherry picked from commit 18e2117e3d)
2016-01-12 13:12:15 +00:00
..
agent Add compatibility with iproute2 >= 4.0 2015-12-16 08:46:53 -05:00
api manual add/remove router for dvr_snat agent 2015-11-10 17:10:28 +00:00
callbacks Add security groups events 2015-06-29 11:34:50 -07:00
cmd move usage_audit to cmd/eventlet package 2015-12-18 18:39:36 +01:00
common Enable servicing lbaasV2 vip by DVR 2015-09-23 09:13:01 -07:00
db Call _allocate_vr_id outside of transaction 2016-01-12 13:12:15 +00:00
debug Migrate to oslo.log 2015-03-12 11:22:56 +01:00
extensions Allow setting Agents description to None 2015-10-06 15:38:21 +00:00
hacking Fix failures introduced by the new version of mock 2015-07-10 20:45:03 +02:00
ipam Ensure non-overlapping cidrs in subnetpools without galera 2015-06-12 12:58:24 +00:00
locale Release Import of Translations from Transifex 2015-04-20 11:08:37 +02:00
notifiers Reuse nova batch notifier 2015-03-20 13:55:08 +00:00
openstack Migrate to oslo.log 2015-03-12 11:22:56 +01:00
plugins Merge "Make port binding message on dead agents clear" into stable/kilo 2015-12-21 19:30:52 +00:00
scheduler Add transaction for setting agent_id in L3HARouterAgentPortBinding 2015-12-15 13:56:29 +02:00
server Migrate to oslo.log 2015-03-12 11:22:56 +01:00
services Fix a wrong condition for the _purge_metering_info function 2015-09-04 10:52:52 +00:00
tests Merge "Add compatibility with iproute2 >= 4.0" into stable/kilo 2015-12-21 13:59:27 +00: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 Remove "Arguments dropped when creating context" logging 2015-04-01 09:38:21 -04: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 Basic subnetpool CRUD 2015-03-18 22:53:50 -07:00
policy.py Stop device_owner from being set to 'network:*' 2015-09-08 15:00:17 +00:00
quota.py Treat all negative quota values as -1 2015-04-02 17:26:51 +05:30
service.py Move pool dispose() before os.fork 2015-06-08 17:48:51 +08:00
version.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
wsgi.py Move pool dispose() before os.fork 2015-06-08 17:48:51 +08:00