Bug fix for odl_l2 51/37151/2
authorYifei Xue <xueyifei@huawei.com>
Tue, 11 Jul 2017 05:03:07 +0000 (13:03 +0800)
committerYifei Xue <xueyifei@huawei.com>
Wed, 12 Jul 2017 14:47:43 +0000 (22:47 +0800)
The "external_network_bridge" should be configured in neutron-server's
LXC container. Currently we configure it in agents' LXC container.
So in ODL L2 scenario, the DNAT failed.
This patch will fix this.

Change-Id: Ifca005d8cdb901d114838ec88d2f24bcee73abf7
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
plugins/odl_cluster/tasks/control-agents-3.yml
plugins/odl_cluster/tasks/control-servers-2.yml

index 9d7ddeb..68446a8 100644 (file)
     crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs bridge_mappings physnet:eth12;
   when: odl_l3_agent == "Enable"
 
+- name: configure external bridge name for L2
+  shell: |
+    crudini --set /etc/neutron/l3_agent.ini DEFAULT external_network_bridge br-provider;
+  when: odl_l3_agent == "Disable"
+
 - name: configure opendaylight in ml2
   shell: |
     crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_odl username admin;
index 5bfc24e..59b3aa2 100644 (file)
@@ -19,9 +19,9 @@
     crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs bridge_mappings physnet:eth12;
   when: odl_l3_agent == "Enable"
 
-- name: configure external bridge name for L2
+- name: turn off l3 ha for odl l2
   shell: |
-    crudini --set /etc/neutron/l3_agent.ini DEFAULT external_network_bridge br-provider;
+    crudini --set /etc/neutron/neutron.conf DEFAULT l3_ha "False";
   when: odl_l3_agent == "Disable"
 
 - name: configure opendaylight in ml2