Support os-odl-nofeature-* as new scenarios 19/38719/3
authorZhijiang Hu <hu.zhijiang@zte.com.cn>
Fri, 4 Aug 2017 04:50:09 +0000 (12:50 +0800)
committerZhijiang Hu <hu.zhijiang@zte.com.cn>
Fri, 4 Aug 2017 05:07:06 +0000 (13:07 +0800)
Rename all scenarios with "odl_l3" in their name in Euphrates to
just "odl".

Daisy will keep "odl_l3" and "odl_l2" (in code, not for user)
for further reference.

Change-Id: Ib762dd808d4f9467b0e6827b8bbed6d9df7e0e0e
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
ci/deploy/deploy.sh
deploy/scenario/ha_odl_nofeature_scenario.yaml [new file with mode: 0644]
deploy/scenario/no-ha_odl_nofeature_scenario.yaml [new file with mode: 0644]
deploy/scenario/scenario.yaml
deploy/tempest.py
deploy/utils.py

index 8dbda71..f6299a1 100755 (executable)
@@ -64,7 +64,8 @@ DRY_RUN=0
 IS_BARE=1
 VM_MULTINODE=("computer01" "computer02" "controller02" "controller03" "controller01")
 VALID_DEPLOY_SCENARIO=("os-nosdn-nofeature-noha" "os-nosdn-nofeature-ha" "os-odl_l3-nofeature-noha"
-                       "os-odl_l2-nofeature-noha" "os-odl_l3-nofeature-ha" "os-odl_l2-nofeature-ha")
+                       "os-odl_l2-nofeature-noha" "os-odl_l3-nofeature-ha" "os-odl_l2-nofeature-ha"
+                       "os-odl-nofeature-noha" "os-odl-nofeature-ha")
 
 #
 # END of variables to customize
diff --git a/deploy/scenario/ha_odl_nofeature_scenario.yaml b/deploy/scenario/ha_odl_nofeature_scenario.yaml
new file mode 100644 (file)
index 0000000..59e16c4
--- /dev/null
@@ -0,0 +1,50 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Coreporation and others.
+# hu.zhijiang@zte.com.cn
+# sun.jing22@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+##############################################################################
+# deployment configuration meta-data
+deployment-scenario-metadata:
+   title: ODL-L3 HA deployment
+   version: 0.0.1
+   created: Jun 8 2017
+   comment:
+
+##############################################################################
+# Stack extentions are opnfv added value features
+stack-extensions:
+  - module: opendaylight
+    module-config:
+      - enable_l3_odl:
+          value: true
+
+##############################################################################
+# By editing the override-config sections below, you can override arbitrary
+# configuration name-space settings
+deploy-override-config:
+  hosts:
+  - name: 'controller01'
+    roles:
+      - 'CONTROLLER_LB'
+    template: 'templates/virtual_environment/vms/controller.xml'
+  - name: 'controller02'
+    roles:
+      - 'CONTROLLER_LB'
+    template: 'templates/virtual_environment/vms/controller.xml'
+  - name: 'controller03'
+    roles:
+      - 'CONTROLLER_LB'
+    template: 'templates/virtual_environment/vms/controller.xml'
+  - name: 'computer01'
+    roles:
+      - 'COMPUTER'
+    template: 'templates/virtual_environment/vms/computer.xml'
+  - name: 'computer02'
+    roles:
+      - 'COMPUTER'
+    template: 'templates/virtual_environment/vms/computer.xml'
\ No newline at end of file
diff --git a/deploy/scenario/no-ha_odl_nofeature_scenario.yaml b/deploy/scenario/no-ha_odl_nofeature_scenario.yaml
new file mode 100644 (file)
index 0000000..e91acc6
--- /dev/null
@@ -0,0 +1,46 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Coreporation and others.
+# hu.zhijiang@zte.com.cn
+# sun.jing22@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+##############################################################################
+# deployment configuration meta-data
+deployment-scenario-metadata:
+   title: ODL-L3 NO-HA deployment
+   version: 0.0.1
+   created: Jun 8 2017
+   comment:
+
+##############################################################################
+# Stack extentions are opnfv added value features
+stack-extensions:
+  - module: opendaylight
+    module-config:
+      - enable_l3_odl:
+          value: true
+
+##############################################################################
+# By editing the override-config sections below, you can override arbitrary
+# configuration name-space settings
+deploy-override-config:
+  hosts:
+  - name: 'controller01'
+    roles:
+      - 'CONTROLLER_LB'
+    template: 'templates/virtual_environment/vms/controller.xml'
+  - name: 'computer01'
+    roles:
+      - 'COMPUTER'
+    template: 'templates/virtual_environment/vms/computer.xml'
+  - name: 'computer02'
+    roles:
+      - 'COMPUTER'
+    template: 'templates/virtual_environment/vms/computer.xml'
+  - name: 'computer03'
+    roles:
+      - 'COMPUTER'
+    template: 'templates/virtual_environment/vms/computer.xml'
\ No newline at end of file
index 8186248..1b04549 100644 (file)
@@ -13,6 +13,8 @@
 # controler: nosdn|odl|onos|ocl|...
 # feaure: nofeature | [vlan]_[kvm]_[ovs]_[vlan]_....
 # mode: ha|noha
+# NOTE: os-odl-nofeature-noha = os-odl_l3-nofeature-noha
+#       os-odl-nofeature-ha = os-odl_l3-nofeature-ha
 ##############################################################################
 
 os-nosdn-nofeature-ha:
@@ -31,4 +33,10 @@ os-odl_l2-nofeature-ha:
   configfile: ha_odl-l2_nofeature_scenario.yaml
 
 os-odl_l2-nofeature-noha:
-  configfile: no-ha_odl-l2_nofeature_scenario.yaml
\ No newline at end of file
+  configfile: no-ha_odl-l2_nofeature_scenario.yaml
+
+os-odl-nofeature-ha:
+  configfile: ha_odl_nofeature_scenario.yaml
+
+os-odl-nofeature-noha:
+  configfile: no-ha_odl_nofeature_scenario.yaml
index 3c1a6c7..b154e72 100644 (file)
@@ -103,10 +103,14 @@ def prepare_install():
                 protocol_type = None
             enable_cinder_backend(cluster_id, service_name,
                                   ceph_disk_name, protocol_type)
-            if 'scenario' in conf and 'odl_l3' in conf['scenario']:
-                enable_opendaylight(cluster_id, 'odl_l3')
-            elif 'scenario' in conf and 'odl_l2' in conf['scenario']:
-                enable_opendaylight(cluster_id, 'odl_l2')
+
+            if 'scenario' in conf:
+                if 'odl_l3' in conf['scenario'] or \
+                    'odl' in conf['scenario']:
+                    enable_opendaylight(cluster_id, 'odl_l3')
+                elif 'odl_l2' in conf['scenario']:
+                    enable_opendaylight(cluster_id, 'odl_l2')
+
             if not isbare:
                 install_os_for_vm_step1(cluster_id)
             else:
index bb5535f..55fbc53 100644 (file)
@@ -24,7 +24,9 @@ valid_scenario_list = ['os-nosdn-nofeature-noha',
                        'os-odl_l2-nofeature-noha',
                        'os-nosdn-nofeature-ha',
                        'os-odl_l3-nofeature-ha',
-                       'os-odl_l2-nofeature-ha']
+                       'os-odl_l2-nofeature-ha',
+                       'os-odl-nofeature-noha',
+                       'os-odl-nofeature-ha']
 
 
 def get_logger():