summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-05-23 22:56:42 +0800
committerQiLiang <liangqi1@huawei.com>2016-05-24 22:05:22 +0800
commit750feebcb5a6824ee9a4aed0aec1180172aa37f3 (patch)
tree9a860966067218ff0fb2764f17312a452fe544a6 /deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml
parent0ed4e93eb256c60a326d233dbf3259e123caf2d1 (diff)
FIX: Temporary workaround for ext-network create failure
Change-Id: I11d50d79fa4088e83e511e6d1261baaa1de367fe Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml')
-rw-r--r--deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml b/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml
index 1aaf91a3..2c6891f3 100644
--- a/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml
@@ -20,4 +20,16 @@
- neutron_config
- neutron
+- 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: restart first neutron-server
+ service: name=neutron-server state=restarted enabled=yes
+
+- name: restart other neutron-server
+ service: name=neutron-server state=restarted enabled=yes
+
- meta: flush_handlers