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'
66 #--------------------------------
68 #--------------------------------
72 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
77 auto-trigger-name: 'yardstick-vtcdaily-ericsson-pod1-trigger'
82 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
87 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
92 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
97 auto-trigger-name: 'yardstick-daily-zte-build-1-trigger'
102 auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
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'
124 #--------------------------------
127 - 'yardstick-{installer}-{pod}-{suite}-{stream}'
129 ################################
131 ################################
133 name: 'yardstick-{installer}-{pod}-{suite}-{stream}'
146 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
149 - '{auto-trigger-name}'
155 - '{installer}-defaults'
156 - 'yardstick-params-{pod}'
158 name: DEPLOY_SCENARIO
159 default: 'os-odl_l2-nofeature-ha'
161 name: YARDSTICK_SUITE_NAME
162 default: opnfv_${{NODE_NAME}}_{suite}.yaml
163 description: 'Path to test suite'
167 description: "Show debut output information"
171 credentials-id: '{ssh-credentials}'
176 - 'yardstick-cleanup'
177 #- 'yardstick-fetch-os-creds'
178 - 'yardstick-{suite}'
182 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
184 ########################
186 ########################
188 name: yardstick-daily
193 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
195 # labconfig is used only for joid
198 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
199 instack_mac=$(sudo virsh domiflist instack | grep default | \
200 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
201 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
202 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
203 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
204 #note: this happens only in opnfv-lf-pod1
205 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
206 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
208 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
209 # If production lab then creds may be retrieved dynamically
210 # creds are on the jumphost, always in the same folder
211 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
212 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
213 # replace the default one by the customized one provided by jenkins config
216 opts="--privileged=true --rm"
217 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
218 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
219 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
221 # Pull the latest image
222 docker pull opnfv/yardstick >$redirect
225 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
226 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
227 echo "Yardstick: Running docker cmd: ${cmd}"
230 echo "Yardstick: done!"
233 name: yardstick-vtcdaily
238 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
244 name: yardstick-fetch-os-creds
247 !include-raw: ../../utils/fetch_os_creds.sh
250 name: yardstick-cleanup
254 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
256 echo "Cleaning up docker containers/images..."
257 # Remove previous running containers if exist
258 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
259 echo "Removing existing opnfv/yardstick containers..."
260 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
264 # Remove existing images if exist
265 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
266 echo "Docker images to remove:"
267 docker images | head -1 && docker images | grep opnfv/yardstick
268 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
269 for tag in "${image_tags[@]}"; do
270 echo "Removing docker image opnfv/yardstick:$tag..."
271 docker rmi opnfv/yardstick:$tag >$redirect
275 ########################
277 ########################
279 name: 'yardstick-params-intel-pod5'
282 name: YARDSTICK_DB_BACKEND
284 description: 'Arguments to use in order to choose the backend DB'
287 name: 'yardstick-params-intel-pod6'
290 name: YARDSTICK_DB_BACKEND
292 description: 'Arguments to use in order to choose the backend DB'
295 name: 'yardstick-params-intel-pod8'
298 name: YARDSTICK_DB_BACKEND
300 description: 'Arguments to use in order to choose the backend DB'
303 name: 'yardstick-params-ericsson-pod1'
306 name: YARDSTICK_DB_BACKEND
307 default: '-i 10.118.36.90:8086'
308 description: 'Arguments to use in order to choose the backend DB'
311 name: 'yardstick-params-ericsson-pod2'
314 name: YARDSTICK_DB_BACKEND
315 default: '-i 10.118.36.90:8086'
316 description: 'Arguments to use in order to choose the backend DB'
319 name: 'yardstick-params-opnfv-jump-1'
322 name: YARDSTICK_DB_BACKEND
323 default: '-r 213.77.62.197/results'
324 description: 'Arguments to use in order to choose the backend DB'
327 name: 'yardstick-params-opnfv-jump-2'
330 name: YARDSTICK_DB_BACKEND
331 default: '-r 213.77.62.197/results'
332 description: 'Arguments to use in order to choose the backend DB'
335 name: 'yardstick-params-huawei-us-deploy-bare-1'
338 name: YARDSTICK_DB_BACKEND
340 description: 'Arguments to use in order to choose the backend DB'
343 name: 'yardstick-params-zte-build-1'
346 name: YARDSTICK_DB_BACKEND
348 description: 'Arguments to use in order to choose the backend DB'
351 name: 'yardstick-params-orange-pod2'
354 name: YARDSTICK_DB_BACKEND
356 description: 'Arguments to use in order to choose the backend DB'
359 name: 'yardstick-params-virtual'
362 name: YARDSTICK_DB_BACKEND
364 description: 'Arguments to use in order to choose the backend DB'
367 name: 'yardstick-params-huawei-virtual'
370 name: YARDSTICK_DB_BACKEND
372 description: 'Arguments to use in order to choose the backend DB'
374 #######################
376 #######################
377 # trigger for PODs to only run yardstick test suites
379 name: 'yardstick-daily-zte-build-1-trigger'
384 name: 'yardstick-vtcdaily-ericsson-pod1-trigger'