FIX: Temporary workaround for ext-network create failure 47/14547/1
authorQiLiang <liangqi1@huawei.com>
Mon, 23 May 2016 14:56:42 +0000 (22:56 +0800)
committerQiLiang <liangqi1@huawei.com>
Tue, 24 May 2016 14:05:22 +0000 (22:05 +0800)
Change-Id: I11d50d79fa4088e83e511e6d1261baaa1de367fe
Signed-off-by: QiLiang <liangqi1@huawei.com>
deploy/adapters/ansible/roles/ext-network/tasks/main.yml
deploy/adapters/ansible/roles/neutron-controller/tasks/main.yml
deploy/adapters/ansible/roles/neutron-controller/tasks/neutron_config.yml

index 809a8fa..73fe061 100644 (file)
@@ -7,6 +7,9 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 ---
+- name: restart neutron server
+  service: name=neutron-server state=restarted enabled=yes
+
 - name: create external net
   neutron_network:
     login_username: ADMIN
index 1aaf91a..2c6891f 100644 (file)
     - 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
index d07e187..fd133f3 100644 (file)
@@ -8,13 +8,7 @@
 ##############################################################################
 ---
 
-- 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
+- name: neutron-db-manage upgrade
   shell: neutron-db-manage --config-file=/etc/neutron/neutron.conf --config-file=/etc/neutron/plugins/ml2/ml2_conf.ini upgrade head
   register: result
   run_once: True
   delay: 3
   notify:
     - restart neutron control services
-
-- 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