X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fintegration%2Fintegration-configure-clustering.sh;h=ee18f254061a97139c1158faee4ee820f26b3810;hb=cb52af35b0fa1272dec4181513fd3227b4df9f4c;hp=00745aa38c133f393fd02a0a0ab9002f19482a0c;hpb=ef1c25f621317728efa028a141bda654715da651;p=releng%2Fbuilder.git diff --git a/jjb/integration/integration-configure-clustering.sh b/jjb/integration/integration-configure-clustering.sh index 00745aa38..ee18f2540 100644 --- a/jjb/integration/integration-configure-clustering.sh +++ b/jjb/integration/integration-configure-clustering.sh @@ -83,32 +83,15 @@ fi sed -ie "s%\(featuresRepositories=\|featuresRepositories =\)%featuresRepositories = mvn:org.opendaylight.integration/\${FEATURE_TEST_STRING}/${BUNDLEVERSION}/xml/features,mvn:org.apache.karaf.decanter/apache-karaf-decanter/1.0.0/xml/features,%g" ${FEATURESCONF} cat ${FEATURESCONF} -echo "Configuring the log..." -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=30GB/g' ${LOGCONF} -# Add custom logging levels -# CONTROLLERDEBUGMAP is expected to be a key:value map of space separated values like "module:level module2:level2" -# where module is abbreviated and does not include org.opendaylight -unset IFS -if [ -n "${CONTROLLERDEBUGMAP}" ]; then - for kv in ${CONTROLLERDEBUGMAP}; do - module=\${kv%%:*} - level=\${kv#*:} - if [ -n \${module} ] && [ -n \${level} ]; then - echo "log4j.logger.org.opendaylight.\${module} = \${level}" >> \${LOGCONF} - fi - done -fi -cat ${LOGCONF} - if [ "${ODL_ENABLE_L3_FWD}" == "yes" ]; then echo "Enable the l3.fwd in custom.properties.." echo "ovsdb.l3.fwd.enabled=yes" >> ${CUSTOMPROP} cat ${CUSTOMPROP} fi -set_java_vars "${JAVA_HOME}" +configure_karaf_log "${KARAF_VERSION}" "${CONTROLLERDEBUGMAP}" + +set_java_vars "${JAVA_HOME}" "${CONTROLLERMEM}" "${MEMCONF}" # Copy shard file if exists if [ -f /tmp/custom_shard_config.txt ]; then