Use ml2 config for Neutron 87/10687/1
authorgrakiss <grakiss.wanglei@huawei.com>
Thu, 25 Feb 2016 01:16:06 +0000 (20:16 -0500)
committergrakiss <grakiss.wanglei@huawei.com>
Thu, 25 Feb 2016 01:16:06 +0000 (20:16 -0500)
JIRA:COMPASS-321
  - use ml2 config for neutron
  - path name and filename changed in liberty

Change-Id: Ifc3d841773122dd0d2f5777747a2ba01812ec5d7
Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
deploy/adapters/ansible/roles/neutron-compute/tasks/main.yml
deploy/adapters/ansible/roles/neutron-controller/tasks/neutron_config.yml

index 93d9b07..9020cca 100644 (file)
@@ -27,7 +27,7 @@
 
 - name: fix openstack neutron plugin config file
   shell: |
-    sed -i 's,plugins/openvswitch/ovs_neutron_plugin.ini,plugin.ini,g' /usr/lib/systemd/system/neutron-openvswitch-agent.service
+    sed -i 's,plugins/ml2/openvswitch_agent.ini,plugin.ini,g' /usr/lib/systemd/system/neutron-openvswitch-agent.service
     systemctl daemon-reload
   when: ansible_os_family == 'RedHat'
 
index a73e27a..d07e187 100644 (file)
@@ -7,6 +7,13 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 ---
+
+- name: fix openstack neutron plugin config file
+  shell: |
+    sed -i 's,plugins/ml2/openvswitch_agent.ini,plugin.ini,g' /usr/lib/systemd/system/neutron-openvswitch-agent.service
+    systemctl daemon-reload
+  when: ansible_os_family == 'RedHat'
+
 - name: neutron-db-manage upgrade to Juno
   shell: neutron-db-manage --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/plugins/ml2/ml2_conf.ini upgrade head
   register: result