Set car-people shards in scriptplan so they can be deployed per job 55/37755/5
authorLuis <ecelgp@gmail.com>
Mon, 18 Apr 2016 21:23:29 +0000 (14:23 -0700)
committerVratko Polák <vrpolak@cisco.com>
Tue, 19 Apr 2016 16:42:26 +0000 (16:42 +0000)
Change-Id: I7f86804c13193240badc676fbc473d6b4a59d93a
Signed-off-by: Luis <ecelgp@gmail.com>
csit/scriptplans/controller-clustering.txt [new file with mode: 0644]
csit/scriptplans/controller-rest-clust-cars-perf.txt [new file with mode: 0644]
csit/scripts/car_people_shard.sh [new file with mode: 0644]

diff --git a/csit/scriptplans/controller-clustering.txt b/csit/scriptplans/controller-clustering.txt
new file mode 100644 (file)
index 0000000..81b3060
--- /dev/null
@@ -0,0 +1,2 @@
+# Place the scripts in run order:
+integration/test/csit/scripts/car_people_shard.sh
diff --git a/csit/scriptplans/controller-rest-clust-cars-perf.txt b/csit/scriptplans/controller-rest-clust-cars-perf.txt
new file mode 100644 (file)
index 0000000..81b3060
--- /dev/null
@@ -0,0 +1,2 @@
+# Place the scripts in run order:
+integration/test/csit/scripts/car_people_shard.sh
diff --git a/csit/scripts/car_people_shard.sh b/csit/scripts/car_people_shard.sh
new file mode 100644 (file)
index 0000000..6d9e6d1
--- /dev/null
@@ -0,0 +1,22 @@
+echo "Add car-people shards file"
+cat > ${WORKSPACE}/custom_shard_config.txt <<EOF
+FRIENDLY_MODULE_NAMES[1]='inventory'
+MODULE_NAMESPACES[1]='urn:opendaylight:inventory'
+FRIENDLY_MODULE_NAMES[2]='topology'
+MODULE_NAMESPACES[2]='urn:TBD:params:xml:ns:yang:network-topology'
+FRIENDLY_MODULE_NAMES[3]='toaster'
+MODULE_NAMESPACES[3]='http://netconfcentral.org/ns/toaster'
+FRIENDLY_MODULE_NAMES[4]='car'
+MODULE_NAMESPACES[4]='urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car'
+FRIENDLY_MODULE_NAMES[5]='people'
+MODULE_NAMESPACES[5]='urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:people'
+FRIENDLY_MODULE_NAMES[6]='car-people'
+MODULE_NAMESPACES[6]='urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car-people'
+EOF
+
+for i in `seq 1 ${NUM_ODL_SYSTEM}`
+do
+    CONTROLLERIP=ODL_SYSTEM_${i}_IP
+    echo "Copy shard config to member-${i} with IP address ${!CONTROLLERIP}"
+    scp ${WORKSPACE}/custom_shard_config.txt ${!CONTROLLERIP}:/tmp/
+done