1 ###################################
2 # job configuration for functest
3 ###################################
9 #--------------------------------
11 #--------------------------------
17 brahmaputra: &brahmaputra
19 branch: 'stable/{stream}'
20 gs-pathname: '{stream}'
21 docker-tag: 'brahmaputra.1.0'
22 #--------------------------------
23 # POD, INSTALLER, AND BRANCH MAPPING
24 #--------------------------------
26 #--------------------------------
31 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
36 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
41 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
46 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
48 - huawei-us-deploy-bare-1:
51 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
56 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
61 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
66 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
71 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
76 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
78 #--------------------------------
80 #--------------------------------
84 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
89 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
94 auto-trigger-name: 'yardstick-vtcdaily-ericsson-pod1-trigger'
99 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
104 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
109 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
114 auto-trigger-name: 'yardstick-daily-zte-build-1-trigger'
119 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
124 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
129 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
134 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
139 auto-trigger-name: 'yardstick-daily-huawei-sh-test-2-trigger'
144 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
146 #--------------------------------
149 - 'yardstick-{installer}-{pod}-{suite}-{stream}'
151 ################################
153 ################################
155 name: 'yardstick-{installer}-{pod}-{suite}-{stream}'
168 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
174 - '{auto-trigger-name}'
180 - '{installer}-defaults'
181 - 'yardstick-params-{pod}'
183 name: DEPLOY_SCENARIO
184 default: 'os-odl_l2-nofeature-ha'
187 default: '{docker-tag}'
188 description: 'Tag to pull docker image'
190 name: YARDSTICK_SUITE_NAME
191 default: opnfv_${{NODE_NAME}}_{suite}.yaml
192 description: 'Path to test suite'
196 description: "Show debut output information"
200 credentials-id: '{ssh-credentials}'
205 - 'yardstick-cleanup'
206 #- 'yardstick-fetch-os-creds'
207 - 'yardstick-{suite}'
211 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
213 ########################
215 ########################
217 name: yardstick-daily
222 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
224 # labconfig is used only for joid
227 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
228 instack_mac=$(sudo virsh domiflist instack | grep default | \
229 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
230 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
231 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
232 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
233 #note: this happens only in opnfv-lf-pod1
234 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
235 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
237 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
238 # If production lab then creds may be retrieved dynamically
239 # creds are on the jumphost, always in the same folder
240 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
241 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
242 # replace the default one by the customized one provided by jenkins config
245 opts="--privileged=true --rm"
246 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
247 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
248 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
250 # Pull the latest image
251 docker pull opnfv/yardstick:$DOCKER_TAG >$redirect
254 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
255 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
256 echo "Yardstick: Running docker cmd: ${cmd}"
259 echo "Yardstick: done!"
262 name: yardstick-vtcdaily
267 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
273 name: yardstick-fetch-os-creds
276 !include-raw: ../../utils/fetch_os_creds.sh
279 name: yardstick-cleanup
283 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
285 echo "Cleaning up docker containers/images..."
286 # Remove previous running containers if exist
287 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
288 echo "Removing existing opnfv/yardstick containers..."
289 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
293 # Remove existing images if exist
294 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
295 echo "Docker images to remove:"
296 docker images | head -1 && docker images | grep opnfv/yardstick
297 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
298 for tag in "${image_tags[@]}"; do
299 echo "Removing docker image opnfv/yardstick:$tag..."
300 docker rmi opnfv/yardstick:$tag >$redirect
304 ########################
306 ########################
308 name: 'yardstick-params-intel-pod5'
311 name: YARDSTICK_DB_BACKEND
312 default: '-i 104.197.68.199:8086'
313 description: 'Arguments to use in order to choose the backend DB'
316 name: 'yardstick-params-intel-pod6'
319 name: YARDSTICK_DB_BACKEND
320 default: '-i 104.197.68.199:8086'
321 description: 'Arguments to use in order to choose the backend DB'
324 name: 'yardstick-params-intel-pod8'
327 name: YARDSTICK_DB_BACKEND
329 description: 'Arguments to use in order to choose the backend DB'
332 name: 'yardstick-params-ericsson-pod1'
335 name: YARDSTICK_DB_BACKEND
336 default: '-i 104.197.68.199:8086'
337 description: 'Arguments to use in order to choose the backend DB'
340 name: 'yardstick-params-ericsson-pod2'
343 name: YARDSTICK_DB_BACKEND
344 default: '-i 104.197.68.199:8086'
345 description: 'Arguments to use in order to choose the backend DB'
348 name: 'yardstick-params-opnfv-jump-1'
351 name: YARDSTICK_DB_BACKEND
352 default: '-i 104.197.68.199:8086'
353 description: 'Arguments to use in order to choose the backend DB'
356 name: 'yardstick-params-opnfv-jump-2'
359 name: YARDSTICK_DB_BACKEND
360 default: '-i 104.197.68.199:8086'
361 description: 'Arguments to use in order to choose the backend DB'
364 name: 'yardstick-params-huawei-us-deploy-bare-1'
367 name: YARDSTICK_DB_BACKEND
368 default: '-i 104.197.68.199:8086'
369 description: 'Arguments to use in order to choose the backend DB'
372 name: 'yardstick-params-zte-build-1'
375 name: YARDSTICK_DB_BACKEND
377 description: 'Arguments to use in order to choose the backend DB'
380 name: 'yardstick-params-orange-pod2'
383 name: YARDSTICK_DB_BACKEND
384 default: '-i 104.197.68.199:8086'
385 description: 'Arguments to use in order to choose the backend DB'
388 name: 'yardstick-params-virtual'
391 name: YARDSTICK_DB_BACKEND
393 description: 'Arguments to use in order to choose the backend DB'
396 name: 'yardstick-params-huawei-virtual'
399 name: YARDSTICK_DB_BACKEND
401 description: 'Arguments to use in order to choose the backend DB'
404 name: 'yardstick-params-huawei-sh-test-2'
407 name: YARDSTICK_DB_BACKEND
409 description: 'Arguments to use in order to choose the backend DB'
411 #######################
413 #######################
414 # trigger for PODs to only run yardstick test suites
416 name: 'yardstick-daily-zte-build-1-trigger'
421 name: 'yardstick-vtcdaily-ericsson-pod1-trigger'
426 name: 'yardstick-daily-huawei-sh-test-2-trigger'