# The functionality under test
functionality: 'bgpclustering-longevity'
+ # Set elasticsearch attribute to value 'long' for longevity jobs
+ elasticsearch-attribute: 'long'
+
# Project branches
stream:
- magnesium:
# The functionality under test
functionality: 'cs-chasing-leader-longevity'
+ # Set elasticsearch attribute to value 'long' for longevity jobs
+ elasticsearch-attribute: 'long'
+
# Project branches
stream:
- magnesium:
# The functionality under test
functionality: 'cs-partnheal-longevity'
+ # Set elasticsearch attribute to value 'long' for longevity jobs
+ elasticsearch-attribute: 'long'
+
# Project branches
stream:
- magnesium:
# The functionality under test
functionality: 'ddb-expl-lead-movement-longevity'
+ # Set elasticsearch attribute to value 'long' for longevity jobs
+ elasticsearch-attribute: 'long'
+
# Project branches
stream:
- magnesium:
# The functionality under test
functionality: 'notifications-longevity'
+ # Set elasticsearch attribute to value 'long' for longevity jobs
+ elasticsearch-attribute: 'long'
+
# Project branches
stream:
- magnesium:
# The functionality under test
functionality: 'drb-partnheal-longevity'
+ # Set elasticsearch attribute to value 'long' for longevity jobs
+ elasticsearch-attribute: 'long'
+
# Project branches
stream:
- magnesium:
# The functionality under test
functionality: 'drb-precedence-longevity'
+ # Set elasticsearch attribute to value 'long' for longevity jobs
+ elasticsearch-attribute: 'long'
+
# Project branches
stream:
- magnesium:
sm-repos: ''
sm-features: ''
+ # Elasticsearch attribute
+ elasticsearch-attribute: 'short'
+
# CSIT images configuration
openstack_rocky_system_image: ZZCI - CentOS 7 - devstack-rocky - x86_64 - 20191002-183226.559
openstack_queens_system_image: ZZCI - CentOS 7 - devstack-queens - x86_64 - 20191004-045555.756
testplan_filepath="${WORKSPACE}/test/csit/testplans/${TESTPLAN}"
fi
+ add_test="integration/test/csit/suites/integration/Create_JVM_Plots.robot" # we should always add for preparing JVM monitoring
+ echo >> "$testplan_filepath"
+ echo "${add_test}" >> "$testplan_filepath"
+
echo "Changing the testplan path..."
sed "s:integration:${WORKSPACE}:" "${testplan_filepath}" > testplan.txt
cat testplan.txt
printf "Finished running %s plans\\n" "${type}"
} # function run_plan()
+# Run scripts to support JVM monitoring.
+function add_jvm_support()
+{
+ # TODO unite short and long version to one script and parametrize the input: short/long/any number
+ if [ "${ELASTICSEARCHATTRIBUTE}" == "short" ]; then
+ run_script="${WORKSPACE}/test/csit/scripts/set_elasticsearch_attribute_short.sh"
+ else
+ run_script="${WORKSPACE}/test/csit/scripts/set_elasticsearch_attribute_long.sh"
+ fi
+ printf "Executing %s...\\n" "${run_script}"
+ # shellcheck source=${line} disable=SC1091
+ source "${run_script}"
+
+ run_script="${WORKSPACE}/test/csit/scripts/set_jvm_common_attribute.sh"
+ printf "Executing %s...\\n" "${run_script}"
+ # shellcheck source=${line} disable=SC1091
+ source "${run_script}"
+} # function add_jvm_support()
+
# Return elapsed time. Usage:
# - Call first time with no arguments and a new timer is returned.
# - Next call with the first argument as the timer and the elapsed time is returned.
ACTUALFEATURES="odl-infrautils-ready,${CONTROLLERFEATURES}"
fi
+ # Add decanter features to allow JVM monitoring
+ ACTUALFEATURES="${ACTUALFEATURES},decanter-collector-jmx,decanter-appender-elasticsearch"
+
# Some versions of jenkins job builder result in feature list containing spaces
# and ending in newline. Remove all that.
ACTUALFEATURES=$(echo "${ACTUALFEATURES}" | tr -d '\n \r')
controller-debug-map: ''
controller-scope: ''
controller-use-features-boot: ''
+ feature-elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-jdk-version:
jdkversion: '{jre}'
- distribution-karaf-version:
run_plan "script"
+add_jvm_support
+
create_configuration_script
create_startup_script
run_plan "script"
+add_jvm_support
+
create_configuration_script
create_startup_script
controller-features: '{install-features}'
controller-scope: '{controller-scope}'
controller-use-features-boot: '{use-features-boot}'
+ feature-elasticsearch-attribute: '{elasticsearch-attribute}'
- parameter:
name: integration-controller-parameters
- string:
name: CONTROLLERFEATURES
default: '{controller-features}'
- description: 'Features to install in the controller separated by comma'
+ description: |
+ Features to install in the controller separated by comma
+ (note: extra features such as decanter are inserted in install scripts)
- string:
name: CONTROLLERDEBUGMAP
The levels must be one of: ERROR, WARN, INFO, DEBUG, TRACE.
(ex. ovsdb.lib:ERROR netvirt.vpnservice:INFO)
+ - string:
+ name: ELASTICSEARCHATTRIBUTE
+ default: '{feature-elasticsearch-attribute}'
+ description: |
+ Configure the period the script should harvest JVM metrics.
+ Default is short.
+ Possible values: long (its value is 120000)
+ short (its value is 5000)
+ any number between 5000 and 120000
+
- string:
name: USEFEATURESBOOT
default: '{controller-use-features-boot}'
debug-map: '{debug-map}'
install-features: '{install-features}'
use-features-boot: 'True'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-2-type:
vm_0_count: 1
vm_0_flavor: '{odl_system_flavor}'
tools_system_flavor: 'odl-highcpu-2'
tools_system_image: 'ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20190416-121328.240'
+
#####################
# Job configuration #
#####################
debug-map: '{debug-map}'
install-features: '{install-features}'
use-features-boot: 'True'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-2-type:
vm_0_count: 1
vm_0_flavor: '{odl_system_flavor}'
debug-map: '{debug-map}'
install-features: '{install-features}'
use-features-boot: 'True'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-2-type:
vm_0_count: 1
vm_0_flavor: '{odl_system_flavor}'
debug-map: '{debug-map}'
install-features: 'odl-jolokia,{install-features}'
use-features-boot: 'True'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-2-type:
vm_0_count: 3
vm_0_flavor: '{odl_system_flavor}'
debug-map: '{debug-map}'
install-features: 'odl-jolokia,{install-features}'
use-features-boot: 'True'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-2-type:
vm_0_count: 3
vm_0_flavor: '{odl_system_flavor}'
debug-map: '{debug-map}'
install-features: 'odl-jolokia,{install-features}'
use-features-boot: 'True'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-2-type:
vm_0_count: 3
vm_0_flavor: '{odl_system_flavor}'
debug-map: '{debug-map}'
install-features: 'odl-jolokia,{install-features}'
use-features-boot: 'True'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-2-type:
vm_0_count: 3
vm_0_flavor: '{odl_system_flavor}'
debug-map: '{debug-map}'
install-features: '{install-features}'
use-features-boot: '{use-features-boot}'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-4-type:
vm_0_count: '{odl_system_count}'
vm_0_flavor: '{odl_system_flavor}'
debug-map: '{debug-map}'
install-features: '{install-features}'
use-features-boot: '{use-features-boot}'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-4-type:
vm_0_count: '{odl_system_count}'
vm_0_flavor: '{odl_system_flavor}'
debug-map: '{debug-map}'
install-features: '{install-features}'
use-features-boot: '{use-features-boot}'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-4-type:
vm_0_count: '{odl_system_count}'
vm_0_flavor: '{odl_system_flavor}'
debug-map: '{debug-map}'
install-features: '{install-features}'
use-features-boot: '{use-features-boot}'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-4-type:
vm_0_count: '{odl_system_count}'
vm_0_flavor: '{odl_system_flavor}'
debug-map: '{debug-map}'
install-features: '{install-features}'
use-features-boot: '{use-features-boot}'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-3-type:
vm_0_count: '{apex_controller_count}'
vm_0_flavor: '{apex_controller_flavor}'
debug-map: '{debug-map}'
install-features: '{install-features}'
use-features-boot: '{use-features-boot}'
+ elasticsearch-attribute: '{elasticsearch-attribute}'
- integration-stack-3-type:
vm_0_count: '{apex_controller_count}'
vm_0_flavor: '{apex_controller_flavor}'
odl-clustering-test-app,
odl-netconf-mdsal,
odl-netconf-topology,
- odl-jolokia,
- decanter-collector-jmx,
- decanter-appender-elasticsearch
+ odl-jolokia
# Robot custom options
robot-options: '-v USE_NETCONF_CONNECTOR:False'
openstack_system2_count: 2
odl_system_count: 1
enable-haproxy: 'no'
- install-features: 'odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-netvirt-openstack'
- 3node:
openstack_system2_count: 3
odl_system_count: 3
enable-haproxy: 'yes'
- install-features: 'odl-jolokia,odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-jolokia,odl-netvirt-openstack'
functionality:
- upstream-stateful
openstack_system2_count: 2
odl_system_count: 1
enable-haproxy: 'no'
- install-features: 'odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-netvirt-openstack'
- 3node:
openstack_system2_count: 3
odl_system_count: 3
enable-haproxy: 'yes'
- install-features: 'odl-jolokia,odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-jolokia,odl-netvirt-openstack'
functionality:
- upstream-stateful
openstack_system2_count: 2
odl_system_count: 1
enable-haproxy: 'no'
- install-features: 'odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-netvirt-openstack'
- 3node:
openstack_system2_count: 3
odl_system_count: 3
enable-haproxy: 'yes'
- install-features: 'odl-jolokia,odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-jolokia,odl-netvirt-openstack'
functionality:
- upstream-stateful
topology: '1node'
- install-features: 'odl-netvirt-openstack, decanter-collector-jmx, decanter-appender-elasticsearch, odl-mdsal-trace'
+ install-features: 'odl-netvirt-openstack, odl-mdsal-trace'
public-bridge: 'br-datacentre'
public-physical-network: 'datacentre'
openstack_system2_count: 2
odl_system_count: 1
enable-haproxy: 'no'
- install-features: 'odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-netvirt-openstack'
functionality:
- upgrade
openstack_system2_count: 2
odl_system_count: 1
enable-haproxy: 'no'
- install-features: 'odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-netvirt-openstack'
robot-options: '-v FAIL_ON_EXCEPTIONS:True'
- 3node:
openstack_system2_count: 3
odl_system_count: 3
enable-haproxy: 'yes'
- install-features: 'odl-jolokia,odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-jolokia,odl-netvirt-openstack'
functionality:
- upstream-stateful
openstack_system2_count: 2
odl_system_count: 1
enable-haproxy: 'no'
- install-features: 'odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-netvirt-openstack'
robot-options: '-v FAIL_ON_EXCEPTIONS:True'
- 3node:
openstack_system2_count: 3
odl_system_count: 3
enable-haproxy: 'yes'
- install-features: 'odl-jolokia,odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-jolokia,odl-netvirt-openstack'
functionality:
- upstream-stateful
openstack_system2_count: 2
odl_system_count: 1
enable-haproxy: 'no'
- install-features: 'odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-netvirt-openstack'
robot-options: '-v FAIL_ON_EXCEPTIONS:True'
- 3node:
openstack_system2_count: 3
odl_system_count: 3
enable-haproxy: 'yes'
- install-features: 'odl-jolokia,odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-jolokia,odl-netvirt-openstack'
functionality:
- upstream-stateful
openstack_system2_count: 0
odl_system_count: 1
enable-haproxy: 'no'
- install-features: 'odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-netvirt-openstack'
robot-options: '-v FAIL_ON_EXCEPTIONS:True'
- 3node:
openstack_system2_count: 1
odl_system_count: 3
enable-haproxy: 'yes'
- install-features: 'odl-jolokia,odl-netvirt-openstack,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-jolokia,odl-netvirt-openstack'
functionality:
- upstream-stateful
install-features: >
odl-openflowplugin-flow-services-rest,
odl-openflowplugin-app-bulk-o-matic,
- odl-jolokia,
- decanter-collector-jmx,
- decanter-appender-elasticsearch
+ odl-jolokia
# Robot custom options
robot-options: '-v ODL_OF_PLUGIN:lithium -v switch_count:32 -v flow_count_per_switch:2250'
# The functionality under test
functionality: 'longevity'
+ # Set elasticsearch attribute to value 'long' for longevity jobs
+ elasticsearch-attribute: 'long'
+
# Project branches
stream:
- magnesium:
# Features to install
install-features: >
odl-openflowplugin-flow-services-rest,
- odl-openflowplugin-app-table-miss-enforcer,
- decanter-collector-jmx,
- decanter-appender-elasticsearch
+ odl-openflowplugin-app-table-miss-enforcer
# Robot custom options
robot-options: '-v TEST_LENGTH:23h -v NUM_SWITCHES:16'
install-features: >
odl-openflowplugin-flow-services-rest,
odl-openflowplugin-app-bulk-o-matic,
- odl-jolokia,
- decanter-collector-jmx,
- decanter-appender-elasticsearch
+ odl-jolokia
# Robot custom options
robot-options: '-v ODL_OF_PLUGIN:lithium -v switch_count:32 -v flow_count_per_switch:3125'
# Features to install
install-features: >
odl-openflowplugin-flow-services-rest,
- odl-openflowplugin-app-table-miss-enforcer,
- decanter-collector-jmx,
- decanter-appender-elasticsearch
+ odl-openflowplugin-app-table-miss-enforcer
# Robot custom options
robot-options: ''
# Features to install
install-features: >
- odl-openflowplugin-flow-services-rest,
- decanter-collector-jmx,
- decanter-appender-elasticsearch
+ odl-openflowplugin-flow-services-rest
# Robot custom options
robot-options: ''
# Features to install
install-features: >
odl-openflowplugin-flow-services-rest,
- odl-openflowplugin-app-table-miss-enforcer,
- decanter-collector-jmx,
- decanter-appender-elasticsearch
+ odl-openflowplugin-app-table-miss-enforcer
# Robot custom options
robot-options: '-v TOPO_TREE_DEPTH:7'
scope: 'only'
# Features to install
- install-features: 'odl-ovsdb-southbound-impl-rest,decanter-collector-jmx,decanter-appender-elasticsearch'
+ install-features: 'odl-ovsdb-southbound-impl-rest'
# Robot custom options
robot-options: ''