neutron/neutron
venkata anil 500b255278 Set HA network port to DOWN when l3 agent starts
When l3 agent node is rebooted, if HA network port status is already
ACTIVE in DB, agent will get this status from server and then spawn
the keepalived (though l2 agent might not have wired the port),
resulting in multiple HA masters active at the same time.

To fix this, when the L3 agent starts up we can have it explicitly
set the port status to DOWN for all of the HA ports on that node.
Then we are guaranteed that when they go to ACTIVE it will be because
the L2 agent has wired the ports.

Closes-bug: #1597461
Change-Id: Ib0c8a71b6ff97e43a414f3db4882914b12170d53
2017-06-06 13:46:54 +03:00
..
agent use extra_dhcp_opt api-def from neutron-lib 2017-05-31 15:06:35 +00:00
api Set HA network port to DOWN when l3 agent starts 2017-06-06 13:46:54 +03:00
callbacks Merge "service: add callback AFTER_SPAWN" 2017-05-20 09:09:12 +00:00
cmd Merge "Adds an option to skip ports on ovs_cleanup" 2017-05-17 09:15:33 +00:00
common Switched to pyroute2.config.asyncio.asyncio_config 2017-05-31 13:46:16 -07:00
conf Merge "VXLAN multicast groups in linuxbridge" 2017-05-30 00:55:21 +00:00
core_extensions Add "default" behaviour to QoS policies 2017-05-26 23:31:36 +00:00
db l3_ha_mode: call bulk _populate_mtu_and_subnets_for_ports 2017-06-02 22:40:06 +00:00
debug use neutron_lib's portbindings api-def 2017-03-31 09:16:22 -06:00
extensions use extra_dhcp_opt api-def from neutron-lib 2017-05-31 15:06:35 +00:00
hacking Switch to neutron-lib hacking factory 2017-04-13 07:41:25 -07:00
ipam New enginefacade for networks, subnets. 2017-03-30 01:26:45 -07:00
locale Imported Translations from Zanata 2016-08-19 07:27:43 +00:00
notifiers use neutron-lib callbacks 2017-04-26 12:12:53 -06:00
objects Merge "Add "default" behaviour to QoS policies" 2017-05-29 16:44:50 +00:00
pecan_wsgi use neutron-lib callbacks 2017-04-26 12:12:53 -06:00
plugins Merge "Utils: make delete_port_on_error more informative" 2017-06-02 18:51:03 +00:00
privileged Do not raise an error deleting neighbour entry 2017-01-26 16:22:20 -05:00
quota Use new enginefacade for quota and provisioning blocks 2017-03-29 14:31:03 +00:00
scheduler [OVO] Integration of RouterL3AgentBinding 2017-05-26 13:17:58 -07:00
server Expose neutron api application as a wsgi script 2017-04-17 02:07:27 +00:00
services Fix updating Qos policy to be default/not default 2017-06-02 16:05:42 +00:00
tests Set HA network port to DOWN when l3 agent starts 2017-06-06 13:46:54 +03:00
__init__.py Hacking rule to check i18n usage 2016-03-30 21:28:37 -04:00
_i18n.py Move i18n to _i18n, as per oslo_i18n guidelines 2015-12-01 19:29:10 -07:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Use is_loaded in manager.init 2017-03-30 14:53:20 +00:00
neutron_plugin_base_v2.py Revert "Revert "Remove threading before process forking"" 2016-06-02 21:26:08 +00:00
opts.py Remove deprecated support for QoS notification_drivers 2017-04-17 06:32:01 -07:00
policy.py Merge "Neutron server was not compatible with member actions" 2017-04-21 06:28:39 +00:00
service.py Merge "use worker from neutron-lib" 2017-05-25 07:53:44 +00:00
version.py
worker.py use worker from neutron-lib 2017-05-16 07:44:08 -06:00
wsgi.py use worker from neutron-lib 2017-05-16 07:44:08 -06:00