bugfix:enable metadata in DHCP for odl l3 91/20091/1
authorchenshuai@huawei.com <chenshuai@huawei.com>
Wed, 31 Aug 2016 01:06:51 +0000 (21:06 -0400)
committershuai chen <chenshuai@huawei.com>
Thu, 1 Sep 2016 02:48:56 +0000 (02:48 +0000)
JIRA: COMPASS-476

Change-Id: Ie9734c6b8304a40fbb24e9f6230801c00289d36f
Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
(cherry picked from commit e09136c215f9166a98ced9bcced6e068a3ed73d4)

deploy/adapters/ansible/openstack_liberty/roles/odl_cluster/tasks/odl_controller.yml
deploy/adapters/ansible/openstack_mitaka_xenial/roles/odl_cluster/tasks/odl_controller.yml
deploy/adapters/ansible/openstack_mitaka_xenial/roles/odl_cluster/tasks/openvswitch.yml
deploy/adapters/ansible/roles/odl_cluster/tasks/odl_controller.yml

index dff7d00..3c7032d 100755 (executable)
   shell: crudini --set /etc/neutron/neutron.conf DEFAULT service_plugins networking_odl.l3.l3_odl.OpenDaylightL3RouterPlugin;
   when: odl_l3_agent == "Enable"
 
-
+- name: configure metadata for l3 configuration
+  shell: crudini --set /etc/neutron/dhcp_agent.ini DEFAULT enable_isolated_metadata True;
+  when: odl_l3_agent == "Enable"
 
 - name: drop and recreate neutron database
   shell: mysql -e "drop database if exists neutron;";
index 9de5f47..b304b71 100755 (executable)
   shell: crudini --set /etc/neutron/neutron.conf DEFAULT service_plugins networking_odl.l3.l3_odl.OpenDaylightL3RouterPlugin;
   when: odl_l3_agent == "Enable"
 
-
+- name: configure metadata for l3 configuration
+  shell: crudini --set /etc/neutron/dhcp_agent.ini DEFAULT enable_isolated_metadata True;
+  when: odl_l3_agent == "Enable"
 
 - name: drop and recreate neutron database
   shell: mysql -e "drop database if exists neutron;";
index ee477a3..b8cb6c9 100755 (executable)
 - name: execute ml2 configuration script
   command: su -s /bin/sh -c "/opt/ml2_conf.sh;"
 
-- name: change odl password for moon
-  shell: crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_odl password {{ ADMIN_PASS }} 
-  when: moon == "Enable"
+#- name: change odl password for moon
+#  shell: crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_odl password {{ ADMIN_PASS }} 
+#  when: moon == "Enable"
 
index 15513b3..624ae58 100755 (executable)
   shell: crudini --set /etc/neutron/neutron.conf DEFAULT service_plugins networking_odl.l3.l3_odl.OpenDaylightL3RouterPlugin;
   when: odl_l3_agent == "Enable"
 
-
+- name: configure metadata for l3 configuration
+  shell: crudini --set /etc/neutron/dhcp_agent.ini DEFAULT enable_isolated_metadata True;
+  when: odl_l3_agent == "Enable"
 
 - name: drop and recreate neutron database
   shell: mysql -e "drop database if exists neutron;";