# FIXME: Make log size limit configurable from build parameter.
sed -ie 's/log4j.appender.out.maxFileSize=1MB/log4j.appender.out.maxFileSize=30GB/g' \${LOGCONF}
echo "log4j.logger.org.opendaylight.yangtools.yang.parser.repo.YangTextSchemaContextResolver = WARN" >> \${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}
echo "Configure java home and max memory..."
default: '{controller-features}'
description: 'Features to install in the controller separated by comma'
+- parameter:
+ name: integration-controller-debug-map
+ parameters:
+ - string:
+ name: CONTROLLERDEBUGMAP
+ default: '{controller-debug-map}'
+ description: |
+ Key:Value map of debugs to enable on the controller separated by spaces.
+ The module should not include org.opendaylight.
+ The levels must be one of: ERROR, WARN, INFO, DEBUG, TRACE.
+ (ex. ovsdb.lib:ERROR netvirt.vpnservice:INFO)
+
- parameter:
name: integration-distribution-stream
parameters:
bundle-url: '{bundle-url}'
- integration-controller-features:
controller-features: '{install-features}'
+ - integration-controller-debug-map:
+ controller-debug-map: '{debug-map}'
- integration-test-options:
test-options: '{robot-options}'
- integration-test-plan:
bundle-url: '{bundle-url}'
- integration-controller-features:
controller-features: '{install-features}'
+ - integration-controller-debug-map:
+ controller-debug-map: '{debug-map}'
- integration-test-options:
test-options: '{robot-options}'
- integration-test-plan:
# Default Robot framework options
robot-options: ''
trigger-jobs: ''
+ debug-map: ''
# Data for csit-verify jobs
# Branch for "last" version detection