blob: b5785e3a180728dd2f62f35f26ad566bd7ab3191 [file] [log] [blame]
Matteo Scandolofbcbdb82020-05-06 15:41:32 -07001// 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 {
24 timeout(time: 30, unit: 'MINUTES')
25 }
26 environment {
27 KUBECONFIG="$HOME/.kube/config"
28 VOLTCONFIG="$HOME/.volt/config"
Matteo Scandolob70b3e02020-05-07 11:50:26 -070029 SSHPASS="karaf"
Matteo Scandolofbcbdb82020-05-06 15:41:32 -070030 PATH="$WORKSPACE/kind-voltha/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
31 TYPE="minimal"
32 FANCY=0
33 WITH_SIM_ADAPTERS="no"
34 WITH_RADIUS="yes"
35 WITH_BBSIM="yes"
36 LEGACY_BBSIM_INDEX="no"
37 DEPLOY_K8S="no"
38 CONFIG_SADIS="external"
Matteo Scandolo0430f672020-05-07 11:50:26 -070039 WITH_KAFKA="kafka.default.svc.cluster.local"
Matteo Scandoloa8afe122020-05-11 10:45:56 -070040 WITH_ETCD="etcd-cluster-client.default.svc.cluster.local"
Matteo Scandolofbcbdb82020-05-06 15:41:32 -070041
42 // install everything in the default namespace
43 VOLTHA_NS="default"
44 ADAPTER_NS="default"
45 INFRA_NS="default"
46 BBSIM_NS="default"
47
Matteo Scandolo0430f672020-05-07 11:50:26 -070048 // configurable options
49 WITH_EAPOL="${withEapol}"
50 WITH_DHCP="${withDhcp}"
51 WITH_IGMP="${withIgmp}"
Matteo Scandolofbcbdb82020-05-06 15:41:32 -070052 VOLTHA_LOG_LEVEL="${logLevel}"
53 NUM_OF_BBSIM="${olts}"
Matteo Scandolo0430f672020-05-07 11:50:26 -070054 NUM_OF_OPENONU="${openonuAdapterReplicas}"
55 NUM_OF_ONOS="${onosReplicas}"
56 NUM_OF_ATOMIX="${atomixReplicas}"
Matteo Scandolofbcbdb82020-05-06 15:41:32 -070057
Matteo Scandolo0430f672020-05-07 11:50:26 -070058 VOLTHA_CHART="${volthaChart}"
59 VOLTHA_BBSIM_CHART="${bbsimChart}"
60 VOLTHA_ADAPTER_OPEN_OLT_CHART="${openoltAdapterChart}"
61 VOLTHA_ADAPTER_OPEN_ONU_CHART="${openonuAdapterChart}"
Matteo Scandolofbcbdb82020-05-06 15:41:32 -070062 }
63
64 stages {
65 stage ('Cleanup') {
Matteo Scandolofbcbdb82020-05-06 15:41:32 -070066 steps {
67 sh returnStdout: false, script: """
68 test -e $WORKSPACE/kind-voltha/voltha && cd $WORKSPACE/kind-voltha && ./voltha down
Matteo Scandolob70b3e02020-05-07 11:50:26 -070069
70 for hchart in \$(helm list -q | grep -E -v 'docker-registry|kafkacat|etcd-operator');
71 do
72 echo "Purging chart: \${hchart}"
73 helm delete --purge "\${hchart}"
74 done
75 bash /home/cord/voltha-scale/wait_for_pods.sh
76
Matteo Scandolofbcbdb82020-05-06 15:41:32 -070077 cd $WORKSPACE
78 rm -rf $WORKSPACE/*
79 """
80 }
81 }
82 stage('Clone kind-voltha') {
83 steps {
84 checkout([
85 $class: 'GitSCM',
86 userRemoteConfigs: [[ url: "https://gerrit.opencord.org/kind-voltha", ]],
87 branches: [[ name: "master", ]],
88 extensions: [
89 [$class: 'WipeWorkspace'],
90 [$class: 'RelativeTargetDirectory', relativeTargetDir: "kind-voltha"],
91 [$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false],
92 ],
93 ])
94 }
95 }
96 stage('Clone voltha-system-tests') {
97 steps {
98 checkout([
99 $class: 'GitSCM',
100 userRemoteConfigs: [[ url: "https://gerrit.opencord.org/voltha-system-tests", ]],
101 branches: [[ name: "master", ]],
102 extensions: [
103 [$class: 'WipeWorkspace'],
104 [$class: 'RelativeTargetDirectory', relativeTargetDir: "voltha-system-tests"],
105 [$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false],
106 ],
107 ])
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700108 script {
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700109 sh(script:"""
110 if [ ${volthaSystemTestsChange} != '' ] ; then
111 cd voltha-system-tests;
112 git fetch https://gerrit.opencord.org/voltha-system-tests ${volthaSystemTestsChange} && git checkout FETCH_HEAD
113 fi
114 """)
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700115 }
116 }
117 }
Matteo Scandolo0430f672020-05-07 11:50:26 -0700118 stage('Deploy common infrastructure') {
Matteo Scandoloa8afe122020-05-11 10:45:56 -0700119 // includes monitoring, kafka, etcd
Matteo Scandolo0430f672020-05-07 11:50:26 -0700120 steps {
121 sh '''
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700122 helm install -n kafka incubator/kafka --version 0.13.3 --set replicas=3 --set persistence.enabled=false --set zookeeper.replicaCount=3 --set zookeeper.persistence.enabled=false --version=0.15.3
Matteo Scandolo0430f672020-05-07 11:50:26 -0700123
Matteo Scandoloa8afe122020-05-11 10:45:56 -0700124 helm install --set clusterName=etcd-cluster --set autoCompactionRetention=1 --set clusterSize=3 --set defaults.log_level=WARN --namespace default -n etcd-cluster onf/voltha-etcd-cluster
125
Matteo Scandolo0430f672020-05-07 11:50:26 -0700126 if [ ${withMonitoring} = true ] ; then
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700127 helm install -n nem-monitoring cord/nem-monitoring \
128 --set prometheus.alertmanager.enabled=false,prometheus.pushgateway.enabled=false \
129 --set kpi_exporter.enabled=false,dashboards.xos=false,dashboards.onos=false,dashboards.aaa=false,dashboards.voltha=false
Matteo Scandolo0430f672020-05-07 11:50:26 -0700130 fi
131
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700132 # TODO download this file from https://github.com/opencord/helm-charts/blob/master/scripts/wait_for_pods.sh
Matteo Scandolo0430f672020-05-07 11:50:26 -0700133 bash /home/cord/voltha-scale/wait_for_pods.sh
134 '''
135 }
136 }
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700137 stage('Deploy Voltha') {
138 steps {
139 script {
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700140 // TODO install etcd outside kind-voltha (no need to redeploy the operator everytime)
141 sh returnStdout: false, script: """
Matteo Scandolo0430f672020-05-07 11:50:26 -0700142 export EXTRA_HELM_FLAGS+='--set enablePerf=true,pon=${pons},onu=${onus} '
143
144 # BBSim custom image handling
145 IFS=: read -r bbsimRepo bbsimTag <<< ${bbsimImg}
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700146 EXTRA_HELM_FLAGS+="--set images.bbsim.repository=\$bbsimRepo,images.bbsim.tag=\$bbsimTag "
Matteo Scandolo0430f672020-05-07 11:50:26 -0700147
148 # VOLTHA and ofAgent custom image handling
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700149 IFS=: read -r rwCoreRepo rwCoreTag <<< ${rwCoreImg}
Matteo Scandolo0430f672020-05-07 11:50:26 -0700150 IFS=: read -r ofAgentRepo ofAgentTag <<< ${ofAgentImg}
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700151 EXTRA_HELM_FLAGS+="--set images.rw_core.repository=\$rwCoreRepo,images.rw_core.tag=\$rwCoreTag,images.ofagent_go.repository=\$ofAgentRepo,images.ofagent_go.tag=\$ofAgentTag "
Matteo Scandolo0430f672020-05-07 11:50:26 -0700152
153 # OpenOLT custom image handling
154 IFS=: read -r openoltAdapterRepo openoltAdapterTag <<< ${openoltAdapterImg}
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700155 EXTRA_HELM_FLAGS+="--set images.adapter_open_olt.repository=\$openoltAdapterRepo,images.adapter_open_olt.tag=\$openoltAdapterTag "
Matteo Scandolo0430f672020-05-07 11:50:26 -0700156
157 # OpenONU custom image handling
158 IFS=: read -r openonuAdapterRepo openonuAdapterTag <<< ${openonuAdapterImg}
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700159 EXTRA_HELM_FLAGS+="--set images.adapter_open_onu.repository=\$openonuAdapterRepo,images.adapter_open_onu.tag=\$openonuAdapterTag "
Matteo Scandolo0430f672020-05-07 11:50:26 -0700160
161 # ONOS custom image handling
162 IFS=: read -r onosRepo onosTag <<< ${onosImg}
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700163 EXTRA_HELM_FLAGS+="--set images.onos.repository=\$onosRepo,images.onos.tag=\$onosTag "
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700164
165
166 cd $WORKSPACE/kind-voltha/
167
168 ./voltha up
169 """
170 }
171 }
172 }
Matteo Scandolo0430f672020-05-07 11:50:26 -0700173 stage('Configuration') {
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700174 steps {
175 sh '''
Matteo Scandolo0430f672020-05-07 11:50:26 -0700176 # Always deactivate org.opencord.kafka
177 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 app deactivate org.opencord.kafka
178
179 #Setting link discovery
180 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}
181
182 #Setting LOG level to ${logLevel}
183 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 log:set ${logLevel}
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700184 kubectl exec $(kubectl get pods | grep -E "bbsim[0-9]" | awk 'NR==1{print $1}') -- bbsimctl log ${logLevel} false
Matteo Scandolo0430f672020-05-07 11:50:26 -0700185
186 if [ ${withEapol} = false ] || [ ${withFlows} = false ]; then
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700187 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 app deactivate org.opencord.aaa
Matteo Scandolo0430f672020-05-07 11:50:26 -0700188 fi
189
190 if [ ${withDhcp} = false ] || [ ${withFlows} = false ]; then
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700191 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 app deactivate org.opencord.dhcpl2relay
Matteo Scandolo0430f672020-05-07 11:50:26 -0700192 fi
193
194 if [ ${withIgmp} = false ] || [ ${withFlows} = false ]; then
195 # FIXME will actually affected the tests only after VOL-3054 is addressed
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700196 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 app deactivate org.opencord.igmpproxy
197 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 app deactivate org.opencord.mcast
Matteo Scandolo0430f672020-05-07 11:50:26 -0700198 fi
199
200 if [ ${withFlows} = false ]; then
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700201 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 app deactivate org.opencord.olt
Matteo Scandolo0430f672020-05-07 11:50:26 -0700202 fi
203
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700204 if [ ${withMibTemplate} = true ] ; then
205 rm -f BBSM-12345123451234512345-00000000000001-v1.json
206 wget https://raw.githubusercontent.com/opencord/voltha-openonu-adapter/master/templates/BBSM-12345123451234512345-00000000000001-v1.json
207 cat BBSM-12345123451234512345-00000000000001-v1.json | kubectl exec -it $(kubectl get pods | grep etcd-cluster | awk 'NR==1{print $1}') etcdctl put service/voltha/omci_mibs/templates/BBSM/12345123451234512345/00000000000001
208 fi
209 '''
210 }
211 }
212 stage('Run Test') {
213 steps {
Matteo Scandolo9b0728b2020-05-11 08:25:57 -0700214 timeout(time: 11, unit: 'MINUTES') {
215 sh '''
216 ROBOT_PARAMS="-v olt:${olts} \
217 -v pon:${pons} \
218 -v onu:${onus} \
219 -v workflow:${workflow} \
220 -v withEapol:${withEapol} \
221 -v withDhcp:${withDhcp} \
222 -v withIgmp:${withIgmp} \
223 --noncritical non-critical \
224 -e teardown "
Matteo Scandolo0430f672020-05-07 11:50:26 -0700225
Matteo Scandolo9b0728b2020-05-11 08:25:57 -0700226 if [ ${withEapol} = false ] ; then
227 ROBOT_PARAMS+="-e authentication "
228 fi
Matteo Scandolo0430f672020-05-07 11:50:26 -0700229
Matteo Scandolo9b0728b2020-05-11 08:25:57 -0700230 if [ ${withDhcp} = false ] ; then
231 ROBOT_PARAMS+="-e dhcp "
232 fi
Matteo Scandolo0430f672020-05-07 11:50:26 -0700233
Matteo Scandolo9b0728b2020-05-11 08:25:57 -0700234 if [ ${provisionSubscribers} = false ] ; then
235 ROBOT_PARAMS+="-e provision -e flow-after "
236 fi
Matteo Scandolo0430f672020-05-07 11:50:26 -0700237
Matteo Scandolo9b0728b2020-05-11 08:25:57 -0700238 if [ ${withFlows} = false ] ; then
239 ROBOT_PARAMS+="-i setup -i activation "
240 fi
Matteo Scandolo0430f672020-05-07 11:50:26 -0700241
Matteo Scandolo9b0728b2020-05-11 08:25:57 -0700242 mkdir -p $WORKSPACE/RobotLogs
243 cd voltha-system-tests
244 make vst_venv
245 source ./vst_venv/bin/activate
246 robot -d $WORKSPACE/RobotLogs \
247 $ROBOT_PARAMS tests/scale/Voltha_Scale_Tests.robot
248 '''
249 }
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700250 }
251 }
252 stage('Collect results') {
253 steps {
254 sh '''
255 cd voltha-system-tests
256 source ./vst_venv/bin/activate
Matteo Scandolo0430f672020-05-07 11:50:26 -0700257 python tests/scale/collect-result.py -r $WORKSPACE/RobotLogs/output.xml -p $WORKSPACE/plots > $WORKSPACE/execution-time.txt
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700258 cat $WORKSPACE/execution-time.txt
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700259 '''
260 }
261 }
262 }
263 post {
264 always {
265 plot([
266 csvFileName: 'scale-test.csv',
267 csvSeries: [
Matteo Scandolo272aed42020-05-08 15:05:57 -0700268 [file: 'plots/plot-voltha-onus.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
269 [file: 'plots/plot-onos-ports.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
270 [file: 'plots/plot-voltha-flows-before.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
271 [file: 'plots/plot-onos-flows-before.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
272 [file: 'plots/plot-onos-auth.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
273 [file: 'plots/plot-voltha-flows-after.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
274 [file: 'plots/plot-onos-flows-after.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
275 [file: 'plots/plot-onos-dhcp.txt', displayTableFlag: false, exclusionValues: '', inclusionFlag: 'OFF', url: ''],
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700276 ],
277 group: 'Voltha-Scale-Numbers', numBuilds: '20', style: 'line', title: "Scale Test (OLTs: ${olts}, PONs: ${pons}, ONUs: ${onus})", yaxis: 'Time (s)', useDescr: true
278 ])
279 step([$class: 'RobotPublisher',
280 disableArchiveOutput: false,
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700281 logFileName: 'RobotLogs/log.html',
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700282 otherFiles: '',
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700283 outputFileName: 'RobotLogs/output.xml',
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700284 outputPath: '.',
285 passThreshold: 100,
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700286 reportFileName: 'RobotLogs/report.html',
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700287 unstableThreshold: 0]);
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700288 // count how many ONUs have been activated
Matteo Scandolo0430f672020-05-07 11:50:26 -0700289 sh '''
Matteo Scandolob70b3e02020-05-07 11:50:26 -0700290 mkdir -p $WORKSPACE/logs
291 echo "#-of-ONUs" > $WORKSPACE/logs/voltha-devices-count.txt
292 echo $(voltctl device list | grep -v OLT | grep ACTIVE | wc -l) >> $WORKSPACE/logs/voltha-devices-count.txt
293 '''
294 // count how many ports have been discovered
295 sh '''
296 echo "#-of-ports" > $WORKSPACE/logs/onos-ports-count.txt
297 echo $(sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 ports -e | grep BBSM | wc -l) >> $WORKSPACE/logs/onos-ports-count.txt
298 '''
299 // count how many flows have been provisioned
300 sh '''
301 echo "#-of-flows" > $WORKSPACE/logs/onos-flows-count.txt
302 echo $(sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 flows -s | grep ADDED | wc -l) >> $WORKSPACE/logs/onos-flows-count.txt
303 '''
304 // dump and count the authenticated users
305 sh '''
306 if [ ${withOnosApps} = true ] && [ ${bbsimAuth} ] ; then
307 echo $(sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 aaa-users) >> $WORKSPACE/logs/onos-aaa-users.txt
308
309 echo "#-of-authenticated-users" > $WORKSPACE/logs/onos-aaa-count.txt
310 echo $(sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 aaa-users | grep AUTHORIZED_STATE | wc -l) >> $WORKSPACE/logs/onos-aaa-count.txt
311 fi
312 '''
313 // dump and count the dhcp users
314 sh '''
315 if [ ${withOnosApps} = true ] && [ ${bbsimDhcp} ] ; then
316 echo $(sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 dhcpl2relay-allocations) >> $WORKSPACE/logs/onos-dhcp-allocations.txt
317
318 echo "#-of-dhcp-allocations" > $WORKSPACE/logs/onos-dhcp-count.txt
319 echo $(sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 dhcpl2relay-allocations | grep DHCPACK | wc -l) >> $WORKSPACE/logs/onos-dhcp-count.txt
320 fi
321 '''
322 // check which containers were used in this build
323 sh '''
324 kubectl get pods --all-namespaces -o jsonpath="{range .items[*].status.containerStatuses[*]}{.image}{'\\n'}" | sort | uniq
325 kubectl get pods --all-namespaces -o jsonpath="{range .items[*].status.containerStatuses[*]}{.imageID}{'\\n'}" | sort | uniq
326 '''
327 // dump all the VOLTHA devices informations
328 sh '''
329 voltctl device list -o json > $WORKSPACE/logs/device-list.json
330 python -m json.tool $WORKSPACE/logs/device-list.json > $WORKSPACE/logs/voltha-devices-list.json
331 '''
332 // dump all the BBSim(s) ONU informations
333 sh '''
334 BBSIM_IDS=$(kubectl get pods | grep bbsim | grep -v server | awk '{print $1}')
335 IDS=($BBSIM_IDS)
336
337 for bbsim in "${IDS[@]}"
338 do
339 kubectl exec -t $bbsim bbsimctl onu list > $WORKSPACE/logs/$bbsim-device-list.txt
340 done
341 '''
342 // get ports and flows from ONOS
343 sh '''
344 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 ports > $WORKSPACE/logs/onos-ports-list.txt
345 sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 8101 karaf@127.0.0.1 flows -s > $WORKSPACE/logs/onos-flows-list.txt
346 '''
347 // get all the logs from kubernetes PODs
348 sh '''
Matteo Scandolo0430f672020-05-07 11:50:26 -0700349 kubectl get pods -o wide > $WORKSPACE/logs/pods.txt
350 kubectl logs -l app=adapter-open-olt > $WORKSPACE/logs/open-olt-logs.logs
351 kubectl logs -l app=adapter-open-onu > $WORKSPACE/logs/open-onu-logs.logs
352 kubectl logs -l app=rw-core > $WORKSPACE/logs/voltha-rw-core-logs.logs
353 kubectl logs -l app=ofagent > $WORKSPACE/logs/voltha-ofagent-logs.logs
354 kubectl logs -l app=bbsim > $WORKSPACE/logs/bbsim-logs.logs
355 kubectl logs -l app=onos > $WORKSPACE/logs/onos-logs.logs
356 '''
Matteo Scandolo0358d862020-05-08 14:25:10 -0700357 archiveArtifacts artifacts: 'kind-voltha/install-minimal.log,execution-time.txt,logs/*'
Matteo Scandolofbcbdb82020-05-06 15:41:32 -0700358 }
359 }
360}