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'
157 - '{auto-trigger-name}'
163 - '{installer}-defaults'
164 - 'yardstick-params-{pod}'
166 name: DEPLOY_SCENARIO
167 default: 'os-odl_l2-nofeature-ha'
169 name: YARDSTICK_SUITE_NAME
170 default: opnfv_${{NODE_NAME}}_{suite}.yaml
171 description: 'Path to test suite'
175 description: "Show debut output information"
179 credentials-id: '{ssh-credentials}'
184 - 'yardstick-cleanup'
185 #- 'yardstick-fetch-os-creds'
186 - 'yardstick-{suite}'
190 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
192 ########################
194 ########################
196 name: yardstick-daily
201 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
203 # labconfig is used only for joid
206 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
207 instack_mac=$(sudo virsh domiflist instack | grep default | \
208 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
209 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
210 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
211 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
212 #note: this happens only in opnfv-lf-pod1
213 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
214 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
216 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
217 # If production lab then creds may be retrieved dynamically
218 # creds are on the jumphost, always in the same folder
219 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
220 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
221 # replace the default one by the customized one provided by jenkins config
224 opts="--privileged=true --rm"
225 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
226 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
227 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
229 # Pull the latest image
230 docker pull opnfv/yardstick >$redirect
233 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
234 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
235 echo "Yardstick: Running docker cmd: ${cmd}"
238 echo "Yardstick: done!"
241 name: yardstick-vtcdaily
246 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
252 name: yardstick-fetch-os-creds
255 !include-raw: ../../utils/fetch_os_creds.sh
258 name: yardstick-cleanup
262 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
264 echo "Cleaning up docker containers/images..."
265 # Remove previous running containers if exist
266 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
267 echo "Removing existing opnfv/yardstick containers..."
268 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
272 # Remove existing images if exist
273 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
274 echo "Docker images to remove:"
275 docker images | head -1 && docker images | grep opnfv/yardstick
276 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
277 for tag in "${image_tags[@]}"; do
278 echo "Removing docker image opnfv/yardstick:$tag..."
279 docker rmi opnfv/yardstick:$tag >$redirect
283 ########################
285 ########################
287 name: 'yardstick-params-intel-pod5'
290 name: YARDSTICK_DB_BACKEND
292 description: 'Arguments to use in order to choose the backend DB'
295 name: 'yardstick-params-intel-pod6'
298 name: YARDSTICK_DB_BACKEND
300 description: 'Arguments to use in order to choose the backend DB'
303 name: 'yardstick-params-intel-pod8'
306 name: YARDSTICK_DB_BACKEND
308 description: 'Arguments to use in order to choose the backend DB'
311 name: 'yardstick-params-ericsson-pod1'
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-ericsson-pod2'
322 name: YARDSTICK_DB_BACKEND
323 default: '-i 10.118.36.90:8086'
324 description: 'Arguments to use in order to choose the backend DB'
327 name: 'yardstick-params-opnfv-jump-1'
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-opnfv-jump-2'
338 name: YARDSTICK_DB_BACKEND
339 default: '-r 213.77.62.197/results'
340 description: 'Arguments to use in order to choose the backend DB'
343 name: 'yardstick-params-huawei-us-deploy-bare-1'
346 name: YARDSTICK_DB_BACKEND
348 description: 'Arguments to use in order to choose the backend DB'
351 name: 'yardstick-params-zte-build-1'
354 name: YARDSTICK_DB_BACKEND
356 description: 'Arguments to use in order to choose the backend DB'
359 name: 'yardstick-params-orange-pod2'
362 name: YARDSTICK_DB_BACKEND
364 description: 'Arguments to use in order to choose the backend DB'
367 name: 'yardstick-params-virtual'
370 name: YARDSTICK_DB_BACKEND
372 description: 'Arguments to use in order to choose the backend DB'
375 name: 'yardstick-params-huawei-virtual'
378 name: YARDSTICK_DB_BACKEND
380 description: 'Arguments to use in order to choose the backend DB'
382 #######################
384 #######################
385 # trigger for PODs to only run yardstick test suites
387 name: 'yardstick-daily-zte-build-1-trigger'
392 name: 'yardstick-vtcdaily-ericsson-pod1-trigger'