Matteo Scandolo | 51b7630 | 2020-02-05 12:07:23 -0800 | [diff] [blame] | 1 | /* voltha-scale-measurements pipeline */ |
| 2 | pipeline { |
Matteo Scandolo | 51b7630 | 2020-02-05 12:07:23 -0800 | [diff] [blame] | 3 | /* no label, executor is determined by JJB */ |
| 4 | agent { |
| 5 | label "${params.buildNode}" |
| 6 | } |
Shrey Baid | 00ff5c4 | 2020-02-07 15:14:08 -0800 | [diff] [blame] | 7 | environment { |
| 8 | KUBECONFIG="$HOME/.kube/kind-config-voltha-minimal" |
| 9 | VOLTCONFIG="$HOME/.volt/config-minimal" |
Shrey Baid | b001c71 | 2020-02-11 11:12:46 -0800 | [diff] [blame] | 10 | SSHPASS="karaf" |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 11 | DEPLOY_K8S="n" |
Shrey Baid | 00ff5c4 | 2020-02-07 15:14:08 -0800 | [diff] [blame] | 12 | } |
Matteo Scandolo | 51b7630 | 2020-02-05 12:07:23 -0800 | [diff] [blame] | 13 | stages { |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 14 | stage('set-description') { |
| 15 | steps { |
| 16 | script { |
Shrey Baid | 943e207 | 2020-03-04 10:31:32 -0800 | [diff] [blame] | 17 | currentBuild.description = "$BUILD_TIMESTAMP" |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 18 | } |
| 19 | } |
| 20 | } |
Shrey Baid | b044718 | 2020-02-27 16:39:35 -0800 | [diff] [blame] | 21 | stage('cleanup') { |
Matteo Scandolo | 51b7630 | 2020-02-05 12:07:23 -0800 | [diff] [blame] | 22 | steps { |
Shrey Baid | b044718 | 2020-02-27 16:39:35 -0800 | [diff] [blame] | 23 | sh ''' |
Shrey Baid | 49bf8f6 | 2020-03-09 17:52:01 -0700 | [diff] [blame] | 24 | rm -rf voltha-devices-count.txt voltha-devices-time.txt onos-ports-count.txt onos-ports-time.txt onos-ports-list.txt voltha-devices-list.json onos-ports-time-num.txt voltha-devices-time-num.txt |
Matteo Scandolo | dd5bbe9 | 2020-03-27 11:43:08 -0700 | [diff] [blame] | 25 | for hchart in \$(helm list -q | grep -E -v 'docker-registry|kafkacat|etcd-operator'); |
Matteo Scandolo | 151e35c | 2020-02-28 15:45:15 -0800 | [diff] [blame] | 26 | do |
| 27 | echo "Purging chart: \${hchart}" |
| 28 | helm delete --purge "\${hchart}" |
| 29 | done |
Shrey Baid | b044718 | 2020-02-27 16:39:35 -0800 | [diff] [blame] | 30 | bash /home/cord/voltha-scale/wait_for_pods.sh |
| 31 | bash /home/cord/voltha-scale/stop_port_forward.sh |
| 32 | ''' |
Matteo Scandolo | 51b7630 | 2020-02-05 12:07:23 -0800 | [diff] [blame] | 33 | } |
| 34 | } |
| 35 | stage('start') { |
| 36 | steps { |
Shrey Baid | 00ff5c4 | 2020-02-07 15:14:08 -0800 | [diff] [blame] | 37 | sh ''' |
Matteo Scandolo | 51b7630 | 2020-02-05 12:07:23 -0800 | [diff] [blame] | 38 | #!/usr/bin/env bash |
| 39 | set -euo pipefail |
Shrey Baid | 00ff5c4 | 2020-02-07 15:14:08 -0800 | [diff] [blame] | 40 | ''' |
| 41 | } |
| 42 | } |
Shrey Baid | 00ff5c4 | 2020-02-07 15:14:08 -0800 | [diff] [blame] | 43 | stage('deploy-voltha') { |
Matteo Scandolo | 2fc1dac | 2020-03-09 08:39:53 -0700 | [diff] [blame] | 44 | options { |
| 45 | timeout(time:10) |
| 46 | } |
Shrey Baid | 00ff5c4 | 2020-02-07 15:14:08 -0800 | [diff] [blame] | 47 | steps { |
| 48 | sh ''' |
Matteo Scandolo | a3470b7 | 2020-03-17 12:26:47 -0700 | [diff] [blame] | 49 | helm repo update |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 50 | helm install -n cord-kafka incubator/kafka -f /home/cord/voltha-scale/voltha-values.yaml --version 0.13.3 --set replicas=${numOfKafka} --set persistence.enabled=false --set zookeeper.replicaCount=${numOfKafka} --set zookeeper.persistence.enabled=false |
Matteo Scandolo | e1c200f | 2020-03-24 10:33:58 -0700 | [diff] [blame] | 51 | helm install -n nem-monitoring cord/nem-monitoring --set kpi_exporter.enabled=false,dashboards.xos=false,dashboards.onos=false,dashboards.aaa=false,dashboards.voltha=false |
Shrey Baid | b06b55a | 2020-03-12 15:04:58 -0700 | [diff] [blame] | 52 | |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 53 | helm install -n radius onf/freeradius ${extraHelmFlags} |
| 54 | |
| 55 | # NOTE wait for the infrastructure to be running before installing VOLTHA |
| 56 | bash /home/cord/voltha-scale/wait_for_pods.sh |
| 57 | |
Matteo Scandolo | e69614f | 2020-03-10 11:35:35 -0700 | [diff] [blame] | 58 | IFS=: read -r onosRepo onosTag <<< ${onosImg} |
| 59 | helm install -n onos onf/onos --set images.onos.repository=${onosRepo} --set images.onos.tag=${onosTag} ${extraHelmFlags} |
Shrey Baid | b044718 | 2020-02-27 16:39:35 -0800 | [diff] [blame] | 60 | |
Matteo Scandolo | a2928e7 | 2020-03-02 16:38:22 -0800 | [diff] [blame] | 61 | IFS=: read -r volthaRepo volthaTag <<< ${volthaImg} |
Matteo Scandolo | e69614f | 2020-03-10 11:35:35 -0700 | [diff] [blame] | 62 | IFS=: read -r ofAgentRepo ofAgentTag <<< ${ofAgentImg} |
Matteo Scandolo | fddcb00 | 2020-03-24 09:14:57 -0700 | [diff] [blame] | 63 | helm install -n voltha ${volthaChart} -f /home/cord/voltha-scale/voltha-values.yaml --set defaults.log_level=${logLevel},images.rw_core.repository=${volthaRepo},images.rw_core.tag=${volthaTag},images.ofagent_go.repository=${ofAgentRepo},images.ofagent_go.tag=${ofAgentTag} ${extraHelmFlags} |
Matteo Scandolo | a2928e7 | 2020-03-02 16:38:22 -0800 | [diff] [blame] | 64 | |
| 65 | IFS=: read -r openoltAdapterRepo openoltAdapterTag <<< ${openoltAdapterImg} |
Matteo Scandolo | 330f752 | 2020-03-17 17:15:53 -0700 | [diff] [blame] | 66 | helm install -n openolt ${openoltAdapterChart} -f /home/cord/voltha-scale/voltha-values.yaml --set defaults.log_level=${logLevel},images.adapter_open_olt.repository=${openoltAdapterRepo},images.adapter_open_olt.tag=${openoltAdapterTag} ${extraHelmFlags} |
Matteo Scandolo | a2928e7 | 2020-03-02 16:38:22 -0800 | [diff] [blame] | 67 | |
| 68 | IFS=: read -r openonuAdapterRepo openonuAdapterTag <<< ${openonuAdapterImg} |
Matteo Scandolo | 330f752 | 2020-03-17 17:15:53 -0700 | [diff] [blame] | 69 | helm install -n openonu ${openonuAdapterChart} -f /home/cord/voltha-scale/voltha-values.yaml --set defaults.log_level=${logLevel},images.adapter_open_onu.repository=${openonuAdapterRepo},images.adapter_open_onu.tag=${openonuAdapterTag} ${extraHelmFlags} |
Matteo Scandolo | a2928e7 | 2020-03-02 16:38:22 -0800 | [diff] [blame] | 70 | |
| 71 | IFS=: read -r bbsimRepo bbsimTag <<< ${bbsimImg} |
Matteo Scandolo | 7059b08 | 2020-03-17 09:05:03 -0700 | [diff] [blame] | 72 | |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 73 | for i in $(seq 1 $((${numOfBbsim}))); do |
| 74 | helm install -n bbsim-$i ${bbsimChart} --set olt_id=$i,enablePerf=true,pon=${ponPorts},onu=${onuPerPon},auth=${bbsimAuth},dhcp=${bbsimDhcp},delay=${BBSIMdelay},images.bbsim.repository=${bbsimRepo},images.bbsim.tag=${bbsimTag} ${extraHelmFlags} |
| 75 | done |
Shrey Baid | b044718 | 2020-02-27 16:39:35 -0800 | [diff] [blame] | 76 | |
Shrey Baid | b044718 | 2020-02-27 16:39:35 -0800 | [diff] [blame] | 77 | bash /home/cord/voltha-scale/wait_for_pods.sh |
| 78 | bash /home/cord/voltha-scale/start_port_forward.sh |
Shrey Baid | 00ff5c4 | 2020-02-07 15:14:08 -0800 | [diff] [blame] | 79 | ''' |
| 80 | } |
| 81 | } |
Matteo Scandolo | a711ddf | 2020-03-06 16:41:34 -0800 | [diff] [blame] | 82 | stage('wait for adapters to be registered') { |
Matteo Scandolo | 2fc1dac | 2020-03-09 08:39:53 -0700 | [diff] [blame] | 83 | options { |
| 84 | timeout(time:5) |
| 85 | } |
Matteo Scandolo | a711ddf | 2020-03-06 16:41:34 -0800 | [diff] [blame] | 86 | steps{ |
| 87 | waitUntil { |
| 88 | script { |
| 89 | openolt_res = sh returnStdout: true, script: """ |
| 90 | voltctl adapter list | grep openolt | wc -l |
| 91 | """ |
| 92 | |
| 93 | openonu_res = sh returnStdout: true, script: """ |
| 94 | voltctl adapter list | grep brcm_openomci_onu | wc -l |
| 95 | """ |
| 96 | |
Matteo Scandolo | 89f1cea | 2020-04-10 10:20:20 -0700 | [diff] [blame] | 97 | return openolt_res.toInteger() >= 1 && openonu_res.toInteger() >= 1 |
Matteo Scandolo | a711ddf | 2020-03-06 16:41:34 -0800 | [diff] [blame] | 98 | } |
| 99 | } |
| 100 | } |
| 101 | } |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 102 | stage('MIB-template') { |
| 103 | steps { |
| 104 | sh ''' |
| 105 | if [ ${withMibTemplate} = true ] ; then |
Shrey Baid | b044718 | 2020-02-27 16:39:35 -0800 | [diff] [blame] | 106 | rm -f BBSM-12345123451234512345-00000000000001-v1.json |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 107 | wget https://raw.githubusercontent.com/opencord/voltha-openonu-adapter/master/templates/BBSM-12345123451234512345-00000000000001-v1.json |
Shrey Baid | b044718 | 2020-02-27 16:39:35 -0800 | [diff] [blame] | 108 | 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 |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 109 | fi |
| 110 | ''' |
Shrey Baid | 0d4e31d | 2020-02-11 13:28:47 -0800 | [diff] [blame] | 111 | } |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 112 | } |
| 113 | stage('disable-ONOS-apps') { |
| 114 | steps { |
| 115 | sh ''' |
| 116 | #Check withOnosApps and disable apps accordingly |
| 117 | if [ ${withOnosApps} = false ] ; then |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 118 | sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 app deactivate org.opencord.olt |
| 119 | sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 app deactivate org.opencord.aaa |
| 120 | sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 app deactivate org.opencord.dhcpl2relay |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 121 | fi |
| 122 | ''' |
Shrey Baid | 0d4e31d | 2020-02-11 13:28:47 -0800 | [diff] [blame] | 123 | } |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 124 | } |
| 125 | stage('configuration') { |
| 126 | steps { |
| 127 | sh ''' |
Matteo Scandolo | 330f752 | 2020-03-17 17:15:53 -0700 | [diff] [blame] | 128 | #Setting LOG level to ${logLevel} |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 129 | sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 log:set ${logLevel} |
Shrey Baid | b044718 | 2020-02-27 16:39:35 -0800 | [diff] [blame] | 130 | kubectl exec $(kubectl get pods | grep bbsim | awk 'NR==1{print $1}') bbsimctl log warn false |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 131 | #Setting link discovery |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 132 | sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 cfg set org.onosproject.provider.lldp.impl.LldpLinkProvider enabled ${setLinkDiscovery} |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 133 | #Setting the flow stats collection interval |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 134 | sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 cfg set org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider flowPollFrequency ${flowStatInterval} |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 135 | #Setting the ports stats collection interval |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 136 | sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 cfg set org.onosproject.provider.of.device.impl.OpenFlowDeviceProvider portStatsPollFrequency ${portsStatInterval} |
Matteo Scandolo | 7b3fde9 | 2020-02-26 16:17:16 -0800 | [diff] [blame] | 137 | # extending voltctl timeout |
Shrey Baid | b044718 | 2020-02-27 16:39:35 -0800 | [diff] [blame] | 138 | sed -i 's/timeout: 10s/timeout: 5m/g' /home/cord/.volt/config |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 139 | ''' |
| 140 | } |
| 141 | } |
| 142 | stage('execute') { |
| 143 | options { |
| 144 | timeout(time:10) |
| 145 | } |
| 146 | stages { |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 147 | stage('Activate OLTs') { |
| 148 | steps { |
| 149 | sh ''' |
| 150 | for i in $(seq 1 $((${numOfBbsim}))); do |
| 151 | voltctl device create -t openolt -H bbsim-$i:50060 -m 0f:f1:ce:c$i:ff:ee |
| 152 | done |
| 153 | voltctl device list --filter Type~openolt -q | xargs voltctl device enable |
| 154 | ''' |
| 155 | } |
| 156 | } |
Shrey Baid | a3b8aa6 | 2020-02-13 11:22:51 -0800 | [diff] [blame] | 157 | stage('ONUs-enabled') { |
| 158 | steps { |
| 159 | sh ''' |
| 160 | if [ -z ${expectedOnus} ] |
| 161 | then |
| 162 | echo -e "You need to set the target ONU number\n" |
| 163 | exit 1 |
| 164 | fi |
Shrey Baid | 00ff5c4 | 2020-02-07 15:14:08 -0800 | [diff] [blame] | 165 | |
Shrey Baid | a3b8aa6 | 2020-02-13 11:22:51 -0800 | [diff] [blame] | 166 | # check ONUs reached Active State in VOLTHA |
| 167 | i=$(voltctl device list | grep -v OLT | grep ACTIVE | wc -l) |
| 168 | until [ $i -eq ${expectedOnus} ] |
| 169 | do |
| 170 | echo "$i ONUs ACTIVE of ${expectedOnus} expected (time: $SECONDS)" |
| 171 | sleep ${pollInterval} |
| 172 | i=$(voltctl device list | grep -v OLT | grep ACTIVE | wc -l) |
| 173 | done |
| 174 | echo "${expectedOnus} ONUs Activated in $SECONDS seconds (time: $SECONDS)" |
Shrey Baid | 49bf8f6 | 2020-03-09 17:52:01 -0700 | [diff] [blame] | 175 | echo $SECONDS > voltha-devices-time-num.txt |
Shrey Baid | a3b8aa6 | 2020-02-13 11:22:51 -0800 | [diff] [blame] | 176 | ''' |
| 177 | } |
| 178 | } |
| 179 | stage('ONOS-ports') { |
| 180 | steps { |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 181 | sh ''' |
Shrey Baid | a3b8aa6 | 2020-02-13 11:22:51 -0800 | [diff] [blame] | 182 | # Check ports showed up in ONOS |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 183 | z=$(sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 ports -e | grep BBSM | wc -l) |
Shrey Baid | a3b8aa6 | 2020-02-13 11:22:51 -0800 | [diff] [blame] | 184 | until [ $z -eq ${expectedOnus} ] |
| 185 | do |
| 186 | echo "${z} enabled ports of ${expectedOnus} expected (time: $SECONDS)" |
| 187 | sleep ${pollInterval} |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 188 | z=$(sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 ports -e | grep BBSM | wc -l) |
Shrey Baid | a3b8aa6 | 2020-02-13 11:22:51 -0800 | [diff] [blame] | 189 | done |
| 190 | echo "${expectedOnus} ports enabled in $SECONDS seconds (time: $SECONDS)" |
Shrey Baid | 49bf8f6 | 2020-03-09 17:52:01 -0700 | [diff] [blame] | 191 | echo $SECONDS > temp.txt |
| 192 | paste voltha-devices-time-num.txt temp.txt | awk '{print ($1 + $2)}' > onos-ports-time-num.txt |
| 193 | echo "ONOS-Duration(s)" > onos-ports-time.txt |
| 194 | echo "VOLTHA-Duration(s)" > voltha-devices-time.txt |
| 195 | cat voltha-devices-time-num.txt >> voltha-devices-time.txt |
| 196 | cat onos-ports-time-num.txt >> onos-ports-time.txt |
Shrey Baid | a3b8aa6 | 2020-02-13 11:22:51 -0800 | [diff] [blame] | 197 | ''' |
| 198 | } |
| 199 | } |
Shrey Baid | b001c71 | 2020-02-11 11:12:46 -0800 | [diff] [blame] | 200 | } |
| 201 | } |
Matteo Scandolo | 51b7630 | 2020-02-05 12:07:23 -0800 | [diff] [blame] | 202 | } |
| 203 | post { |
Shrey Baid | 4da57a6 | 2020-03-05 15:49:50 -0800 | [diff] [blame] | 204 | success { |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 205 | plot([ |
| 206 | csvFileName: 'plot-onu-activation.csv', |
Shrey Baid | 49bf8f6 | 2020-03-09 17:52:01 -0700 | [diff] [blame] | 207 | csvSeries: [[displayTableFlag: false, exclusionValues: '', file: 'voltha-devices-time.txt', inclusionFlag: 'OFF', url: ''], [displayTableFlag: false, exclusionValues: '', file: 'onos-ports-time.txt', inclusionFlag: 'OFF', url: '']], |
Shrey Baid | 943e207 | 2020-03-04 10:31:32 -0800 | [diff] [blame] | 208 | group: 'Voltha-Scale-Numbers', numBuilds: '100', style: 'line', title: "Time (${BBSIMdelay}s Delay)", yaxis: 'Time (s)', useDescr: true |
Shrey Baid | e7614d0 | 2020-02-25 10:26:42 -0800 | [diff] [blame] | 209 | ]) |
Shrey Baid | 4da57a6 | 2020-03-05 15:49:50 -0800 | [diff] [blame] | 210 | } |
| 211 | always { |
| 212 | sh ''' |
| 213 | echo $(voltctl device list | grep -v OLT | grep ACTIVE | wc -l) > onus.txt |
Shrey Baid | 49bf8f6 | 2020-03-09 17:52:01 -0700 | [diff] [blame] | 214 | echo "#-of-ONUs" > voltha-devices-count.txt |
| 215 | cat onus.txt >> voltha-devices-count.txt |
Matteo Scandolo | e1c200f | 2020-03-24 10:33:58 -0700 | [diff] [blame] | 216 | ''' |
| 217 | sh ''' |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 218 | echo $(sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 ports -e | grep BBSM | wc -l) > ports.txt |
Shrey Baid | 49bf8f6 | 2020-03-09 17:52:01 -0700 | [diff] [blame] | 219 | echo "#-of-ports" > onos-ports-count.txt |
| 220 | cat ports.txt >> onos-ports-count.txt |
Matteo Scandolo | e1c200f | 2020-03-24 10:33:58 -0700 | [diff] [blame] | 221 | ''' |
| 222 | sh ''' |
Matteo Scandolo | 24044fc | 2020-04-14 10:07:14 -0700 | [diff] [blame] | 223 | kubectl get pods --all-namespaces -o jsonpath="{range .items[*].status.containerStatuses[*]}{.image}{'\\n'}" | sort | uniq |
| 224 | kubectl get pods --all-namespaces -o jsonpath="{range .items[*].status.containerStatuses[*]}{.imageID}{'\\n'}" | sort | uniq |
Matteo Scandolo | e1c200f | 2020-03-24 10:33:58 -0700 | [diff] [blame] | 225 | ''' |
| 226 | sh ''' |
Shrey Baid | 4da57a6 | 2020-03-05 15:49:50 -0800 | [diff] [blame] | 227 | voltctl device list -o json > device-list.json |
Shrey Baid | 49bf8f6 | 2020-03-09 17:52:01 -0700 | [diff] [blame] | 228 | python -m json.tool device-list.json > voltha-devices-list.json |
Matteo Scandolo | e1c200f | 2020-03-24 10:33:58 -0700 | [diff] [blame] | 229 | ''' |
| 230 | sh ''' |
Matteo Scandolo | f87e1da | 2020-04-16 16:13:31 -0700 | [diff] [blame^] | 231 | sshpass -e ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 30115 karaf@127.0.0.1 ports > onos-ports-list.txt |
Shrey Baid | ce9ed55 | 2020-03-13 13:40:13 -0700 | [diff] [blame] | 232 | curl -s -X GET -G http://127.0.0.1:31301/api/v1/query --data-urlencode 'query=avg(rate(container_cpu_usage_seconds_total[10m])*100) by (pod_name)' | jq . > cpu-usage.json |
Matteo Scandolo | e1c200f | 2020-03-24 10:33:58 -0700 | [diff] [blame] | 233 | ''' |
| 234 | sh ''' |
Matteo Scandolo | 3d31ebc | 2020-04-16 14:39:40 -0700 | [diff] [blame] | 235 | kubectl get pods -o wide |
Matteo Scandolo | 89f1cea | 2020-04-10 10:20:20 -0700 | [diff] [blame] | 236 | kubectl logs -l app=adapter-open-olt > open-olt-logs.txt |
| 237 | kubectl logs -l app=adapter-open-onu > open-onu-logs.txt |
| 238 | kubectl logs -l app=rw-core > voltha-rw-core-logs.txt |
| 239 | kubectl logs -l app=ofagent > voltha-ofagent-logs.txt |
| 240 | kubectl logs -l app=bbsim > bbsim-logs.txt |
Matteo Scandolo | e1c200f | 2020-03-24 10:33:58 -0700 | [diff] [blame] | 241 | ''' |
| 242 | sh ''' |
Shrey Baid | 49bf8f6 | 2020-03-09 17:52:01 -0700 | [diff] [blame] | 243 | rm -rf BBSM-12345123451234512345-00000000000001-v1.json device-list.json onus.txt ports.txt temp.txt |
Matteo Scandolo | e1c200f | 2020-03-24 10:33:58 -0700 | [diff] [blame] | 244 | ''' |
Shrey Baid | 4da57a6 | 2020-03-05 15:49:50 -0800 | [diff] [blame] | 245 | plot([ |
| 246 | csvFileName: 'plot-numbers.csv', |
Shrey Baid | 49bf8f6 | 2020-03-09 17:52:01 -0700 | [diff] [blame] | 247 | csvSeries: [[displayTableFlag: false, exclusionValues: '', file: 'voltha-devices-count.txt', inclusionFlag: 'OFF', url: ''], [displayTableFlag: false, exclusionValues: '', file: 'onos-ports-count.txt', inclusionFlag: 'OFF', url: '']], |
Shrey Baid | 4da57a6 | 2020-03-05 15:49:50 -0800 | [diff] [blame] | 248 | group: 'Voltha-Scale-Numbers', numBuilds: '100', style: 'line', title: "Activated ONUs and Recognized Ports", yaxis: 'Number of Ports/ONUs', useDescr: true |
| 249 | ]) |
| 250 | |
| 251 | archiveArtifacts artifacts: '*.log,*.json,*txt' |
| 252 | |
Matteo Scandolo | 51b7630 | 2020-02-05 12:07:23 -0800 | [diff] [blame] | 253 | } |
| 254 | } |
Matteo Scandolo | e69614f | 2020-03-10 11:35:35 -0700 | [diff] [blame] | 255 | } |