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:
46 #--------------------------------
48 #--------------------------------
81 #--------------------------------
84 - 'yardstick-{installer}-{pod}-{suite}-{stream}'
86 ################################
88 ################################
90 name: 'yardstick-{installer}-{pod}-{suite}-{stream}'
96 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
99 - 'yardstick-{pod}-trigger'
105 - '{installer}-defaults'
106 - 'yardstick-params-{pod}'
108 name: DEPLOY_SCENARIO
109 default: 'os-odl_l2-nofeature-ha'
111 name: YARDSTICK_SUITE_NAME
112 default: opnfv_${{NODE_NAME}}_{suite}.yaml
113 description: 'Path to test suite'
117 description: "Show debut output information"
121 credentials-id: '{ssh-credentials}'
126 - 'yardstick-cleanup'
127 #- 'yardstick-fetch-os-creds'
128 - 'yardstick-{suite}'
132 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
134 ########################
136 ########################
138 name: yardstick-daily
143 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
145 # labconfig is used only for joid
148 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
149 instack_mac=$(sudo virsh domiflist instack | grep default | \
150 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
151 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
152 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
153 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
154 #note: this happens only in opnfv-lf-pod1
155 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
156 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
158 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
159 # If production lab then creds may be retrieved dynamically
160 # creds are on the jumphost, always in the same folder
161 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
162 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
163 # replace the default one by the customized one provided by jenkins config
166 opts="--privileged=true --rm"
167 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
168 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
169 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
171 # Pull the latest image
172 docker pull opnfv/yardstick >$redirect
175 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
176 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
177 echo "Yardstick: Running docker cmd: ${cmd}"
180 echo "Yardstick: done!"
183 name: yardstick-vtcdaily
188 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
194 name: yardstick-fetch-os-creds
197 !include-raw: ../../utils/fetch_os_creds.sh
200 name: yardstick-cleanup
204 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
206 echo "Cleaning up docker containers/images..."
207 # Remove previous running containers if exist
208 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
209 echo "Removing existing opnfv/yardstick containers..."
210 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
214 # Remove existing images if exist
215 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
216 echo "Docker images to remove:"
217 docker images | head -1 && docker images | grep opnfv/yardstick
218 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
219 for tag in "${image_tags[@]}"; do
220 echo "Removing docker image opnfv/yardstick:$tag..."
221 docker rmi opnfv/yardstick:$tag >$redirect
225 ########################
227 ########################
229 name: 'yardstick-params-intel-pod5'
232 name: YARDSTICK_DB_BACKEND
234 description: 'Arguments to use in order to choose the backend DB'
237 name: 'yardstick-params-intel-pod6'
240 name: YARDSTICK_DB_BACKEND
242 description: 'Arguments to use in order to choose the backend DB'
245 name: 'yardstick-params-intel-pod8'
248 name: YARDSTICK_DB_BACKEND
250 description: 'Arguments to use in order to choose the backend DB'
253 name: 'yardstick-params-ericsson-pod1'
256 name: YARDSTICK_DB_BACKEND
257 default: '-i 10.118.36.90:8086'
258 description: 'Arguments to use in order to choose the backend DB'
261 name: 'yardstick-params-ericsson-pod2'
264 name: YARDSTICK_DB_BACKEND
265 default: '-i 10.118.36.90:8086'
266 description: 'Arguments to use in order to choose the backend DB'
269 name: 'yardstick-params-opnfv-jump-1'
272 name: YARDSTICK_DB_BACKEND
273 default: '-r 213.77.62.197/results'
274 description: 'Arguments to use in order to choose the backend DB'
277 name: 'yardstick-params-opnfv-jump-2'
280 name: YARDSTICK_DB_BACKEND
281 default: '-r 213.77.62.197/results'
282 description: 'Arguments to use in order to choose the backend DB'
285 name: 'yardstick-params-huawei-us-deploy-bare-1'
288 name: YARDSTICK_DB_BACKEND
290 description: 'Arguments to use in order to choose the backend DB'
293 name: 'yardstick-params-zte-build-1'
296 name: YARDSTICK_DB_BACKEND
298 description: 'Arguments to use in order to choose the backend DB'
301 name: 'yardstick-params-orange-pod2'
304 name: YARDSTICK_DB_BACKEND
306 description: 'Arguments to use in order to choose the backend DB'
308 #######################
310 #######################
311 # trigger for PODs to only run yardstick test suites
313 name: 'yardstick-zte-build-1-trigger'
318 name: 'yardstick-intel-pod5-trigger'
323 name: 'yardstick-intel-pod6-trigger'
328 name: 'yardstick-intel-pod8-trigger'
333 name: 'yardstick-ericsson-pod1-trigger'
338 name: 'yardstick-ericsson-pod2-trigger'
343 name: 'yardstick-opnfv-jump-1-trigger'
348 name: 'yardstick-opnfv-jump-2-trigger'
353 name: 'yardstick-huawei-us-deploy-bare-1-trigger'
358 name: 'yardstick-orange-pod2-trigger'