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 #--------------------------------
38 - huawei-us-deploy-bare-1:
58 #--------------------------------
60 #--------------------------------
105 #--------------------------------
108 - 'yardstick-{installer}-{pod}-{suite}-{stream}'
110 ################################
112 ################################
114 name: 'yardstick-{installer}-{pod}-{suite}-{stream}'
127 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
130 - 'yardstick-{pod}-trigger'
136 - '{installer}-defaults'
137 - 'yardstick-params-{pod}'
139 name: DEPLOY_SCENARIO
140 default: 'os-odl_l2-nofeature-ha'
142 name: YARDSTICK_SUITE_NAME
143 default: opnfv_${{NODE_NAME}}_{suite}.yaml
144 description: 'Path to test suite'
148 description: "Show debut output information"
152 credentials-id: '{ssh-credentials}'
157 - 'yardstick-cleanup'
158 #- 'yardstick-fetch-os-creds'
159 - 'yardstick-{suite}'
163 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
165 ########################
167 ########################
169 name: yardstick-daily
174 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
176 # labconfig is used only for joid
179 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
180 instack_mac=$(sudo virsh domiflist instack | grep default | \
181 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
182 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
183 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
184 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
185 #note: this happens only in opnfv-lf-pod1
186 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
187 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
189 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
190 # If production lab then creds may be retrieved dynamically
191 # creds are on the jumphost, always in the same folder
192 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
193 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
194 # replace the default one by the customized one provided by jenkins config
197 opts="--privileged=true --rm"
198 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
199 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
200 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
202 # Pull the latest image
203 docker pull opnfv/yardstick >$redirect
206 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
207 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
208 echo "Yardstick: Running docker cmd: ${cmd}"
211 echo "Yardstick: done!"
214 name: yardstick-vtcdaily
219 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
225 name: yardstick-fetch-os-creds
228 !include-raw: ../../utils/fetch_os_creds.sh
231 name: yardstick-cleanup
235 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
237 echo "Cleaning up docker containers/images..."
238 # Remove previous running containers if exist
239 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
240 echo "Removing existing opnfv/yardstick containers..."
241 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
245 # Remove existing images if exist
246 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
247 echo "Docker images to remove:"
248 docker images | head -1 && docker images | grep opnfv/yardstick
249 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
250 for tag in "${image_tags[@]}"; do
251 echo "Removing docker image opnfv/yardstick:$tag..."
252 docker rmi opnfv/yardstick:$tag >$redirect
256 ########################
258 ########################
260 name: 'yardstick-params-intel-pod5'
263 name: YARDSTICK_DB_BACKEND
265 description: 'Arguments to use in order to choose the backend DB'
268 name: 'yardstick-params-intel-pod6'
271 name: YARDSTICK_DB_BACKEND
273 description: 'Arguments to use in order to choose the backend DB'
276 name: 'yardstick-params-intel-pod8'
279 name: YARDSTICK_DB_BACKEND
281 description: 'Arguments to use in order to choose the backend DB'
284 name: 'yardstick-params-ericsson-pod1'
287 name: YARDSTICK_DB_BACKEND
288 default: '-i 10.118.36.90:8086'
289 description: 'Arguments to use in order to choose the backend DB'
292 name: 'yardstick-params-ericsson-pod2'
295 name: YARDSTICK_DB_BACKEND
296 default: '-i 10.118.36.90:8086'
297 description: 'Arguments to use in order to choose the backend DB'
300 name: 'yardstick-params-opnfv-jump-1'
303 name: YARDSTICK_DB_BACKEND
304 default: '-r 213.77.62.197/results'
305 description: 'Arguments to use in order to choose the backend DB'
308 name: 'yardstick-params-opnfv-jump-2'
311 name: YARDSTICK_DB_BACKEND
312 default: '-r 213.77.62.197/results'
313 description: 'Arguments to use in order to choose the backend DB'
316 name: 'yardstick-params-huawei-us-deploy-bare-1'
319 name: YARDSTICK_DB_BACKEND
321 description: 'Arguments to use in order to choose the backend DB'
324 name: 'yardstick-params-zte-build-1'
327 name: YARDSTICK_DB_BACKEND
329 description: 'Arguments to use in order to choose the backend DB'
332 name: 'yardstick-params-orange-pod2'
335 name: YARDSTICK_DB_BACKEND
337 description: 'Arguments to use in order to choose the backend DB'
340 name: 'yardstick-params-virtual'
343 name: YARDSTICK_DB_BACKEND
345 description: 'Arguments to use in order to choose the backend DB'
348 name: 'yardstick-params-huawei-virtual'
351 name: YARDSTICK_DB_BACKEND
353 description: 'Arguments to use in order to choose the backend DB'
355 #######################
357 #######################
358 # trigger for PODs to only run yardstick test suites
360 name: 'yardstick-zte-build-1-trigger'
365 name: 'yardstick-intel-pod5-trigger'
370 name: 'yardstick-intel-pod6-trigger'
375 name: 'yardstick-intel-pod8-trigger'
380 name: 'yardstick-ericsson-pod1-trigger'
385 name: 'yardstick-ericsson-pod2-trigger'
390 name: 'yardstick-opnfv-jump-1-trigger'
395 name: 'yardstick-opnfv-jump-2-trigger'
400 name: 'yardstick-huawei-us-deploy-bare-1-trigger'
405 name: 'yardstick-orange-pod2-trigger'
410 name: 'yardstick-virtual-trigger'
415 name: 'yardstick-huawei-virtual-trigger'