Add transaction for setting agent_id in L3HARouterAgentPortBinding
To avoid having extra L3HARouterAgentPortBinding with l3_agent as
None, operation of setting l3_agent should be atomic.
For this purpose, transaction was added in methods
create_ha_port_and_bind and _bind_ha_router_to_agents.
Reviewed: https:/ /review. openstack. org/257857 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=cd978f8f806 a32a5e6382a8d06 ca1cc92917d73b
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit cd978f8f806a32a 5e6382a8d06ca1c c92917d73b
Author: Ann Kamyshnikova <email address hidden>
Date: Fri Sep 25 15:30:30 2015 +0300
Add transaction for setting agent_id in L3HARouterAgent PortBinding
To avoid having extra L3HARouterAgent PortBinding with l3_agent as ha_port_ and_bind and _bind_ha_ router_ to_agents.
None, operation of setting l3_agent should be atomic.
For this purpose, transaction was added in methods
create_
Closes-Bug: #1499647
Conflicts: scheduler/ l3_agent_ scheduler. py
neutron/
Change-Id: Iaad82fe522cfd7 0061daecf411c92 4fdc11b7e41 1a372216ce60cc1 384dc48c02)
(cherry picked from commit 3fef15a40b2714c