1 ###################################
2 # job configuration for functest
3 ###################################
9 #--------------------------------
11 #--------------------------------
16 brahmaputra: &brahmaputra
18 branch: 'stable/{stream}'
19 gs-pathname: '{stream}'
20 #--------------------------------
21 # POD, INSTALLER, AND BRANCH MAPPING
22 #--------------------------------
24 #--------------------------------
29 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
34 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
39 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
44 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
46 - huawei-us-deploy-bare-1:
49 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
54 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
59 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
64 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
69 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
74 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
76 #--------------------------------
78 #--------------------------------
82 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
87 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
92 auto-trigger-name: 'yardstick-vtcdaily-ericsson-pod1-trigger'
97 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
102 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
107 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
112 auto-trigger-name: 'yardstick-daily-zte-build-1-trigger'
117 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
122 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
127 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
132 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
137 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
139 #--------------------------------
142 - 'yardstick-{installer}-{pod}-{suite}-{stream}'
144 ################################
146 ################################
148 name: 'yardstick-{installer}-{pod}-{suite}-{stream}'
161 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
167 - '{auto-trigger-name}'
173 - '{installer}-defaults'
174 - 'yardstick-params-{pod}'
176 name: DEPLOY_SCENARIO
177 default: 'os-odl_l2-nofeature-ha'
179 name: YARDSTICK_SUITE_NAME
180 default: opnfv_${{NODE_NAME}}_{suite}.yaml
181 description: 'Path to test suite'
185 description: "Show debut output information"
189 credentials-id: '{ssh-credentials}'
194 - 'yardstick-cleanup'
195 #- 'yardstick-fetch-os-creds'
196 - 'yardstick-{suite}'
200 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
202 ########################
204 ########################
206 name: yardstick-daily
211 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
213 # labconfig is used only for joid
216 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
217 instack_mac=$(sudo virsh domiflist instack | grep default | \
218 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
219 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
220 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
221 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
222 #note: this happens only in opnfv-lf-pod1
223 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
224 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
226 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
227 # If production lab then creds may be retrieved dynamically
228 # creds are on the jumphost, always in the same folder
229 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
230 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
231 # replace the default one by the customized one provided by jenkins config
234 opts="--privileged=true --rm"
235 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
236 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
237 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
239 # Pull the latest image
240 docker pull opnfv/yardstick >$redirect
243 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
244 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
245 echo "Yardstick: Running docker cmd: ${cmd}"
248 echo "Yardstick: done!"
251 name: yardstick-vtcdaily
256 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
262 name: yardstick-fetch-os-creds
265 !include-raw: ../../utils/fetch_os_creds.sh
268 name: yardstick-cleanup
272 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
274 echo "Cleaning up docker containers/images..."
275 # Remove previous running containers if exist
276 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
277 echo "Removing existing opnfv/yardstick containers..."
278 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
282 # Remove existing images if exist
283 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
284 echo "Docker images to remove:"
285 docker images | head -1 && docker images | grep opnfv/yardstick
286 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
287 for tag in "${image_tags[@]}"; do
288 echo "Removing docker image opnfv/yardstick:$tag..."
289 docker rmi opnfv/yardstick:$tag >$redirect
293 ########################
295 ########################
297 name: 'yardstick-params-intel-pod5'
300 name: YARDSTICK_DB_BACKEND
301 default: '-i 104.197.68.199:8086'
302 description: 'Arguments to use in order to choose the backend DB'
305 name: 'yardstick-params-intel-pod6'
308 name: YARDSTICK_DB_BACKEND
309 default: '-i 104.197.68.199:8086'
310 description: 'Arguments to use in order to choose the backend DB'
313 name: 'yardstick-params-intel-pod8'
316 name: YARDSTICK_DB_BACKEND
318 description: 'Arguments to use in order to choose the backend DB'
321 name: 'yardstick-params-ericsson-pod1'
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-ericsson-pod2'
332 name: YARDSTICK_DB_BACKEND
333 default: '-i 104.197.68.199:8086'
334 description: 'Arguments to use in order to choose the backend DB'
337 name: 'yardstick-params-opnfv-jump-1'
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-opnfv-jump-2'
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-huawei-us-deploy-bare-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-zte-build-1'
364 name: YARDSTICK_DB_BACKEND
366 description: 'Arguments to use in order to choose the backend DB'
369 name: 'yardstick-params-orange-pod2'
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-virtual'
380 name: YARDSTICK_DB_BACKEND
382 description: 'Arguments to use in order to choose the backend DB'
385 name: 'yardstick-params-huawei-virtual'
388 name: YARDSTICK_DB_BACKEND
390 description: 'Arguments to use in order to choose the backend DB'
392 #######################
394 #######################
395 # trigger for PODs to only run yardstick test suites
397 name: 'yardstick-daily-zte-build-1-trigger'
402 name: 'yardstick-vtcdaily-ericsson-pod1-trigger'