commit b3f4e128417dbeaa18081a39497b1c1705483cc6
Author: John Schwarz <email address hidden>
Date: Thu Oct 13 13:54:07 2016 +0300
Don't create HA resources until needed
Change I3447ea5bcb7c57365c6f50efe12a1671e86588b3 introduced a new
running-index for RouterL3AgentBinding, binding_index, which helps to
keep count of how many bindings a router has for each agent (and how
many bindings in total). Since we were able use this DB column to make
sure concurrency doesn't break on creating a new HA router, we also
postponed the creation of L3HARouterAgentPortBinding to after the first
binding was successfully created.
This patch proposes a change to the way routers are scheduled to an
agent: when creating a new HA router, no L3HARouterAgentPortBinding
entities will be created until after the corresponding
RouterL3AgentBinding was successfully created.
In other words, instead of pre-creating the L3HARouterAgentPortBinding
objects without assigning it to an agent, we'll create them only after
the RouterL3AgentBinding were successfully created.
Reviewed: https:/ /review. openstack. org/444387 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=b3f4e128417 dbeaa18081a3949 7b1c1705483cc6
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit b3f4e128417dbea a18081a39497b1c 1705483cc6
Author: John Schwarz <email address hidden>
Date: Thu Oct 13 13:54:07 2016 +0300
Don't create HA resources until needed
Change I3447ea5bcb7c57 365c6f50efe12a1 671e86588b3 introduced a new nding, binding_index, which helps to PortBinding to after the first
running-index for RouterL3AgentBi
keep count of how many bindings a router has for each agent (and how
many bindings in total). Since we were able use this DB column to make
sure concurrency doesn't break on creating a new HA router, we also
postponed the creation of L3HARouterAgent
binding was successfully created.
This patch proposes a change to the way routers are scheduled to an PortBinding ntBinding was successfully created. PortBinding nding were successfully created.
agent: when creating a new HA router, no L3HARouterAgent
entities will be created until after the corresponding
RouterL3Age
In other words, instead of pre-creating the L3HARouterAgent
objects without assigning it to an agent, we'll create them only after
the RouterL3AgentBi
Conflicts: scheduler/ l3_agent_ scheduler. py tests/unit/ db/test_ l3_hamode_ db.py
neutron/
neutron/
Related-Bug: #1609738 7450aea546f4b61 f5ba14baf1c 33732da1e97307f 9fd9647dcc)
Change-Id: Ie98d5e3760cdb1
(cherry picked from commit 2ad9c679ed87186