Fixes neutron L3 HA 69/29769/1
authorTim Rozet <trozet@redhat.com>
Fri, 3 Mar 2017 23:41:02 +0000 (18:41 -0500)
committerTim Rozet <trozet@redhat.com>
Fri, 3 Mar 2017 23:41:02 +0000 (18:41 -0500)
We modify neutron code to allow FDIO to create regular tap ports in
router namespaces.  However, we did not add support for neutron L3 HA,
which required this extra patch to work correctly.

JIRA: APEX-393

Change-Id: I3eb7ccac046be45d48806cf5d1e64e1c7282284d
Signed-off-by: Tim Rozet <trozet@redhat.com>
build/neutron-patch-NSDriver.patch

index e015064..d5889e3 100644 (file)
@@ -203,6 +203,29 @@ index c2eb06e..80da16f 100644
  
  class OVSInterfaceDriver(LinuxInterfaceDriver):
      """Driver for creating an internal interface on an OVS bridge."""
+diff --git a/neutron/agent/l3/ha_router.py b/usr/lib/python2.7/site-packages/neutron/agent/l3/ha_router.py
+index ca0e50d..2c4fdad 100644
+--- a/neutron/agent/l3/ha_router.py
++++ b/usr/lib/python2.7/site-packages/neutron/agent/l3/ha_router.py
+@@ -52,15 +52,14 @@ class HaRouterNamespace(namespaces.RouterNamespace):
+ class HaRouter(router.RouterInfo):
+     def __init__(self, state_change_callback, *args, **kwargs):
+         super(HaRouter, self).__init__(*args, **kwargs)
+-
+         self.ha_port = None
+         self.keepalived_manager = None
+         self.state_change_callback = state_change_callback
+     def create_router_namespace_object(
+-            self, router_id, agent_conf, iface_driver, use_ipv6):
++            self, router_id, agent_conf, iface_driver, use_ipv6, ovs_driver):
+         return HaRouterNamespace(
+-            router_id, agent_conf, iface_driver, use_ipv6)
++            router_id, agent_conf, iface_driver, use_ipv6, ovs_driver)
+     @property
+     def ha_priority(self):
+
 -- 
 2.9.3