An HA port needs to point to the correct host (where the master router
is running) in order for L2Population to work.
Hence, this patch introduces two fixes:
* When a port owned by an HA router is up we make sure it points to the
right node where the master is running, or a random node if there is
no master yet (This corner case is fixed by the 2nd bullet point).
* When a L3 agent reports it's hosting a master, we need to update the
port binding to the host the master is now running on. This fixes
both routers with no elected master (Yet) and failovers.
(cherry picked from commit 91d3a0219a43a2c06ea4043cc9eeb518815df391)
Reviewed: https:/ /review. openstack. org/211166 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=7c2727c4cdb 791cc259b86c3de c128cfdb8cbd18
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 7c2727c4cdb791c c259b86c3dec128 cfdb8cbd18
Author: Mike Kolesnik <email address hidden>
Date: Tue Apr 7 19:54:09 2015 -0400
Update port bindings for master router
An HA port needs to point to the correct host (where the master router
is running) in order for L2Population to work.
Hence, this patch introduces two fixes:
* When a port owned by an HA router is up we make sure it points to the
right node where the master is running, or a random node if there is
no master yet (This corner case is fixed by the 2nd bullet point).
* When a L3 agent reports it's hosting a master, we need to update the
port binding to the host the master is now running on. This fixes
both routers with no elected master (Yet) and failovers.
(cherry picked from commit 91d3a0219a43a2c 06ea4043cc9eeb5 18815df391)
Conflicts: api/rpc/ handlers/ l3_rpc. py
neutron/
Closes-Bug: #1365476 8ea736ed7aa754f d0ca475cae2
Co-Authored-By: Assaf Muller <email address hidden>
Change-Id: I8475548947526d