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: 'brahmaputra-trigger-daily-disabled'
87 auto-trigger-name: 'yardstick-vtcdaily-ericsson-pod1-trigger'
92 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
97 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
102 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
107 auto-trigger-name: 'yardstick-daily-zte-build-1-trigger'
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'
132 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
134 #--------------------------------
137 - 'yardstick-{installer}-{pod}-{suite}-{stream}'
139 ################################
141 ################################
143 name: 'yardstick-{installer}-{pod}-{suite}-{stream}'
156 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
162 - '{auto-trigger-name}'
168 - '{installer}-defaults'
169 - 'yardstick-params-{pod}'
171 name: DEPLOY_SCENARIO
172 default: 'os-odl_l2-nofeature-ha'
174 name: YARDSTICK_SUITE_NAME
175 default: opnfv_${{NODE_NAME}}_{suite}.yaml
176 description: 'Path to test suite'
180 description: "Show debut output information"
184 credentials-id: '{ssh-credentials}'
189 - 'yardstick-cleanup'
190 #- 'yardstick-fetch-os-creds'
191 - 'yardstick-{suite}'
195 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
197 ########################
199 ########################
201 name: yardstick-daily
206 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
208 # labconfig is used only for joid
211 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
212 instack_mac=$(sudo virsh domiflist instack | grep default | \
213 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
214 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
215 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
216 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
217 #note: this happens only in opnfv-lf-pod1
218 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
219 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
221 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
222 # If production lab then creds may be retrieved dynamically
223 # creds are on the jumphost, always in the same folder
224 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
225 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
226 # replace the default one by the customized one provided by jenkins config
229 opts="--privileged=true --rm"
230 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
231 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
232 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
234 # Pull the latest image
235 docker pull opnfv/yardstick >$redirect
238 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
239 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
240 echo "Yardstick: Running docker cmd: ${cmd}"
243 echo "Yardstick: done!"
246 name: yardstick-vtcdaily
251 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
257 name: yardstick-fetch-os-creds
260 !include-raw: ../../utils/fetch_os_creds.sh
263 name: yardstick-cleanup
267 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
269 echo "Cleaning up docker containers/images..."
270 # Remove previous running containers if exist
271 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
272 echo "Removing existing opnfv/yardstick containers..."
273 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
277 # Remove existing images if exist
278 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
279 echo "Docker images to remove:"
280 docker images | head -1 && docker images | grep opnfv/yardstick
281 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
282 for tag in "${image_tags[@]}"; do
283 echo "Removing docker image opnfv/yardstick:$tag..."
284 docker rmi opnfv/yardstick:$tag >$redirect
288 ########################
290 ########################
292 name: 'yardstick-params-intel-pod5'
295 name: YARDSTICK_DB_BACKEND
297 description: 'Arguments to use in order to choose the backend DB'
300 name: 'yardstick-params-intel-pod6'
303 name: YARDSTICK_DB_BACKEND
305 description: 'Arguments to use in order to choose the backend DB'
308 name: 'yardstick-params-intel-pod8'
311 name: YARDSTICK_DB_BACKEND
313 description: 'Arguments to use in order to choose the backend DB'
316 name: 'yardstick-params-ericsson-pod1'
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-ericsson-pod2'
327 name: YARDSTICK_DB_BACKEND
328 default: '-i 10.118.36.90:8086'
329 description: 'Arguments to use in order to choose the backend DB'
332 name: 'yardstick-params-opnfv-jump-1'
335 name: YARDSTICK_DB_BACKEND
336 default: '-i 10.118.36.90:8086'
337 description: 'Arguments to use in order to choose the backend DB'
340 name: 'yardstick-params-opnfv-jump-2'
343 name: YARDSTICK_DB_BACKEND
344 default: '-i 10.118.36.90:8086'
345 description: 'Arguments to use in order to choose the backend DB'
348 name: 'yardstick-params-huawei-us-deploy-bare-1'
351 name: YARDSTICK_DB_BACKEND
353 description: 'Arguments to use in order to choose the backend DB'
356 name: 'yardstick-params-zte-build-1'
359 name: YARDSTICK_DB_BACKEND
361 description: 'Arguments to use in order to choose the backend DB'
364 name: 'yardstick-params-orange-pod2'
367 name: YARDSTICK_DB_BACKEND
369 description: 'Arguments to use in order to choose the backend DB'
372 name: 'yardstick-params-virtual'
375 name: YARDSTICK_DB_BACKEND
377 description: 'Arguments to use in order to choose the backend DB'
380 name: 'yardstick-params-huawei-virtual'
383 name: YARDSTICK_DB_BACKEND
385 description: 'Arguments to use in order to choose the backend DB'
387 #######################
389 #######################
390 # trigger for PODs to only run yardstick test suites
392 name: 'yardstick-daily-zte-build-1-trigger'
397 name: 'yardstick-vtcdaily-ericsson-pod1-trigger'