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: 'brahmaputra-trigger-daily-disabled'
141 #--------------------------------
144 - 'yardstick-{installer}-{pod}-{suite}-{stream}'
146 ################################
148 ################################
150 name: 'yardstick-{installer}-{pod}-{suite}-{stream}'
163 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
169 - '{auto-trigger-name}'
175 - '{installer}-defaults'
176 - 'yardstick-params-{pod}'
178 name: DEPLOY_SCENARIO
179 default: 'os-odl_l2-nofeature-ha'
182 default: '{docker-tag}'
183 description: 'Tag to pull docker image'
185 name: YARDSTICK_SUITE_NAME
186 default: opnfv_${{NODE_NAME}}_{suite}.yaml
187 description: 'Path to test suite'
191 description: "Show debut output information"
195 credentials-id: '{ssh-credentials}'
200 - 'yardstick-cleanup'
201 #- 'yardstick-fetch-os-creds'
202 - 'yardstick-{suite}'
206 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
208 ########################
210 ########################
212 name: yardstick-daily
217 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
219 # labconfig is used only for joid
222 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
223 instack_mac=$(sudo virsh domiflist instack | grep default | \
224 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
225 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
226 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
227 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
228 #note: this happens only in opnfv-lf-pod1
229 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
230 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
232 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
233 # If production lab then creds may be retrieved dynamically
234 # creds are on the jumphost, always in the same folder
235 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
236 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
237 # replace the default one by the customized one provided by jenkins config
240 opts="--privileged=true --rm"
241 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
242 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
243 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
245 # Pull the latest image
246 docker pull opnfv/yardstick:$DOCKER_TAG >$redirect
249 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
250 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
251 echo "Yardstick: Running docker cmd: ${cmd}"
254 echo "Yardstick: done!"
257 name: yardstick-vtcdaily
262 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
268 name: yardstick-fetch-os-creds
271 !include-raw: ../../utils/fetch_os_creds.sh
274 name: yardstick-cleanup
278 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
280 echo "Cleaning up docker containers/images..."
281 # Remove previous running containers if exist
282 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
283 echo "Removing existing opnfv/yardstick containers..."
284 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
288 # Remove existing images if exist
289 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
290 echo "Docker images to remove:"
291 docker images | head -1 && docker images | grep opnfv/yardstick
292 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
293 for tag in "${image_tags[@]}"; do
294 echo "Removing docker image opnfv/yardstick:$tag..."
295 docker rmi opnfv/yardstick:$tag >$redirect
299 ########################
301 ########################
303 name: 'yardstick-params-intel-pod5'
306 name: YARDSTICK_DB_BACKEND
307 default: '-i 104.197.68.199:8086'
308 description: 'Arguments to use in order to choose the backend DB'
311 name: 'yardstick-params-intel-pod6'
314 name: YARDSTICK_DB_BACKEND
315 default: '-i 104.197.68.199:8086'
316 description: 'Arguments to use in order to choose the backend DB'
319 name: 'yardstick-params-intel-pod8'
322 name: YARDSTICK_DB_BACKEND
324 description: 'Arguments to use in order to choose the backend DB'
327 name: 'yardstick-params-ericsson-pod1'
330 name: YARDSTICK_DB_BACKEND
331 default: '-i 104.197.68.199:8086'
332 description: 'Arguments to use in order to choose the backend DB'
335 name: 'yardstick-params-ericsson-pod2'
338 name: YARDSTICK_DB_BACKEND
339 default: '-i 104.197.68.199:8086'
340 description: 'Arguments to use in order to choose the backend DB'
343 name: 'yardstick-params-opnfv-jump-1'
346 name: YARDSTICK_DB_BACKEND
347 default: '-i 104.197.68.199:8086'
348 description: 'Arguments to use in order to choose the backend DB'
351 name: 'yardstick-params-opnfv-jump-2'
354 name: YARDSTICK_DB_BACKEND
355 default: '-i 104.197.68.199:8086'
356 description: 'Arguments to use in order to choose the backend DB'
359 name: 'yardstick-params-huawei-us-deploy-bare-1'
362 name: YARDSTICK_DB_BACKEND
363 default: '-i 104.197.68.199:8086'
364 description: 'Arguments to use in order to choose the backend DB'
367 name: 'yardstick-params-zte-build-1'
370 name: YARDSTICK_DB_BACKEND
372 description: 'Arguments to use in order to choose the backend DB'
375 name: 'yardstick-params-orange-pod2'
378 name: YARDSTICK_DB_BACKEND
379 default: '-i 104.197.68.199:8086'
380 description: 'Arguments to use in order to choose the backend DB'
383 name: 'yardstick-params-virtual'
386 name: YARDSTICK_DB_BACKEND
388 description: 'Arguments to use in order to choose the backend DB'
391 name: 'yardstick-params-huawei-virtual'
394 name: YARDSTICK_DB_BACKEND
396 description: 'Arguments to use in order to choose the backend DB'
398 #######################
400 #######################
401 # trigger for PODs to only run yardstick test suites
403 name: 'yardstick-daily-zte-build-1-trigger'
408 name: 'yardstick-vtcdaily-ericsson-pod1-trigger'