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'
41 - huawei-us-deploy-bare-1:
44 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
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'
71 #--------------------------------
73 #--------------------------------
77 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
82 auto-trigger-name: 'yardstick-vtcdaily-ericsson-pod1-trigger'
87 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
92 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
97 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
102 auto-trigger-name: 'yardstick-daily-zte-build-1-trigger'
107 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
112 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
117 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
122 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
127 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
129 #--------------------------------
132 - 'yardstick-{installer}-{pod}-{suite}-{stream}'
134 ################################
136 ################################
138 name: 'yardstick-{installer}-{pod}-{suite}-{stream}'
151 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
154 - '{auto-trigger-name}'
160 - '{installer}-defaults'
161 - 'yardstick-params-{pod}'
163 name: DEPLOY_SCENARIO
164 default: 'os-odl_l2-nofeature-ha'
166 name: YARDSTICK_SUITE_NAME
167 default: opnfv_${{NODE_NAME}}_{suite}.yaml
168 description: 'Path to test suite'
172 description: "Show debut output information"
176 credentials-id: '{ssh-credentials}'
181 - 'yardstick-cleanup'
182 #- 'yardstick-fetch-os-creds'
183 - 'yardstick-{suite}'
187 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
189 ########################
191 ########################
193 name: yardstick-daily
198 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
200 # labconfig is used only for joid
203 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
204 instack_mac=$(sudo virsh domiflist instack | grep default | \
205 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
206 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
207 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
208 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
209 #note: this happens only in opnfv-lf-pod1
210 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
211 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
213 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
214 # If production lab then creds may be retrieved dynamically
215 # creds are on the jumphost, always in the same folder
216 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
217 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
218 # replace the default one by the customized one provided by jenkins config
221 opts="--privileged=true --rm"
222 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
223 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
224 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
226 # Pull the latest image
227 docker pull opnfv/yardstick >$redirect
230 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
231 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
232 echo "Yardstick: Running docker cmd: ${cmd}"
235 echo "Yardstick: done!"
238 name: yardstick-vtcdaily
243 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
249 name: yardstick-fetch-os-creds
252 !include-raw: ../../utils/fetch_os_creds.sh
255 name: yardstick-cleanup
259 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
261 echo "Cleaning up docker containers/images..."
262 # Remove previous running containers if exist
263 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
264 echo "Removing existing opnfv/yardstick containers..."
265 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
269 # Remove existing images if exist
270 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
271 echo "Docker images to remove:"
272 docker images | head -1 && docker images | grep opnfv/yardstick
273 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
274 for tag in "${image_tags[@]}"; do
275 echo "Removing docker image opnfv/yardstick:$tag..."
276 docker rmi opnfv/yardstick:$tag >$redirect
280 ########################
282 ########################
284 name: 'yardstick-params-intel-pod5'
287 name: YARDSTICK_DB_BACKEND
289 description: 'Arguments to use in order to choose the backend DB'
292 name: 'yardstick-params-intel-pod6'
295 name: YARDSTICK_DB_BACKEND
297 description: 'Arguments to use in order to choose the backend DB'
300 name: 'yardstick-params-intel-pod8'
303 name: YARDSTICK_DB_BACKEND
305 description: 'Arguments to use in order to choose the backend DB'
308 name: 'yardstick-params-ericsson-pod1'
311 name: YARDSTICK_DB_BACKEND
312 default: '-i 10.118.36.90:8086'
313 description: 'Arguments to use in order to choose the backend DB'
316 name: 'yardstick-params-ericsson-pod2'
319 name: YARDSTICK_DB_BACKEND
320 default: '-i 10.118.36.90:8086'
321 description: 'Arguments to use in order to choose the backend DB'
324 name: 'yardstick-params-opnfv-jump-1'
327 name: YARDSTICK_DB_BACKEND
328 default: '-r 213.77.62.197/results'
329 description: 'Arguments to use in order to choose the backend DB'
332 name: 'yardstick-params-opnfv-jump-2'
335 name: YARDSTICK_DB_BACKEND
336 default: '-r 213.77.62.197/results'
337 description: 'Arguments to use in order to choose the backend DB'
340 name: 'yardstick-params-huawei-us-deploy-bare-1'
343 name: YARDSTICK_DB_BACKEND
345 description: 'Arguments to use in order to choose the backend DB'
348 name: 'yardstick-params-zte-build-1'
351 name: YARDSTICK_DB_BACKEND
353 description: 'Arguments to use in order to choose the backend DB'
356 name: 'yardstick-params-orange-pod2'
359 name: YARDSTICK_DB_BACKEND
361 description: 'Arguments to use in order to choose the backend DB'
364 name: 'yardstick-params-virtual'
367 name: YARDSTICK_DB_BACKEND
369 description: 'Arguments to use in order to choose the backend DB'
372 name: 'yardstick-params-huawei-virtual'
375 name: YARDSTICK_DB_BACKEND
377 description: 'Arguments to use in order to choose the backend DB'
379 #######################
381 #######################
382 # trigger for PODs to only run yardstick test suites
384 name: 'yardstick-daily-zte-build-1-trigger'
389 name: 'yardstick-vtcdaily-ericsson-pod1-trigger'