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}'
120 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
123 - 'yardstick-{pod}-trigger'
129 - '{installer}-defaults'
130 - 'yardstick-params-{pod}'
132 name: DEPLOY_SCENARIO
133 default: 'os-odl_l2-nofeature-ha'
135 name: YARDSTICK_SUITE_NAME
136 default: opnfv_${{NODE_NAME}}_{suite}.yaml
137 description: 'Path to test suite'
141 description: "Show debut output information"
145 credentials-id: '{ssh-credentials}'
150 - 'yardstick-cleanup'
151 #- 'yardstick-fetch-os-creds'
152 - 'yardstick-{suite}'
156 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
158 ########################
160 ########################
162 name: yardstick-daily
167 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
169 # labconfig is used only for joid
172 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
173 instack_mac=$(sudo virsh domiflist instack | grep default | \
174 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
175 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
176 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
177 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
178 #note: this happens only in opnfv-lf-pod1
179 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
180 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
182 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
183 # If production lab then creds may be retrieved dynamically
184 # creds are on the jumphost, always in the same folder
185 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
186 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
187 # replace the default one by the customized one provided by jenkins config
190 opts="--privileged=true --rm"
191 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
192 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
193 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
195 # Pull the latest image
196 docker pull opnfv/yardstick >$redirect
199 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
200 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
201 echo "Yardstick: Running docker cmd: ${cmd}"
204 echo "Yardstick: done!"
207 name: yardstick-vtcdaily
212 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
218 name: yardstick-fetch-os-creds
221 !include-raw: ../../utils/fetch_os_creds.sh
224 name: yardstick-cleanup
228 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
230 echo "Cleaning up docker containers/images..."
231 # Remove previous running containers if exist
232 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
233 echo "Removing existing opnfv/yardstick containers..."
234 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
238 # Remove existing images if exist
239 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
240 echo "Docker images to remove:"
241 docker images | head -1 && docker images | grep opnfv/yardstick
242 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
243 for tag in "${image_tags[@]}"; do
244 echo "Removing docker image opnfv/yardstick:$tag..."
245 docker rmi opnfv/yardstick:$tag >$redirect
249 ########################
251 ########################
253 name: 'yardstick-params-intel-pod5'
256 name: YARDSTICK_DB_BACKEND
258 description: 'Arguments to use in order to choose the backend DB'
261 name: 'yardstick-params-intel-pod6'
264 name: YARDSTICK_DB_BACKEND
266 description: 'Arguments to use in order to choose the backend DB'
269 name: 'yardstick-params-intel-pod8'
272 name: YARDSTICK_DB_BACKEND
274 description: 'Arguments to use in order to choose the backend DB'
277 name: 'yardstick-params-ericsson-pod1'
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-ericsson-pod2'
288 name: YARDSTICK_DB_BACKEND
289 default: '-i 10.118.36.90:8086'
290 description: 'Arguments to use in order to choose the backend DB'
293 name: 'yardstick-params-opnfv-jump-1'
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-opnfv-jump-2'
304 name: YARDSTICK_DB_BACKEND
305 default: '-r 213.77.62.197/results'
306 description: 'Arguments to use in order to choose the backend DB'
309 name: 'yardstick-params-huawei-us-deploy-bare-1'
312 name: YARDSTICK_DB_BACKEND
314 description: 'Arguments to use in order to choose the backend DB'
317 name: 'yardstick-params-zte-build-1'
320 name: YARDSTICK_DB_BACKEND
322 description: 'Arguments to use in order to choose the backend DB'
325 name: 'yardstick-params-orange-pod2'
328 name: YARDSTICK_DB_BACKEND
330 description: 'Arguments to use in order to choose the backend DB'
333 name: 'yardstick-params-virtual'
336 name: YARDSTICK_DB_BACKEND
338 description: 'Arguments to use in order to choose the backend DB'
340 #######################
342 #######################
343 # trigger for PODs to only run yardstick test suites
345 name: 'yardstick-zte-build-1-trigger'
350 name: 'yardstick-intel-pod5-trigger'
355 name: 'yardstick-intel-pod6-trigger'
360 name: 'yardstick-intel-pod8-trigger'
365 name: 'yardstick-ericsson-pod1-trigger'
370 name: 'yardstick-ericsson-pod2-trigger'
375 name: 'yardstick-opnfv-jump-1-trigger'
380 name: 'yardstick-opnfv-jump-2-trigger'
385 name: 'yardstick-huawei-us-deploy-bare-1-trigger'
390 name: 'yardstick-orange-pod2-trigger'
395 name: 'yardstick-virtual-trigger'