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:
38 #--------------------------------
40 #--------------------------------
62 #--------------------------------
67 - 'yardstick-{installer}-{pod}-{loop}-{stream}'
69 ################################
71 ################################
73 name: 'yardstick-{installer}-{pod}-{loop}-{stream}'
79 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
85 - '{installer}-defaults'
86 - 'yardstick-params-{pod}'
88 name: YARDSTICK_SUITE_NAME
89 default: opnfv_${{NODE_NAME}}_{loop}.yaml
90 description: 'Path to test suite'
94 description: "Show debut output information"
98 credentials-id: '{ssh-credentials}'
103 - 'yardstick-cleanup'
104 #- 'yardstick-fetch-os-creds'
109 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
111 ########################
113 ########################
115 name: yardstick-daily
120 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
122 # labconfig is used only for joid
125 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
126 instack_mac=$(sudo virsh domiflist instack | grep default | \
127 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
128 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
129 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
130 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
131 #note: this happens only in opnfv-lf-pod1
132 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
133 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
135 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
136 # If production lab then creds may be retrieved dynamically
137 # creds are on the jumphost, always in the same folder
138 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
139 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
140 # replace the default one by the customized one provided by jenkins config
143 opts="--privileged=true --rm"
144 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
145 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
146 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
148 # Pull the latest image
149 docker pull opnfv/yardstick >$redirect
152 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
153 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
154 echo "Yardstick: Running docker cmd: ${cmd}"
157 echo "Yardstick: done!"
160 name: yardstick-fetch-os-creds
163 !include-raw: ../../utils/fetch_os_creds.sh
166 name: yardstick-cleanup
170 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
172 echo "Cleaning up docker containers/images..."
173 # Remove previous running containers if exist
174 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
175 echo "Removing existing opnfv/yardstick containers..."
176 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
180 # Remove existing images if exist
181 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
182 echo "Docker images to remove:"
183 docker images | head -1 && docker images | grep opnfv/yardstick
184 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
185 for tag in "${image_tags[@]}"; do
186 echo "Removing docker image opnfv/yardstick:$tag..."
187 docker rmi opnfv/yardstick:$tag >$redirect
191 ########################
193 ########################
195 name: 'yardstick-params-intel-pod5'
198 name: YARDSTICK_DB_BACKEND
200 description: 'Arguments to use in order to choose the backend DB'
203 name: 'yardstick-params-intel-pod6'
206 name: YARDSTICK_DB_BACKEND
208 description: 'Arguments to use in order to choose the backend DB'
211 name: 'yardstick-params-intel-pod8'
214 name: YARDSTICK_DB_BACKEND
216 description: 'Arguments to use in order to choose the backend DB'
219 name: 'yardstick-params-ericsson-pod1'
222 name: YARDSTICK_DB_BACKEND
223 default: '-i 10.118.36.90:8086'
224 description: 'Arguments to use in order to choose the backend DB'
227 name: 'yardstick-params-ericsson-pod2'
230 name: YARDSTICK_DB_BACKEND
231 default: '-i 10.118.36.90:8086'
232 description: 'Arguments to use in order to choose the backend DB'
234 name: 'yardstick-params-opnfv-jump-1'
237 name: YARDSTICK_DB_BACKEND
238 default: '-r 213.77.62.197/results'
239 description: 'Arguments to use in order to choose the backend DB'
241 name: 'yardstick-params-opnfv-jump-2'
244 name: YARDSTICK_DB_BACKEND
245 default: '-r 213.77.62.197/results'
246 description: 'Arguments to use in order to choose the backend DB'
249 name: 'yardstick-params-huawei-us-deploy-bare-1'
252 name: YARDSTICK_DB_BACKEND
254 description: 'Arguments to use in order to choose the backend DB'
257 name: 'yardstick-params-zte-build-1'
260 name: YARDSTICK_DB_BACKEND
262 description: 'Arguments to use in order to choose the backend DB'
265 name: 'yardstick-params-orange-pod2'
268 name: YARDSTICK_DB_BACKEND
270 description: 'Arguments to use in order to choose the backend DB'