commit 756864270aa87fadb4b2090f180577664cabc415
Author: Ann Kamyshnikova <email address hidden>
Date: Wed Oct 21 17:16:38 2015 +0300
Add UniqueConstraint in L3HARouterAgentPortBinding
It is expected that pair router_id and l3_agent_id will be unique
in table ha_router_agent_port_bindings. As it appeared that
duplicates can be added this change adds UniqueConstraint for
this columns.
Having duplicates is odd and leads to problems during sync_routers.
DBReferenceError will be caught create_ha_port_and_bind and
_bind_ha_router_to_agents(l3_agent_scheduler.py) as
L3HARouterAgentPortBinding are created with l3_agent_id=None
in _create_ha_port_binding (l3_hamode_db.py)
Reviewed: https:/ /review. openstack. org/238122 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=756864270aa 87fadb4b2090f18 0577664cabc415
Committed: https:/
Submitter: Jenkins
Branch: master
commit 756864270aa87fa db4b2090f180577 664cabc415
Author: Ann Kamyshnikova <email address hidden>
Date: Wed Oct 21 17:16:38 2015 +0300
Add UniqueConstraint in L3HARouterAgent PortBinding
It is expected that pair router_id and l3_agent_id will be unique agent_port_ bindings. As it appeared that
in table ha_router_
duplicates can be added this change adds UniqueConstraint for
this columns.
Having duplicates is odd and leads to problems during sync_routers.
DBReference Error will be caught create_ ha_port_ and_bind and ha_router_ to_agents( l3_agent_ scheduler. py) as gentPortBinding are created with l3_agent_id=None ha_port_ binding (l3_hamode_db.py)
_bind_
L3HARouterA
in _create_
Change-Id: I7ac2283752deaa 3d9601b83859a46 b9e89940269
Partial-bug: #1499647