neutron/neutron/agent/l3
sridhargaddam 2f9b0ce940 Spawn RADVD only in the master HA router
Currently radvd is spawned in all the HA routers irrespective of the
state of the router. This approach has the following issues.

1. While processing the internal router ports (i.e., qr-xxx), ha_router
   removes the LLA of the interface and adds it as a VIP to Keepalived conf.
   Radvd daemon is spawned after this operation in the router namespace
   (if the port is associated with any IPv6 subnets). Radvd notices that
   qr-xxx interface does not have the LLA, so does not transmit any Router
   Advts. In this state, VMs fail to acquire IPv6 addresses because of the
   missing RAs. Radvd does not recover even after keepalived configures the
   LLA of the interface. The only solution is to restart/reload radvd daemon.
   Currently keepalived-state-change monitor does not do any radvd related
   operations when a state transition happens. So we endup in this state
   forever.
2. For all the routers in Backup state, qr-xxx interface does not have LLA
   as it is managed by keepalived and configured only on the Master HA router.
   In such agents syslog is flooded with the messages [1] and this can cause
   loss of other useful info.
   [1] - resetting ipv6-allrouters membership on qr-2e373555-97

This patch implements the following.
1. If the router is already in the Master state, we configure the LLA as a VIP
   in keepalived conf but do not delete the LLA of the internal interface.
2. We spawn radvd only if the router is in the Master State.
3. Keepalived-state-change monitor takes care of enabling/disabling radvd upon
   state transitions.

Closes-Bug: #1440699
Change-Id: I351c71d058170265bbb8b56e1f7a3430bd8828d5
2015-04-23 17:15:15 +05:30
..
__init__.py Move classes out of l3_agent.py 2014-12-10 15:19:28 -07:00
agent.py Log caught exceptions while deleting a router 2015-04-20 15:22:41 -04:00
config.py Merge "Make floatingip reachable from the same network" 2015-04-01 04:00:59 +00:00
dvr.py Move external port processing to router classes 2015-03-23 22:51:07 +00:00
dvr_fip_ns.py Support Dual-Stack Gateway Ports on Neutron Routers 2015-03-27 23:37:58 -04:00
dvr_router.py Fix dynamic arp populate error for dvr routers 2015-04-06 19:58:51 -07:00
dvr_snat_ns.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
ha.py Spawn RADVD only in the master HA router 2015-04-23 17:15:15 +05:30
ha_router.py Spawn RADVD only in the master HA router 2015-04-23 17:15:15 +05:30
keepalived_state_change.py Replace keepalived notifier bash script with Python ip monitor 2015-03-18 18:59:33 -04:00
legacy_router.py Move Floating IP processing to Router classes 2015-02-20 17:14:44 +00:00
link_local_allocator.py Fixing several misspellings in neutron 2015-02-02 23:41:52 +08:00
namespace_manager.py Fix common misspellings 2015-03-24 11:44:15 +01:00
namespaces.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
router_info.py Spawn RADVD only in the master HA router 2015-04-23 17:15:15 +05:30
router_processing_queue.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00