Moves the HA resource creations outside of transaction
Currently the HA resources are created in the
_create_router_db which includes calls to
the plugin and generates RPC calls. Even if the
resource creations are outside of any transaction
from the _create_router_db point of view, this
method is called in a transaction from the
create_router method.
This patch moves the resource creations to the
create_router method outside the transaction.
The failures are handled as previously with
a try/expect.
Reviewed: https:/ /review. openstack. org/124408 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=ccd65073272 9451aa8e5ce3401 f9570c70c4f066
Committed: https:/
Submitter: Jenkins
Branch: master
commit ccd650732729451 aa8e5ce3401f957 0c70c4f066
Author: Sylvain Afchain <email address hidden>
Date: Fri Sep 26 13:49:43 2014 +0000
Moves the HA resource creations outside of transaction
Currently the HA resources are created in the router_ db which includes calls to
_create_
the plugin and generates RPC calls. Even if the
resource creations are outside of any transaction
from the _create_router_db point of view, this
method is called in a transaction from the
create_router method.
This patch moves the resource creations to the
create_router method outside the transaction.
The failures are handled as previously with
a try/expect.
Change-Id: If8fcfd012f8e99 2175e49bbefb2ae 667881a620a
Closes-bug: #1374461