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:
54 #--------------------------------
56 #--------------------------------
97 #--------------------------------
100 - 'yardstick-{installer}-{pod}-{suite}-{stream}'
102 ################################
104 ################################
106 name: 'yardstick-{installer}-{pod}-{suite}-{stream}'
112 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
115 - 'yardstick-{pod}-trigger'
121 - '{installer}-defaults'
122 - 'yardstick-params-{pod}'
124 name: DEPLOY_SCENARIO
125 default: 'os-odl_l2-nofeature-ha'
127 name: YARDSTICK_SUITE_NAME
128 default: opnfv_${{NODE_NAME}}_{suite}.yaml
129 description: 'Path to test suite'
133 description: "Show debut output information"
137 credentials-id: '{ssh-credentials}'
142 - 'yardstick-cleanup'
143 #- 'yardstick-fetch-os-creds'
144 - 'yardstick-{suite}'
148 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
150 ########################
152 ########################
154 name: yardstick-daily
159 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
161 # labconfig is used only for joid
164 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
165 instack_mac=$(sudo virsh domiflist instack | grep default | \
166 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
167 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
168 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
169 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
170 #note: this happens only in opnfv-lf-pod1
171 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
172 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
174 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
175 # If production lab then creds may be retrieved dynamically
176 # creds are on the jumphost, always in the same folder
177 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
178 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
179 # replace the default one by the customized one provided by jenkins config
182 opts="--privileged=true --rm"
183 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
184 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
185 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
187 # Pull the latest image
188 docker pull opnfv/yardstick >$redirect
191 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
192 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
193 echo "Yardstick: Running docker cmd: ${cmd}"
196 echo "Yardstick: done!"
199 name: yardstick-vtcdaily
204 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
210 name: yardstick-fetch-os-creds
213 !include-raw: ../../utils/fetch_os_creds.sh
216 name: yardstick-cleanup
220 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
222 echo "Cleaning up docker containers/images..."
223 # Remove previous running containers if exist
224 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
225 echo "Removing existing opnfv/yardstick containers..."
226 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
230 # Remove existing images if exist
231 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
232 echo "Docker images to remove:"
233 docker images | head -1 && docker images | grep opnfv/yardstick
234 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
235 for tag in "${image_tags[@]}"; do
236 echo "Removing docker image opnfv/yardstick:$tag..."
237 docker rmi opnfv/yardstick:$tag >$redirect
241 ########################
243 ########################
245 name: 'yardstick-params-intel-pod5'
248 name: YARDSTICK_DB_BACKEND
250 description: 'Arguments to use in order to choose the backend DB'
253 name: 'yardstick-params-intel-pod6'
256 name: YARDSTICK_DB_BACKEND
258 description: 'Arguments to use in order to choose the backend DB'
261 name: 'yardstick-params-intel-pod8'
264 name: YARDSTICK_DB_BACKEND
266 description: 'Arguments to use in order to choose the backend DB'
269 name: 'yardstick-params-ericsson-pod1'
272 name: YARDSTICK_DB_BACKEND
273 default: '-i 10.118.36.90:8086'
274 description: 'Arguments to use in order to choose the backend DB'
277 name: 'yardstick-params-ericsson-pod2'
280 name: YARDSTICK_DB_BACKEND
281 default: '-i 10.118.36.90:8086'
282 description: 'Arguments to use in order to choose the backend DB'
285 name: 'yardstick-params-opnfv-jump-1'
288 name: YARDSTICK_DB_BACKEND
289 default: '-r 213.77.62.197/results'
290 description: 'Arguments to use in order to choose the backend DB'
293 name: 'yardstick-params-opnfv-jump-2'
296 name: YARDSTICK_DB_BACKEND
297 default: '-r 213.77.62.197/results'
298 description: 'Arguments to use in order to choose the backend DB'
301 name: 'yardstick-params-huawei-us-deploy-bare-1'
304 name: YARDSTICK_DB_BACKEND
306 description: 'Arguments to use in order to choose the backend DB'
309 name: 'yardstick-params-zte-build-1'
312 name: YARDSTICK_DB_BACKEND
314 description: 'Arguments to use in order to choose the backend DB'
317 name: 'yardstick-params-orange-pod2'
320 name: YARDSTICK_DB_BACKEND
322 description: 'Arguments to use in order to choose the backend DB'
325 name: 'yardstick-params-virtual'
328 name: YARDSTICK_DB_BACKEND
330 description: 'Arguments to use in order to choose the backend DB'
332 #######################
334 #######################
335 # trigger for PODs to only run yardstick test suites
337 name: 'yardstick-zte-build-1-trigger'
342 name: 'yardstick-intel-pod5-trigger'
347 name: 'yardstick-intel-pod6-trigger'
352 name: 'yardstick-intel-pod8-trigger'
357 name: 'yardstick-ericsson-pod1-trigger'
362 name: 'yardstick-ericsson-pod2-trigger'
367 name: 'yardstick-opnfv-jump-1-trigger'
372 name: 'yardstick-opnfv-jump-2-trigger'
377 name: 'yardstick-huawei-us-deploy-bare-1-trigger'
382 name: 'yardstick-orange-pod2-trigger'
387 name: 'yardstick-virtual-trigger'