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 #--------------------------------
35 - huawei-us-deploy-bare-1:
41 #--------------------------------
43 #--------------------------------
65 #--------------------------------
70 - 'yardstick-{installer}-{pod}-{loop}-{stream}'
72 ################################
74 ################################
76 name: 'yardstick-{installer}-{pod}-{loop}-{stream}'
82 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
88 - '{installer}-defaults'
89 - 'yardstick-params-{pod}'
92 default: 'os-odl_l2-nofeature-ha'
94 name: YARDSTICK_SUITE_NAME
95 default: opnfv_${{NODE_NAME}}_{loop}.yaml
96 description: 'Path to test suite'
100 description: "Show debut output information"
104 credentials-id: '{ssh-credentials}'
109 - 'yardstick-cleanup'
110 #- 'yardstick-fetch-os-creds'
115 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
117 ########################
119 ########################
121 name: yardstick-daily
126 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
128 # labconfig is used only for joid
131 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
132 instack_mac=$(sudo virsh domiflist instack | grep default | \
133 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
134 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
135 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
136 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
137 #note: this happens only in opnfv-lf-pod1
138 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
139 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
141 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
142 # If production lab then creds may be retrieved dynamically
143 # creds are on the jumphost, always in the same folder
144 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
145 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
146 # replace the default one by the customized one provided by jenkins config
149 opts="--privileged=true --rm"
150 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
151 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
152 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
154 # Pull the latest image
155 docker pull opnfv/yardstick >$redirect
158 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
159 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
160 echo "Yardstick: Running docker cmd: ${cmd}"
163 echo "Yardstick: done!"
166 name: yardstick-fetch-os-creds
169 !include-raw: ../../utils/fetch_os_creds.sh
172 name: yardstick-cleanup
176 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
178 echo "Cleaning up docker containers/images..."
179 # Remove previous running containers if exist
180 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
181 echo "Removing existing opnfv/yardstick containers..."
182 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
186 # Remove existing images if exist
187 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
188 echo "Docker images to remove:"
189 docker images | head -1 && docker images | grep opnfv/yardstick
190 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
191 for tag in "${image_tags[@]}"; do
192 echo "Removing docker image opnfv/yardstick:$tag..."
193 docker rmi opnfv/yardstick:$tag >$redirect
197 ########################
199 ########################
201 name: 'yardstick-params-intel-pod5'
204 name: YARDSTICK_DB_BACKEND
206 description: 'Arguments to use in order to choose the backend DB'
209 name: 'yardstick-params-intel-pod6'
212 name: YARDSTICK_DB_BACKEND
214 description: 'Arguments to use in order to choose the backend DB'
217 name: 'yardstick-params-intel-pod8'
220 name: YARDSTICK_DB_BACKEND
222 description: 'Arguments to use in order to choose the backend DB'
225 name: 'yardstick-params-ericsson-pod1'
228 name: YARDSTICK_DB_BACKEND
229 default: '-i 10.118.36.90:8086'
230 description: 'Arguments to use in order to choose the backend DB'
233 name: 'yardstick-params-ericsson-pod2'
236 name: YARDSTICK_DB_BACKEND
237 default: '-i 10.118.36.90:8086'
238 description: 'Arguments to use in order to choose the backend DB'
240 name: 'yardstick-params-opnfv-jump-1'
243 name: YARDSTICK_DB_BACKEND
244 default: '-r 213.77.62.197/results'
245 description: 'Arguments to use in order to choose the backend DB'
247 name: 'yardstick-params-opnfv-jump-2'
250 name: YARDSTICK_DB_BACKEND
251 default: '-r 213.77.62.197/results'
252 description: 'Arguments to use in order to choose the backend DB'
255 name: 'yardstick-params-huawei-us-deploy-bare-1'
258 name: YARDSTICK_DB_BACKEND
260 description: 'Arguments to use in order to choose the backend DB'
263 name: 'yardstick-params-zte-build-1'
266 name: YARDSTICK_DB_BACKEND
268 description: 'Arguments to use in order to choose the backend DB'
271 name: 'yardstick-params-orange-pod2'
274 name: YARDSTICK_DB_BACKEND
276 description: 'Arguments to use in order to choose the backend DB'