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'
126 - huawei-us-deploy-bare-2:
129 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
134 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
139 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
144 auto-trigger-name: 'yardstick-daily-huawei-sh-test-2-trigger'
149 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
151 #--------------------------------
154 - 'yardstick-{installer}-{pod}-{suite}-{stream}'
156 ################################
158 ################################
160 name: 'yardstick-{installer}-{pod}-{suite}-{stream}'
173 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
179 - '{auto-trigger-name}'
185 - '{installer}-defaults'
186 - 'yardstick-params-{pod}'
188 name: DEPLOY_SCENARIO
189 default: 'os-odl_l2-nofeature-ha'
192 default: '{docker-tag}'
193 description: 'Tag to pull docker image'
195 name: YARDSTICK_SUITE_NAME
196 default: opnfv_${{NODE_NAME}}_{suite}.yaml
197 description: 'Path to test suite'
201 description: "Show debut output information"
205 credentials-id: '{ssh-credentials}'
210 - 'yardstick-cleanup'
211 #- 'yardstick-fetch-os-creds'
212 - 'yardstick-{suite}'
216 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
218 ########################
220 ########################
222 name: yardstick-daily
227 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
229 # labconfig is used only for joid
232 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
233 instack_mac=$(sudo virsh domiflist instack | grep default | \
234 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
235 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
236 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
237 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
238 #note: this happens only in opnfv-lf-pod1
239 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
240 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
242 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
243 # If production lab then creds may be retrieved dynamically
244 # creds are on the jumphost, always in the same folder
245 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
246 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
247 # replace the default one by the customized one provided by jenkins config
250 opts="--privileged=true --rm"
251 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
252 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
253 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
255 # Pull the latest image
256 docker pull opnfv/yardstick:$DOCKER_TAG >$redirect
259 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
260 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
261 echo "Yardstick: Running docker cmd: ${cmd}"
264 echo "Yardstick: done!"
267 name: yardstick-vtcdaily
272 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
278 name: yardstick-fetch-os-creds
281 !include-raw: ../../utils/fetch_os_creds.sh
284 name: yardstick-cleanup
288 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
290 echo "Cleaning up docker containers/images..."
291 # Remove previous running containers if exist
292 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
293 echo "Removing existing opnfv/yardstick containers..."
294 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
298 # Remove existing images if exist
299 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
300 echo "Docker images to remove:"
301 docker images | head -1 && docker images | grep opnfv/yardstick
302 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
303 for tag in "${image_tags[@]}"; do
304 echo "Removing docker image opnfv/yardstick:$tag..."
305 docker rmi opnfv/yardstick:$tag >$redirect
309 ########################
311 ########################
313 name: 'yardstick-params-intel-pod5'
316 name: YARDSTICK_DB_BACKEND
317 default: '-i 104.197.68.199:8086'
318 description: 'Arguments to use in order to choose the backend DB'
321 name: 'yardstick-params-intel-pod6'
324 name: YARDSTICK_DB_BACKEND
325 default: '-i 104.197.68.199:8086'
326 description: 'Arguments to use in order to choose the backend DB'
329 name: 'yardstick-params-intel-pod8'
332 name: YARDSTICK_DB_BACKEND
334 description: 'Arguments to use in order to choose the backend DB'
337 name: 'yardstick-params-ericsson-pod1'
340 name: YARDSTICK_DB_BACKEND
341 default: '-i 104.197.68.199:8086'
342 description: 'Arguments to use in order to choose the backend DB'
345 name: 'yardstick-params-ericsson-pod2'
348 name: YARDSTICK_DB_BACKEND
349 default: '-i 104.197.68.199:8086'
350 description: 'Arguments to use in order to choose the backend DB'
353 name: 'yardstick-params-opnfv-jump-1'
356 name: YARDSTICK_DB_BACKEND
357 default: '-i 104.197.68.199:8086'
358 description: 'Arguments to use in order to choose the backend DB'
361 name: 'yardstick-params-opnfv-jump-2'
364 name: YARDSTICK_DB_BACKEND
365 default: '-i 104.197.68.199:8086'
366 description: 'Arguments to use in order to choose the backend DB'
369 name: 'yardstick-params-huawei-us-deploy-bare-1'
372 name: YARDSTICK_DB_BACKEND
373 default: '-i 104.197.68.199:8086'
374 description: 'Arguments to use in order to choose the backend DB'
377 name: 'yardstick-params-huawei-us-deploy-bare-2'
380 name: YARDSTICK_DB_BACKEND
381 default: '-i 104.197.68.199:8086'
382 description: 'Arguments to use in order to choose the backend DB'
385 name: 'yardstick-params-zte-build-1'
388 name: YARDSTICK_DB_BACKEND
390 description: 'Arguments to use in order to choose the backend DB'
393 name: 'yardstick-params-orange-pod2'
396 name: YARDSTICK_DB_BACKEND
397 default: '-i 104.197.68.199:8086'
398 description: 'Arguments to use in order to choose the backend DB'
401 name: 'yardstick-params-virtual'
404 name: YARDSTICK_DB_BACKEND
406 description: 'Arguments to use in order to choose the backend DB'
409 name: 'yardstick-params-huawei-virtual'
412 name: YARDSTICK_DB_BACKEND
414 description: 'Arguments to use in order to choose the backend DB'
417 name: 'yardstick-params-huawei-sh-test-2'
420 name: YARDSTICK_DB_BACKEND
422 description: 'Arguments to use in order to choose the backend DB'
424 #######################
426 #######################
427 # trigger for PODs to only run yardstick test suites
429 name: 'yardstick-daily-zte-build-1-trigger'
434 name: 'yardstick-vtcdaily-ericsson-pod1-trigger'
439 name: 'yardstick-daily-huawei-sh-test-2-trigger'