bugfix: odl cluster function problem 59/7859/1
authorchenshuai@huawei.com <chenshuai@huawei.com>
Mon, 25 Jan 2016 08:54:54 +0000 (16:54 +0800)
committershuai chen <chenshuai@huawei.com>
Mon, 25 Jan 2016 09:45:52 +0000 (09:45 +0000)
JIRA:COMPASS-285

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

deploy/adapters/ansible/roles/odl_cluster/tasks/main.yml
deploy/adapters/ansible/roles/odl_cluster/tasks/odl_controller.yml
deploy/conf/virtual_cluster_opencontrail.yml [new file with mode: 0644]

index 1eb517b..3bb9d9b 100755 (executable)
@@ -9,4 +9,6 @@
   include: openvswitch.yml
   when: groups['odl']|length !=0 and inventory_hostname not in groups['odl']
 
-
+- name: Wait 5 minutes after odl deployment
+  shell: sleep 300
+  when: groups['odl']|length !=0
index 147338c..6d43b9e 100755 (executable)
 ##########################################################################################################
 #################################   OpenDayLight Cluster Configuration   #################################
 ##########################################################################################################
-- name: create initial directory
-  shell: >
-    mkdir -p {{ odl_home }}/configuration/initial;
+#- name: create initial directory
+#  shell: >
+#    mkdir -p {{ odl_home }}/configuration/initial;
 
-- name: create akka config
-  template:
-    src: akka.conf
-    dest: "{{ odl_home }}/configuration/initial/akka.conf"
+#- name: create akka config
+#  template:
+#    src: akka.conf
+#    dest: "{{ odl_home }}/configuration/initial/akka.conf"
 #  notify:
 #    - restart odl service
 
 
-- name: create module-shards config
-  template:
-    src: module-shards.conf
-    dest: "{{ odl_home }}/configuration/initial/module-shards.conf"
+#- name: create module-shards config
+#  template:
+#    src: module-shards.conf
+#    dest: "{{ odl_home }}/configuration/initial/module-shards.conf"
 #  notify:
 #    - restart odl service
 
diff --git a/deploy/conf/virtual_cluster_opencontrail.yml b/deploy/conf/virtual_cluster_opencontrail.yml
new file mode 100644 (file)
index 0000000..56240f3
--- /dev/null
@@ -0,0 +1,25 @@
+TYPE: virtual
+FLAVOR: cluster
+
+hosts:
+  - name: host1
+    roles:
+      - controller
+      - ha
+      - opencontrail
+
+  - name: host2
+    roles:
+      - compute
+
+  - name: host3
+    roles:
+      - compute
+
+  - name: host4
+    roles:
+      - compute
+
+  - name: host5
+    roles:
+      - compute