blob: 149cadb2358287abdf225d8d434c17b8e8b93bc2 [file] [log] [blame]
Matteo Scandolo4b006ae2020-11-09 16:14:40 -08001// Copyright 2019-present Open Networking Foundation
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// deploy VOLTHA using kind-voltha and performs a scale test
16
17pipeline {
18
19 /* no label, executor is determined by JJB */
20 agent {
21 label "${params.buildNode}"
22 }
23 options {
Matteo Scandolof7ca6312020-11-16 15:57:15 -080024 timeout(time: 120, unit: 'MINUTES')
Matteo Scandolo4b006ae2020-11-09 16:14:40 -080025 }
26 environment {
27 JENKINS_NODE_COOKIE="dontKillMe" // do not kill processes after the build is done
28 KUBECONFIG="$HOME/.kube/config"
29 SSHPASS="karaf"
30 PATH="$PATH:$WORKSPACE/kind-voltha/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
31 SCHEDULE_ON_CONTROL_NODES="yes"
32 FANCY=0
33 WAIT_ON_DOWN="yes"
34 WITH_SIM_ADAPTERS="no"
35 WITH_RADIUS="${withRadius}"
36 WITH_BBSIM="yes"
37 LEGACY_BBSIM_INDEX="no"
38 DEPLOY_K8S="no"
39 CONFIG_SADIS="external"
40 WITH_KAFKA="yes"
41 WITH_ETCD="yes"
42 VOLTHA_ETCD_PORT=9999
43
44 // VOLTHA namespaces are defined at runtime depending on the stack we're installing
45 // VOLTHA_NS="default"
46 // ADAPTER_NS="default"
47 // BBSIM_NS="default"
48 INFRA_NS="infra"
49
50 // configurable options
51 WITH_EAPOL="${withEapol}"
52 WITH_DHCP="${withDhcp}"
53 WITH_IGMP="${withIgmp}"
54 VOLTHA_LOG_LEVEL="${logLevel}"
55 NUM_OF_BBSIM="${olts}"
56 NUM_OF_OPENONU="${openonuAdapterReplicas}"
57 NUM_OF_ONOS="${onosReplicas}"
58 NUM_OF_ATOMIX="${atomixReplicas}"
59 NUM_OF_KAFKA="${kafkaReplicas}"
60 NUM_OF_ETCD="${etcdReplicas}"
61 WITH_PPROF="${withProfiling}"
62 EXTRA_HELM_FLAGS="${extraHelmFlags} " // note that the trailing space is required to separate the parameters from appends done later
63 VOLTHA_CHART="${volthaChart}"
64 VOLTHA_BBSIM_CHART="${bbsimChart}"
65 VOLTHA_ADAPTER_OPEN_OLT_CHART="${openoltAdapterChart}"
66 VOLTHA_ADAPTER_OPEN_ONU_CHART="${openonuAdapterChart}"
67 ONOS_CLASSIC_CHART="${onosChart}"
68 RADIUS_CHART="${radiusChart}"
69
70 APPS_TO_LOG="etcd kafka onos-onos-classic adapter-open-onu adapter-open-olt rw-core ofagent bbsim radius"
71 LOG_FOLDER="$WORKSPACE/logs"
72
73 GERRIT_PROJECT="${GERRIT_PROJECT}"
74 }
75
76 stages {
77 stage ('Cleanup') {
78 steps {
79 timeout(time: 11, unit: 'MINUTES') {
80 sh returnStdout: false, script: """
Matteo Scandolobe823242020-11-20 13:48:13 -080081 helm repo add stable https://charts.helm.sh/stable
Matteo Scandolo4b006ae2020-11-09 16:14:40 -080082 helm repo add onf https://charts.opencord.org
83 helm repo add cord https://charts.opencord.org
84 helm repo add onos https://charts.onosproject.org
85 helm repo add atomix https://charts.atomix.io
86 helm repo add bbsim-sadis https://ciena.github.io/bbsim-sadis-server/charts
87 helm repo update
88
89 # removing ETCD port forward
90 P_ID="\$(ps e -ww -A | grep "_TAG=etcd-port-forward" | grep -v grep | awk '{print \$1}')"
91 if [ -n "\$P_ID" ]; then
92 kill -9 \$P_ID
93 fi
94
Matteo Scandolo9fe8cad2020-11-13 12:54:19 -080095 NAMESPACES="voltha1 voltha2 infra default"
96 for NS in \$NAMESPACES
Matteo Scandolo4b006ae2020-11-09 16:14:40 -080097 do
Matteo Scandolo9fe8cad2020-11-13 12:54:19 -080098 for hchart in \$(helm list -n \$NS -q | grep -E -v 'docker-registry|kafkacat');
99 do
100 echo "Purging chart: \${hchart}"
101 helm delete -n \$NS "\${hchart}"
102 done
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800103 done
104 bash /home/cord/voltha-scale/wait_for_pods.sh
105
106 test -e $WORKSPACE/kind-voltha/voltha && cd $WORKSPACE/kind-voltha && ./voltha down
107
Matteo Scandolobe823242020-11-20 13:48:13 -0800108 ps aux | grep port-forw | grep -v grep | awk '{print \$2}' | xargs --no-run-if-empty kill -9
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800109
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800110 cd $WORKSPACE
111 rm -rf $WORKSPACE/*
112 """
113 }
114 }
115 }
116 stage('Clone kind-voltha') {
117 steps {
118 checkout([
119 $class: 'GitSCM',
120 userRemoteConfigs: [[
121 url: "https://gerrit.opencord.org/kind-voltha",
122 refspec: "${kindVolthaChange}"
123 ]],
124 branches: [[ name: "master", ]],
125 extensions: [
126 [$class: 'WipeWorkspace'],
127 [$class: 'RelativeTargetDirectory', relativeTargetDir: "kind-voltha"],
128 [$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false],
129 ],
130 ])
131 script {
132 sh(script:"""
133 if [ '${kindVolthaChange}' != '' ] ; then
134 cd $WORKSPACE/kind-voltha;
135 git fetch https://gerrit.opencord.org/kind-voltha ${kindVolthaChange} && git checkout FETCH_HEAD
136 fi
137 """)
138 }
139 }
140 }
141 stage('Clone voltha-system-tests') {
142 steps {
143 checkout([
144 $class: 'GitSCM',
145 userRemoteConfigs: [[
146 url: "https://gerrit.opencord.org/voltha-system-tests",
147 refspec: "${volthaSystemTestsChange}"
148 ]],
149 branches: [[ name: "${release}", ]],
150 extensions: [
151 [$class: 'WipeWorkspace'],
152 [$class: 'RelativeTargetDirectory', relativeTargetDir: "voltha-system-tests"],
153 [$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false],
154 ],
155 ])
156 script {
157 sh(script:"""
158 if [ '${volthaSystemTestsChange}' != '' ] ; then
159 cd $WORKSPACE/voltha-system-tests;
160 git fetch https://gerrit.opencord.org/voltha-system-tests ${volthaSystemTestsChange} && git checkout FETCH_HEAD
161 fi
162 """)
163 }
164 }
165 }
166 stage('Build patch') {
167 when {
168 expression {
169 return params.GERRIT_PROJECT
170 }
171 }
172 steps {
173 sh """
174 git clone https://\$GERRIT_HOST/\$GERRIT_PROJECT
175 cd \$GERRIT_PROJECT
176 git fetch https://\$GERRIT_HOST/\$GERRIT_PROJECT \$GERRIT_REFSPEC && git checkout FETCH_HEAD
177
178 DOCKER_REGISTRY=${dockerRegistry}/ DOCKER_REPOSITORY=voltha/ DOCKER_TAG=voltha-scale make docker-build
179 DOCKER_REGISTRY=${dockerRegistry}/ DOCKER_REPOSITORY=voltha/ DOCKER_TAG=voltha-scale make docker-push
180 """
181 }
182 }
183 stage('Deploy common infrastructure') {
184 // includes monitoring, kafka, etcd
185 steps {
186 sh '''
187 if [ ${withMonitoring} = true ] ; then
188 helm install nem-monitoring cord/nem-monitoring \
189 -f $HOME/voltha-scale/grafana.yaml \
190 --set prometheus.alertmanager.enabled=false,prometheus.pushgateway.enabled=false \
191 --set kpi_exporter.enabled=false,dashboards.xos=false,dashboards.onos=false,dashboards.aaa=false,dashboards.voltha=false
192 fi
193
194 # TODO download this file from https://github.com/opencord/helm-charts/blob/master/scripts/wait_for_pods.sh
195 bash /home/cord/voltha-scale/wait_for_pods.sh
196 '''
197 }
198 }
199 stage('Deploy VOLTHA infrastructure') {
200 steps {
201 sh returnStdout: false, script: '''
202 cd $WORKSPACE/kind-voltha/
203
Matteo Scandolof6656562020-11-16 14:45:44 -0800204 export ETCD_CHART=$HOME/teone/helm-charts/etcd
205 export KAFKA_CHART=$HOME/teone/helm-charts/kafka
Matteo Scandolob28a97b2020-11-13 10:58:32 -0800206
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800207 # KAFKA config
Matteo Scandolof6656562020-11-16 14:45:44 -0800208 export NUM_OF_KAFKA=${kafkaReplicas}
209 export EXTRA_HELM_FLAGS+=' --set prometheus.kafka.enabled=true,prometheus.operator.enabled=true,prometheus.jmx.enabled=true,prometheus.operator.serviceMonitor.namespace=default '
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800210
211 # ETCD config
Matteo Scandolof6656562020-11-16 14:45:44 -0800212 export EXTRA_HELM_FLAGS+=" --set memoryMode=${inMemoryEtcdStorage} "
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800213
214 NAME=infra JUST_INFRA=y ./voltha up
215
216 # Forward the ETCD port onto $VOLTHA_ETCD_PORT
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800217 _TAG=etcd-port-forward kubectl -n \$INFRA_NS port-forward --address 0.0.0.0 -n default service/etcd $VOLTHA_ETCD_PORT:2379&
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800218 '''
219 }
220 }
221 stage('Deploy Voltha') {
222 steps {
223 deploy_voltha_stacks(params.volthaStacks)
224 }
225 }
226 stage('Start logging') {
227 steps {
228 sh returnStdout: false, script: '''
229 # start logging with kail
230
231 mkdir -p $LOG_FOLDER
232
233 list=($APPS_TO_LOG)
234 for app in "${list[@]}"
235 do
236 echo "Starting logs for: ${app}"
237 _TAG=kail-$app kail -l app=$app --since 1h > $LOG_FOLDER/$app.log&
238 done
239 '''
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800240 }
241 }
242 stage('Configuration') {
243 steps {
244 script {
245 sh returnStdout: false, script: """
246 #Setting link discovery
247 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 cfg set org.onosproject.provider.lldp.impl.LldpLinkProvider enabled ${withLLDP}
248
249 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 cfg set org.onosproject.net.flow.impl.FlowRuleManager allowExtraneousRules true
250 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 cfg set org.onosproject.net.flow.impl.FlowRuleManager importExtraneousRules true
251
252
253 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 cfg set org.onosproject.net.flowobjective.impl.InOrderFlowObjectiveManager accumulatorMaxBatchMillis 1000
254
255 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 cfg set org.onosproject.net.flowobjective.impl.InOrderFlowObjectiveManager accumulatorMaxIdleMillis 500
256
257 ONOSES=\$((\$NUM_OF_ONOS - 1))
258 for i in \$(seq 0 \$ONOSES); do
259 INSTANCE="onos-onos-classic-\$i"
260
261 #Setting LOG level to ${logLevel}
262 kubectl -n \$INFRA_NS exec \$INSTANCE -- bash /root/onos/${karafHome}/bin/client log:set ${logLevel} org.onosproject
263 kubectl -n \$INFRA_NS exec \$INSTANCE -- bash /root/onos/${karafHome}/bin/client log:set ${logLevel} org.opencord
264
Matteo Scandolod4064492020-11-13 10:48:30 -0800265 kubectl -n \$INFRA_NS exec \$INSTANCE -- bash /root/onos/${karafHome}/bin/client log:set DEBUG org.opencord.dhcpl2relay
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800266 done
267
268 # Set Flows/Ports/Meters poll frequency
269 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 cfg set org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider flowPollFrequency ${onosStatInterval}
270 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 cfg set org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider portStatsPollFrequency ${onosStatInterval}
271
272 if [ ${withFlows} = false ]; then
273 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 app deactivate org.opencord.olt
274 fi
275
276 if [ ${withMibTemplate} = true ] ; then
277 rm -f BBSM-12345123451234512345-00000000000001-v1.json
278 wget https://raw.githubusercontent.com/opencord/voltha-openonu-adapter/master/templates/BBSM-12345123451234512345-00000000000001-v1.json
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800279 cat BBSM-12345123451234512345-00000000000001-v1.json | kubectl -n \$INFRA_NS exec -it \$(kubectl -n \$INFRA_NS get pods -l app=etcd | awk 'NR==2{print \$1}') -- etcdctl put service/voltha/omci_mibs/templates/BBSM/12345123451234512345/00000000000001
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800280 fi
281
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800282 if [ ${withPcap} = true ] && [ ${volthaStacks} -eq 1 ] ; then
283 # FIXME ofagent pcap has to be replicated per stack
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800284 # Start the tcp-dump in ofagent
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800285 export OF_AGENT=\$(kubectl -n \$INFRA_NS get pods -l app=ofagent -o name)
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800286 kubectl exec \$OF_AGENT -- apk update
287 kubectl exec \$OF_AGENT -- apk add tcpdump
288 kubectl exec \$OF_AGENT -- mv /usr/sbin/tcpdump /usr/bin/tcpdump
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800289 _TAG=ofagent-tcpdump kubectl -n \$INFRA_NS exec \$OF_AGENT -- tcpdump -nei eth0 -w out.pcap&
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800290
291 # Start the tcp-dump in radius
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800292 export RADIUS=\$(kubectl -n \$INFRA_NS get pods -l app=radius -o name)
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800293 kubectl exec \$RADIUS -- apt-get update
294 kubectl exec \$RADIUS -- apt-get install -y tcpdump
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800295 _TAG=radius-tcpdump kubectl -n \$INFRA_NS exec \$RADIUS -- tcpdump -w out.pcap&
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800296
297 # Start the tcp-dump in ONOS
298 for i in \$(seq 0 \$ONOSES); do
299 INSTANCE="onos-onos-classic-\$i"
300 kubectl exec \$INSTANCE -- apt-get update
301 kubectl exec \$INSTANCE -- apt-get install -y tcpdump
302 kubectl exec \$INSTANCE -- mv /usr/sbin/tcpdump /usr/bin/tcpdump
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800303 _TAG=\$INSTANCE kubectl -n \$INFRA_NS exec \$INSTANCE -- /usr/bin/tcpdump -nei eth0 port 1812 -w out.pcap&
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800304 done
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800305 else
306 echo "PCAP not supported for multiple VOLTHA stacks"
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800307 fi
308 """
309 }
310 }
311 }
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800312 stage('Setup Test') {
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800313 steps {
314 sh '''
315 mkdir -p $WORKSPACE/RobotLogs
316 cd $WORKSPACE/voltha-system-tests
317 make vst_venv
318 '''
319 sh '''
320 if [ ${withProfiling} = true ] ; then
321 mkdir -p $LOG_FOLDER/pprof
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800322 cat << EOF > $WORKSPACE/pprof.sh
323timestamp() {
324 date +"%T"
325}
326
327i=0
328while [[ true ]]; do
329 ((i++))
330 ts=$(timestamp)
331 go tool pprof -png http://127.0.0.1:6060/debug/pprof/heap > $LOG_FOLDER/pprof/rw-core-heap-\\$i-\\$ts.png
332 go tool pprof -png http://127.0.0.1:6060/debug/pprof/goroutine > $LOG_FOLDER/pprof/rw-core-goroutine-\\$i-\\$ts.png
333 curl -o $LOG_FOLDER/pprof/rw-core-profile-\\$i-\\$ts.pprof http://127.0.0.1:6060/debug/pprof/profile?seconds=10
334 go tool pprof -png $LOG_FOLDER/pprof/rw-core-profile-\\$i-\\$ts.pprof > $LOG_FOLDER/pprof/rw-core-profile-\\$i-\\$ts.png
335
336 go tool pprof -png http://127.0.0.1:6061/debug/pprof/heap > $LOG_FOLDER/pprof/openolt-heap-\\$i-\\$ts.png
337 go tool pprof -png http://127.0.0.1:6061/debug/pprof/goroutine > $LOG_FOLDER/pprof/openolt-goroutine-\\$i-\\$ts.png
338 curl -o $LOG_FOLDER/pprof/openolt-profile-\\$i-\\$ts.pprof http://127.0.0.1:6061/debug/pprof/profile?seconds=10
339 go tool pprof -png $LOG_FOLDER/pprof/openolt-profile-\\$i-\\$ts.pprof > $LOG_FOLDER/pprof/openolt-profile-\\$i-\\$ts.png
340
341 go tool pprof -png http://127.0.0.1:6062/debug/pprof/heap > $LOG_FOLDER/pprof/ofagent-heap-\\$i-\\$ts.png
342 go tool pprof -png http://127.0.0.1:6062/debug/pprof/goroutine > $LOG_FOLDER/pprof/ofagent-goroutine-\\$i-\\$ts.png
343 curl -o $LOG_FOLDER/pprof/ofagent-profile-\\$i-\\$ts.pprof http://127.0.0.1:6062/debug/pprof/profile?seconds=10
344 go tool pprof -png $LOG_FOLDER/pprof/ofagent-profile-\\$i-\\$ts.pprof > $LOG_FOLDER/pprof/ofagent-profile-\\$i-\\$ts.png
345
346 sleep 10
347done
348EOF
349
350 _TAG="pprof"
351 _TAG=$_TAG bash $WORKSPACE/pprof.sh &
352 fi
353 '''
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800354 // bbsim-sadis server takes a while to cache the subscriber entries
355 // wait for that before starting the tests
356 sleep(60)
357 }
358 }
359 stage('Run Test') {
360 steps {
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800361 test_voltha_stacks(params.volthaStacks)
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800362 }
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800363 }
364 }
365 post {
366 always {
367 // collect result, done in the "post" step so it's executed even in the
368 // event of a timeout in the tests
369 sh '''
370
371 # stop the kail processes
372 list=($APPS_TO_LOG)
373 for app in "${list[@]}"
374 do
375 echo "Stopping logs for: ${app}"
376 _TAG="kail-$app"
377 P_IDS="$(ps e -ww -A | grep "_TAG=$_TAG" | grep -v grep | awk '{print $1}')"
378 if [ -n "$P_IDS" ]; then
379 echo $P_IDS
380 for P_ID in $P_IDS; do
381 kill -9 $P_ID
382 done
383 fi
384 done
385
386 if [ ${withPcap} = true ] ; then
387 # stop ofAgent tcpdump
388 P_ID="\$(ps e -ww -A | grep "_TAG=ofagent-tcpdump" | grep -v grep | awk '{print \$1}')"
389 if [ -n "\$P_ID" ]; then
390 kill -9 \$P_ID
391 fi
392
393 # stop radius tcpdump
394 P_ID="\$(ps e -ww -A | grep "_TAG=radius-tcpdump" | grep -v grep | awk '{print \$1}')"
395 if [ -n "\$P_ID" ]; then
396 kill -9 \$P_ID
397 fi
398
399 # stop onos tcpdump
400 LIMIT=$(($NUM_OF_ONOS - 1))
401 for i in $(seq 0 $LIMIT); do
402 INSTANCE="onos-onos-classic-$i"
403 P_ID="\$(ps e -ww -A | grep "_TAG=$INSTANCE" | grep -v grep | awk '{print \$1}')"
404 if [ -n "\$P_ID" ]; then
405 kill -9 \$P_ID
406 fi
407 done
408
409 # copy the file
410 export OF_AGENT=$(kubectl get pods -l app=ofagent | awk 'NR==2{print $1}') || true
411 kubectl cp $OF_AGENT:out.pcap $LOG_FOLDER/ofagent.pcap || true
412
413 export RADIUS=$(kubectl get pods -l app=radius | awk 'NR==2{print $1}') || true
414 kubectl cp $RADIUS:out.pcap $LOG_FOLDER/radius.pcap || true
415
416 LIMIT=$(($NUM_OF_ONOS - 1))
417 for i in $(seq 0 $LIMIT); do
418 INSTANCE="onos-onos-classic-$i"
419 kubectl cp $INSTANCE:out.pcap $LOG_FOLDER/$INSTANCE.pcap || true
420 done
421 fi
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800422 '''
423 sh '''
424 if [ ${withProfiling} = true ] ; then
425 _TAG="pprof"
426 P_IDS="$(ps e -ww -A | grep "_TAG=$_TAG" | grep -v grep | awk '{print $1}')"
427 if [ -n "$P_IDS" ]; then
428 echo $P_IDS
429 for P_ID in $P_IDS; do
430 kill -9 $P_ID
431 done
432 fi
433 fi
434 '''
435 plot([
436 csvFileName: 'scale-test.csv',
437 csvSeries: [
438 [file: 'plots/plot-voltha-onus.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
439 [file: 'plots/plot-onos-ports.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
440 [file: 'plots/plot-voltha-flows-before.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
441 [file: 'plots/plot-voltha-openolt-flows-before.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
442 [file: 'plots/plot-onos-flows-before.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
443 [file: 'plots/plot-onos-auth.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
444 [file: 'plots/plot-voltha-flows-after.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
445 [file: 'plots/plot-voltha-openolt-flows-after.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
446 [file: 'plots/plot-onos-flows-after.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
447 [file: 'plots/plot-onos-dhcp.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
448 ],
449 group: 'Voltha-Scale-Numbers', numBuilds: '20', style: 'line', title: "Scale Test (OLTs: ${olts}, PONs: ${pons}, ONUs: ${onus})", yaxis: 'Time (s)', useDescr: true
450 ])
451 step([$class: 'RobotPublisher',
452 disableArchiveOutput: false,
Matteo Scandolod4064492020-11-13 10:48:30 -0800453 logFileName: 'RobotLogs/**/log.html',
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800454 otherFiles: '',
Matteo Scandolod4064492020-11-13 10:48:30 -0800455 outputFileName: 'RobotLogs/**/output.xml',
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800456 outputPath: '.',
457 passThreshold: 100,
Matteo Scandolod4064492020-11-13 10:48:30 -0800458 reportFileName: 'RobotLogs/**/report.html',
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800459 unstableThreshold: 0]);
460 // get all the logs from kubernetes PODs
461 sh returnStdout: false, script: '''
462
463 # store information on running charts
Matteo Scandolod4064492020-11-13 10:48:30 -0800464 helm ls --all-namespaces > $LOG_FOLDER/helm-list.txt || true
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800465
466 # store information on the running pods
467 kubectl get pods -o wide > $LOG_FOLDER/pods.txt || true
468 kubectl get pods --all-namespaces -o jsonpath="{range .items[*].status.containerStatuses[*]}{.image}{'\\n'}" | sort | uniq | tee $LOG_FOLDER/pod-images.txt || true
469 kubectl get pods --all-namespaces -o jsonpath="{range .items[*].status.containerStatuses[*]}{.imageID}{'\\n'}" | sort | uniq | tee $LOG_FOLDER/pod-imagesId.txt || true
470
471 # copy the ONOS logs directly from the container to avoid the color codes
Matteo Scandolobe823242020-11-20 13:48:13 -0800472 printf '%s\n' $(kubectl -n \$INFRA_NS get pods -l app=onos-onos-classic -o=jsonpath="{.items[*]['metadata.name']}") | xargs --no-run-if-empty -I# bash -c "kubectl -n \$INFRA_NS cp #:${karafHome}/data/log/karaf.log $LOG_FOLDER/#.log" || true
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800473
474 # get radius logs out of the container
Matteo Scandolod4064492020-11-13 10:48:30 -0800475 kubectl -n \$INFRA_NS cp $(kubectl -n \$INFRA_NS get pods -l app=radius --no-headers | awk '{print $1}'):/var/log/freeradius/radius.log $LOG_FOLDER//radius.log || true
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800476 '''
477 // dump all the BBSim(s) ONU information
Matteo Scandolod4064492020-11-13 10:48:30 -0800478 script {
479 for (int i = 1; i <= params.volthaStacks.toInteger(); i++) {
480 stack_ns="voltha"+i
481 sh """
482 BBSIM_IDS=\$(kubectl -n ${stack_ns} get pods | grep bbsim | grep -v server | awk '{print \$1}')
483 IDS=(\$BBSIM_IDS)
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800484
Matteo Scandolod4064492020-11-13 10:48:30 -0800485 for bbsim in "\${IDS[@]}"
486 do
Matteo Scandolof6656562020-11-16 14:45:44 -0800487 kubectl -n ${stack_ns} exec -t \$bbsim -- bbsimctl onu list > $LOG_FOLDER/\$bbsim-device-list.txt || true
488 kubectl -n ${stack_ns} exec -t \$bbsim -- bbsimctl service list > $LOG_FOLDER/\$bbsim-service-list.txt || true
Matteo Scandolod4064492020-11-13 10:48:30 -0800489 done
490 """
491 }
492 }
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800493 // get ONOS debug infos
494 sh '''
495
496 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 apps -a -s > $LOG_FOLDER/onos-apps.txt || true
497 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 nodes > $LOG_FOLDER/onos-nodes.txt || true
498 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 masters > $LOG_FOLDER/onos-masters.txt || true
499 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 roles > $LOG_FOLDER/onos-roles.txt || true
500
501 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 ports > $LOG_FOLDER/onos-ports-list.txt || true
502 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 hosts > $LOG_FOLDER/onos-hosts-list.txt || true
503
504 if [ ${withFlows} = true ] ; then
505 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 volt-olts > $LOG_FOLDER/onos-olt-list.txt || true
506 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 flows -s > $LOG_FOLDER/onos-flows-list.txt || true
507 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 meters > $LOG_FOLDER/onos-meters-list.txt || true
508 fi
509
510 if [ ${provisionSubscribers} = true ]; then
511 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 volt-programmed-subscribers > $LOG_FOLDER/onos-programmed-subscribers.txt || true
512 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 volt-programmed-meters > $LOG_FOLDER/onos-programmed-meters.txt || true
513 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 volt-bpmeter-mappings > $LOG_FOLDER/onos-bpmeter-mappings.txt || true
514 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 volt-failed-subscribers > $LOG_FOLDER/onos-failed-subscribers.txt || true
515 fi
516
517 if [ ${withEapol} = true ] ; then
518 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 aaa-users > $LOG_FOLDER/onos-aaa-users.txt || true
519 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 aaa-statistics > $LOG_FOLDER/onos-aaa-statistics.txt || true
520 fi
521
522 if [ ${withDhcp} = true ] ; then
523 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 dhcpl2relay-allocations > $LOG_FOLDER/onos-dhcp-allocations.txt || true
524 fi
525 '''
526 // collect etcd metrics
527 sh '''
528 mkdir -p $WORKSPACE/etcd-metrics
529 curl -s -X GET -G http://10.90.0.101:31301/api/v1/query --data-urlencode 'query=etcd_debugging_mvcc_keys_total' | jq '.data' > $WORKSPACE/etcd-metrics/etcd-key-count.json || true
530 curl -s -X GET -G http://10.90.0.101:31301/api/v1/query --data-urlencode 'query=grpc_server_handled_total{grpc_service="etcdserverpb.KV"}' | jq '.data' > $WORKSPACE/etcd-metrics/etcd-rpc-count.json || true
531 curl -s -X GET -G http://10.90.0.101:31301/api/v1/query --data-urlencode 'query=etcd_debugging_mvcc_db_total_size_in_bytes' | jq '.data' > $WORKSPACE/etcd-metrics/etcd-db-size.json || true
532 curl -s -X GET -G http://10.90.0.101:31301/api/v1/query --data-urlencode 'query=etcd_disk_backend_commit_duration_seconds_sum' | jq '.data' > $WORKSPACE/etcd-metrics/etcd-backend-write-time.json || true
533 '''
534 // get VOLTHA debug infos
535 script {
Matteo Scandolod4064492020-11-13 10:48:30 -0800536 for (int i = 1; i <= params.volthaStacks.toInteger(); i++) {
537 stack_ns="voltha"+i
538 voltcfg="~/.volt/config-voltha"+i
539 println stack_ns
540 try {
541 sh """
542 voltctl -c $HOME/.volt/config-${stack_ns} -m 8MB device list -o json > $LOG_FOLDER/device-list.json || true
543 python -m json.tool $LOG_FOLDER/device-list.json > $LOG_FOLDER/voltha-devices-list.json || true
544 rm $LOG_FOLDER/device-list.json || true
545 voltctl -c $HOME/.volt/config-${stack_ns} -m 8MB device list > $LOG_FOLDER/voltha-devices-list.txt || true
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800546
Matteo Scandolod4064492020-11-13 10:48:30 -0800547 DEVICE_LIST=
Matteo Scandolobe823242020-11-20 13:48:13 -0800548 printf '%s\n' \$(voltctl -c $HOME/.volt/config-${stack_ns} -m 8MB device list | grep olt | awk '{print \$1}') | xargs --no-run-if-empty -I# bash -c "voltctl -c $HOME/.volt/config-${stack_ns}-m 8MB device flows # > $LOG_FOLDER/voltha-device-flows-#.txt" || true
549 printf '%s\n' \$(voltctl -c $HOME/.volt/config-${stack_ns} -m 8MB device list | grep olt | awk '{print \$1}') | xargs --no-run-if-empty -I# bash -c "voltctl -c $HOME/.volt/config-${stack_ns} -m 8MB device port list --format 'table{{.PortNo}}\t{{.Label}}\t{{.Type}}\t{{.AdminState}}\t{{.OperStatus}}' # > $LOG_FOLDER/voltha-device-ports-#.txt" || true
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800550
Matteo Scandolobe823242020-11-20 13:48:13 -0800551 printf '%s\n' \$(voltctl -c $HOME/.volt/config-${stack_ns} -m 8MB logicaldevice list -q) | xargs --no-run-if-empty -I# bash -c "voltctl -c $HOME/.volt/config-${stack_ns} -m 8MB logicaldevice flows # > $LOG_FOLDER/voltha-logicaldevice-flows-#.txt" || true
552 printf '%s\n' \$(voltctl -c $HOME/.volt/config-${stack_ns} -m 8MB logicaldevice list -q) | xargs --no-run-if-empty -I# bash -c "voltctl -c $HOME/.volt/config-${stack_ns} -m 8MB logicaldevice port list # > $LOG_FOLDER/voltha-logicaldevice-ports-#.txt" || true
Matteo Scandolod4064492020-11-13 10:48:30 -0800553 """
554 } catch(e) {
555 sh '''
556 echo "Can't get device list from voltclt"
557 '''
558 }
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800559 }
560 }
561 // get cpu usage by container
562 sh '''
563 if [ ${withMonitoring} = true ] ; then
564 cd $WORKSPACE/voltha-system-tests
565 source ./vst_venv/bin/activate
566 sleep 60 # we have to wait for prometheus to collect all the information
567 python tests/scale/sizing.py -o $WORKSPACE/plots || true
568 fi
569 '''
Matteo Scandolo5f6c5492020-11-12 17:37:25 -0800570 archiveArtifacts artifacts: 'kind-voltha/install-minimal.log,execution-time.txt,logs/*,logs/pprof/*,RobotLogs/**/*,plots/*,etcd-metrics/*'
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800571 }
572 }
573}
574
575def deploy_voltha_stacks(numberOfStacks) {
576 for (int i = 1; i <= numberOfStacks.toInteger(); i++) {
577 stage("Deploy VOLTHA stack " + i) {
578 sh returnStdout: false, script: """
579 cd $WORKSPACE/kind-voltha/
580
581 export NAME=voltha${i}
582 export VOLTHA_NS=voltha${i}
583 export ADAPTER_NS=voltha${i}
584 export BBSIM_NS=voltha${i}
585 export BBSIM_BASE_INDEX=${i}
586 export WITH_ETCD=etcd.\$INFRA_NS.svc:2379
587 export WITH_KAFKA=kafka.\$INFRA_NS.svc:9092
588 export WITH_ONOS=onos-onos-classic-hs.\$INFRA_NS.svc:6653
589
590 export EXTRA_HELM_FLAGS+=' '
591
592 # Load the release defaults
593 if [ '${release.trim()}' != 'master' ]; then
594 source $WORKSPACE/kind-voltha/releases/${release}
595 EXTRA_HELM_FLAGS+=" ${extraHelmFlags} "
596 fi
597
598 # BBSim custom image handling
599 if [ '${bbsimImg.trim()}' != '' ] && [ '\$GERRIT_PROJECT' != 'bbsim' ]; then
600 IFS=: read -r bbsimRepo bbsimTag <<< '${bbsimImg.trim()}'
601 EXTRA_HELM_FLAGS+="--set images.bbsim.repository=\$bbsimRepo,images.bbsim.tag=\$bbsimTag "
602 fi
603
604 # VOLTHA and ofAgent custom image handling
605 # NOTE to override the rw-core image in a released version you must set the ofAgent image too
606 # TODO split ofAgent and voltha-go
607 if [ '${rwCoreImg.trim()}' != '' ] && [ '${ofAgentImg.trim()}' != '' ] && [ '\$GERRIT_PROJECT' != 'voltha-go' ]; then
608 IFS=: read -r rwCoreRepo rwCoreTag <<< '${rwCoreImg.trim()}'
609 IFS=: read -r ofAgentRepo ofAgentTag <<< '${ofAgentImg.trim()}'
610 EXTRA_HELM_FLAGS+="--set images.rw_core.repository=\$rwCoreRepo,images.rw_core.tag=\$rwCoreTag,images.ofagent.repository=\$ofAgentRepo,images.ofagent.tag=\$ofAgentTag "
611 fi
612
613 # OpenOLT custom image handling
614 if [ '${openoltAdapterImg.trim()}' != '' ] && [ '\$GERRIT_PROJECT' != 'voltha-openolt-adapter' ]; then
615 IFS=: read -r openoltAdapterRepo openoltAdapterTag <<< '${openoltAdapterImg.trim()}'
616 EXTRA_HELM_FLAGS+="--set images.adapter_open_olt.repository=\$openoltAdapterRepo,images.adapter_open_olt.tag=\$openoltAdapterTag "
617 fi
618
619 # OpenONU custom image handling
620 if [ '${openonuAdapterImg.trim()}' != '' ] && [ '\$GERRIT_PROJECT' != 'voltha-openonu-adapter' ]; then
621 IFS=: read -r openonuAdapterRepo openonuAdapterTag <<< '${openonuAdapterImg.trim()}'
622 EXTRA_HELM_FLAGS+="--set images.adapter_open_onu.repository=\$openonuAdapterRepo,images.adapter_open_onu.tag=\$openonuAdapterTag "
623 fi
624
Andrea Campanella28763082020-11-18 10:55:31 +0100625 # OpenONU Go custom image handling
626 if [ '${openonuAdapterGoImg.trim()}' != '' ] && [ '\$GERRIT_PROJECT' != 'voltha-openonu-adapter-go' ]; then
627 IFS=: read -r openonuAdapterGoRepo openonuAdapterGoTag <<< '${openonuAdapterGoImg.trim()}'
Andrea Campanellaed026982020-11-20 10:06:42 +0100628 EXTRA_HELM_FLAGS+="--set images.adapter_open_onu_go.repository=\$openonuAdapterGoRepo,images.adapter_open_onu_go.tag=\$openonuAdapterGoTag "
Andrea Campanella28763082020-11-18 10:55:31 +0100629 fi
630
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800631 # ONOS custom image handling
632 if [ '${onosImg.trim()}' != '' ] && [ '\$GERRIT_PROJECT' != 'voltha-onos' ]; then
633 IFS=: read -r onosRepo onosTag <<< '${onosImg.trim()}'
634 EXTRA_HELM_FLAGS+="--set images.onos.repository=\$onosRepo,images.onos.tag=\$onosTag "
635 fi
636
637 # set BBSim parameters
638 EXTRA_HELM_FLAGS+='--set enablePerf=true,pon=${pons},onu=${onus} '
639
640 # disable the securityContext, this is a development cluster
641 EXTRA_HELM_FLAGS+='--set securityContext.enabled=false '
642
643 # No persistent-volume-claims in Atomix
644 EXTRA_HELM_FLAGS+="--set atomix.persistence.enabled=false "
645
646 echo "Installing with the following extra arguments:"
647 echo $EXTRA_HELM_FLAGS
648
649 # if it's newer than voltha-2.4 set the correct BBSIM_CFG
650 if [ '${release.trim()}' != 'voltha-2.4' ]; then
651 export BBSIM_CFG="$WORKSPACE/kind-voltha/configs/bbsim-sadis-${workflow}.yaml"
652 fi
653
654 # Use custom built images
655
656 if [ '\$GERRIT_PROJECT' == 'voltha-go' ]; then
657 EXTRA_HELM_FLAGS+="--set images.rw_core.repository=${dockerRegistry}/voltha/voltha-rw-core,images.rw_core.tag=voltha-scale "
658 fi
659
660 if [ '\$GERRIT_PROJECT' == 'voltha-openolt-adapter' ]; then
661 EXTRA_HELM_FLAGS+="--set images.adapter_open_olt.repository=${dockerRegistry}/voltha/voltha-openolt-adapter,images.adapter_open_olt.tag=voltha-scale "
662 fi
663
664 if [ '\$GERRIT_PROJECT' == 'voltha-openonu-adapter' ]; then
665 EXTRA_HELM_FLAGS+="--set images.adapter_open_onu.repository=${dockerRegistry}/voltha/voltha-openonu-adapter,images.adapter_open_onu.tag=voltha-scale "
666 fi
667
Andrea Campanellaed026982020-11-20 10:06:42 +0100668 if [ '\$GERRIT_PROJECT' == 'voltha-openonu-adapter-go' ]; then
669 EXTRA_HELM_FLAGS+="--set images.adapter_open_onu_go.repository=${dockerRegistry}/voltha/voltha-openonu-adapter-go,images.adapter_open_onu_go.tag=voltha-scale "
670 fi
671
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800672 if [ '\$GERRIT_PROJECT' == 'ofagent-go' ]; then
673 EXTRA_HELM_FLAGS+="--set images.ofagent.repository=${dockerRegistry}/voltha/voltha-ofagent-go,images.ofagent.tag=voltha-scale "
674 fi
675
676 if [ '\$GERRIT_PROJECT' == 'voltha-onos' ]; then
677 EXTRA_HELM_FLAGS+="--set images.onos.repository=${dockerRegistry}/voltha/voltha-onos,images.onos.tag=voltha-scale "
678 fi
679
680 if [ '\$GERRIT_PROJECT' == 'bbsim' ]; then
681 EXTRA_HELM_FLAGS+="--set images.bbsim.repository=${dockerRegistry}/voltha/bbsim,images.bbsim.tag=voltha-scale "
682 fi
683
684 ./voltha up
685 """
686 }
687 }
688}
689
690def test_voltha_stacks(numberOfStacks) {
691 for (int i = 1; i <= numberOfStacks.toInteger(); i++) {
692 stage("Test VOLTHA stack " + i) {
693 timeout(time: 15, unit: 'MINUTES') {
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800694 sh """
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800695 export VOLTCONFIG="$HOME/.volt/config-voltha${i}"
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800696 ROBOT_PARAMS="-v stackId:${i} \
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800697 -v olt:${olts} \
698 -v pon:${pons} \
699 -v onu:${onus} \
700 -v workflow:${workflow} \
701 -v withEapol:${withEapol} \
702 -v withDhcp:${withDhcp} \
703 -v withIgmp:${withIgmp} \
704 --noncritical non-critical \
705 -e teardown "
706
707 if [ ${withEapol} = false ] ; then
708 ROBOT_PARAMS+="-e authentication "
709 fi
710
711 if [ ${withDhcp} = false ] ; then
712 ROBOT_PARAMS+="-e dhcp "
713 fi
714
715 if [ ${provisionSubscribers} = false ] ; then
716 # if we're not considering subscribers then we don't care about authentication and dhcp
717 ROBOT_PARAMS+="-e authentication -e provision -e flow-after -e dhcp "
718 fi
719
720 if [ ${withFlows} = false ] ; then
721 ROBOT_PARAMS+="-i setup -i activation "
722 fi
723
724 cd $WORKSPACE/voltha-system-tests
725 source ./vst_venv/bin/activate
Matteo Scandolo5f6c5492020-11-12 17:37:25 -0800726 robot -d $WORKSPACE/RobotLogs/voltha${i} \
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800727 \$ROBOT_PARAMS tests/scale/Voltha_Scale_Tests.robot
Matteo Scandolof7ca6312020-11-16 15:57:15 -0800728
729 # collect results
730 python tests/scale/collect-result.py -r $WORKSPACE/RobotLogs/voltha${i}/output.xml -p $WORKSPACE/plots > $WORKSPACE/execution-time-voltha${i}.txt || true
731 cat $WORKSPACE/execution-time-voltha${i}.txt
Matteo Scandolodc4608c2020-11-12 16:48:16 -0800732 """
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800733 }
734 }
Matteo Scandolo4b006ae2020-11-09 16:14:40 -0800735 }
736}