X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Finclude-raw-integration-configure-clustering.sh;h=d11a9e4740a045c16fe4167ed4842059c20f8c53;hb=a6649e2e7db9558b11a88a3afe5d5eb714448425;hp=afd6bed748e0b949fa32173086e5532bc5eb0d67;hpb=60a7589314f0aeefb3328b7b083b19cadfaedf94;p=releng%2Fbuilder.git diff --git a/jjb/integration/include-raw-integration-configure-clustering.sh b/jjb/integration/include-raw-integration-configure-clustering.sh index afd6bed74..d11a9e474 100644 --- a/jjb/integration/include-raw-integration-configure-clustering.sh +++ b/jjb/integration/include-raw-integration-configure-clustering.sh @@ -1,3 +1,9 @@ +#@IgnoreInspection BashAddShebang +# Activate robotframework virtualenv +# ${ROBOT_VENV} comes from the include-raw-integration-install-robotframework.sh +# script. +source ${ROBOT_VENV}/bin/activate + echo "#################################################" echo "## Configure Cluster and Start ##" echo "#################################################" @@ -5,7 +11,6 @@ echo "#################################################" AKKACONF=/tmp/${BUNDLEFOLDER}/configuration/initial/akka.conf MODULESCONF=/tmp/${BUNDLEFOLDER}/configuration/initial/modules.conf MODULESHARDSCONF=/tmp/${BUNDLEFOLDER}/configuration/initial/module-shards.conf -BGPCONF=/tmp/${BUNDLEFOLDER}/system/org/opendaylight/bgpcep/bgp-controller-config/*/bgp-controller-config-*-config-example.xml CONTROLLERMEM="2048m" if [ ${CONTROLLERSCOPE} == 'all' ]; then @@ -43,7 +48,7 @@ echo ${nodes_list} # Run script plan in case it exists if [ -f ${WORKSPACE}/test/csit/scriptplans/${TESTPLAN} ]; then echo "scriptplan exists!!!" - echo "Changing the scriptplan path..." + echo "Reading the scriptplan:" cat ${WORKSPACE}/test/csit/scriptplans/${TESTPLAN} | sed "s:integration:${WORKSPACE}:" > scriptplan.txt cat scriptplan.txt for line in $( egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' scriptplan.txt ); do @@ -75,7 +80,7 @@ echo "Configuring the log..." LOGCONF=/tmp/${BUNDLEFOLDER}/etc/org.ops4j.pax.logging.cfg sed -ie 's/log4j.appender.out.maxBackupIndex=10/log4j.appender.out.maxBackupIndex=1/g' \${LOGCONF} # FIXME: Make log size limit configurable from build parameter. -sed -ie 's/log4j.appender.out.maxFileSize=1MB/log4j.appender.out.maxFileSize=100GB/g' \${LOGCONF} +sed -ie 's/log4j.appender.out.maxFileSize=1MB/log4j.appender.out.maxFileSize=30GB/g' \${LOGCONF} cat \${LOGCONF} if [ "${ODL_ENABLE_L3_FWD}" == "yes" ]; then @@ -112,15 +117,6 @@ fi echo "Configuring cluster" /tmp/${BUNDLEFOLDER}/bin/configure_cluster.sh \$1 ${nodes_list} -echo "Update bgp configuration in 41-bgp-example.xml" -sed -i -e "s/example-bgp-rib/example-bgp-rib-\$1/g" ${BGPCONF} -sed -i -e "s/example-ipv4-topology/example-ipv4-topology-\$1/g" ${BGPCONF} -sed -i -e "s/example-ipv6-topology/example-ipv6-topology-\$1/g" ${BGPCONF} -sed -i -e "s/example-linkstate-topology/example-linkstate-topology-\$1/g" ${BGPCONF} - -echo "Dump ${BGPCONF}" -cat ${BGPCONF} - echo "Dump akka.conf" cat ${AKKACONF} @@ -135,6 +131,9 @@ EOF # Create the startup script to be run on controllers. cat > ${WORKSPACE}/startup-script.sh < configplan.txt + cat configplan.txt + for line in $( egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' configplan.txt ); do + echo "Executing ${line}..." + source ${line} + done +fi + # Copy over the startup script to each controller and execute it. for i in `seq 1 ${NUM_ODL_SYSTEM}` do