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}'
89 default: 'os-odl_l2-nofeature-ha'
91 name: YARDSTICK_SUITE_NAME
92 default: opnfv_${{NODE_NAME}}_{loop}.yaml
93 description: 'Path to test suite'
97 description: "Show debut output information"
101 credentials-id: '{ssh-credentials}'
106 - 'yardstick-cleanup'
107 #- 'yardstick-fetch-os-creds'
112 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
114 ########################
116 ########################
118 name: yardstick-daily
123 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
125 # labconfig is used only for joid
128 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
129 instack_mac=$(sudo virsh domiflist instack | grep default | \
130 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
131 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
132 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
133 if [[ -n $(sudo iptables -L FORWARD |grep "REJECT"|grep "reject-with icmp-port-unreachable") ]]; then
134 #note: this happens only in opnfv-lf-pod1
135 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
136 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
138 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
139 # If production lab then creds may be retrieved dynamically
140 # creds are on the jumphost, always in the same folder
141 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
142 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
143 # replace the default one by the customized one provided by jenkins config
146 opts="--privileged=true --rm"
147 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} \
148 -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} \
149 -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/} -e DEPLOY_SCENARIO=${DEPLOY_SCENARIO}"
151 # Pull the latest image
152 docker pull opnfv/yardstick >$redirect
155 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick \
156 run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
157 echo "Yardstick: Running docker cmd: ${cmd}"
160 echo "Yardstick: done!"
163 name: yardstick-fetch-os-creds
166 !include-raw: ../../utils/fetch_os_creds.sh
169 name: yardstick-cleanup
173 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
175 echo "Cleaning up docker containers/images..."
176 # Remove previous running containers if exist
177 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
178 echo "Removing existing opnfv/yardstick containers..."
179 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
183 # Remove existing images if exist
184 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
185 echo "Docker images to remove:"
186 docker images | head -1 && docker images | grep opnfv/yardstick
187 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
188 for tag in "${image_tags[@]}"; do
189 echo "Removing docker image opnfv/yardstick:$tag..."
190 docker rmi opnfv/yardstick:$tag >$redirect
194 ########################
196 ########################
198 name: 'yardstick-params-intel-pod5'
201 name: YARDSTICK_DB_BACKEND
203 description: 'Arguments to use in order to choose the backend DB'
206 name: 'yardstick-params-intel-pod6'
209 name: YARDSTICK_DB_BACKEND
211 description: 'Arguments to use in order to choose the backend DB'
214 name: 'yardstick-params-intel-pod8'
217 name: YARDSTICK_DB_BACKEND
219 description: 'Arguments to use in order to choose the backend DB'
222 name: 'yardstick-params-ericsson-pod1'
225 name: YARDSTICK_DB_BACKEND
226 default: '-i 10.118.36.90:8086'
227 description: 'Arguments to use in order to choose the backend DB'
230 name: 'yardstick-params-ericsson-pod2'
233 name: YARDSTICK_DB_BACKEND
234 default: '-i 10.118.36.90:8086'
235 description: 'Arguments to use in order to choose the backend DB'
237 name: 'yardstick-params-opnfv-jump-1'
240 name: YARDSTICK_DB_BACKEND
241 default: '-r 213.77.62.197/results'
242 description: 'Arguments to use in order to choose the backend DB'
244 name: 'yardstick-params-opnfv-jump-2'
247 name: YARDSTICK_DB_BACKEND
248 default: '-r 213.77.62.197/results'
249 description: 'Arguments to use in order to choose the backend DB'
252 name: 'yardstick-params-huawei-us-deploy-bare-1'
255 name: YARDSTICK_DB_BACKEND
257 description: 'Arguments to use in order to choose the backend DB'
260 name: 'yardstick-params-zte-build-1'
263 name: YARDSTICK_DB_BACKEND
265 description: 'Arguments to use in order to choose the backend DB'
268 name: 'yardstick-params-orange-pod2'
271 name: YARDSTICK_DB_BACKEND
273 description: 'Arguments to use in order to choose the backend DB'