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 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
131 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
132 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
133 # If production lab then creds may be retrieved dynamically
134 # creds are on the jumphost, always in the same folder
135 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
136 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
137 # replace the default one by the customized one provided by jenkins config
140 opts="--privileged=true --rm"
141 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/}"
143 # Pull the latest image
144 docker pull opnfv/yardstick >$redirect
147 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
148 echo "Yardstick: Running docker cmd: ${cmd}"
151 echo "Yardstick: done!"
154 name: yardstick-fetch-os-creds
157 !include-raw: ../../utils/fetch_os_creds.sh
160 name: yardstick-cleanup
164 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
166 echo "Cleaning up docker containers/images..."
167 # Remove previous running containers if exist
168 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
169 echo "Removing existing opnfv/yardstick containers..."
170 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
174 # Remove existing images if exist
175 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
176 echo "Docker images to remove:"
177 docker images | head -1 && docker images | grep opnfv/yardstick
178 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
179 for tag in "${image_tags[@]}"; do
180 echo "Removing docker image opnfv/yardstick:$tag..."
181 docker rmi opnfv/yardstick:$tag >$redirect
185 ########################
187 ########################
189 name: 'yardstick-params-intel-pod5'
192 name: YARDSTICK_DB_BACKEND
194 description: 'Arguments to use in order to choose the backend DB'
197 name: 'yardstick-params-intel-pod6'
200 name: YARDSTICK_DB_BACKEND
202 description: 'Arguments to use in order to choose the backend DB'
205 name: 'yardstick-params-intel-pod8'
208 name: YARDSTICK_DB_BACKEND
210 description: 'Arguments to use in order to choose the backend DB'
213 name: 'yardstick-params-ericsson-pod1'
216 name: YARDSTICK_DB_BACKEND
217 default: '-i 10.118.36.90:8086'
218 description: 'Arguments to use in order to choose the backend DB'
221 name: 'yardstick-params-ericsson-pod2'
224 name: YARDSTICK_DB_BACKEND
225 default: '-i 10.118.36.90:8086'
226 description: 'Arguments to use in order to choose the backend DB'
228 name: 'yardstick-params-opnfv-jump-1'
231 name: YARDSTICK_DB_BACKEND
232 default: '-r 213.77.62.197/results'
233 description: 'Arguments to use in order to choose the backend DB'
235 name: 'yardstick-params-opnfv-jump-2'
238 name: YARDSTICK_DB_BACKEND
239 default: '-r 213.77.62.197/results'
240 description: 'Arguments to use in order to choose the backend DB'
243 name: 'yardstick-params-huawei-us-deploy-bare-1'
246 name: YARDSTICK_DB_BACKEND
248 description: 'Arguments to use in order to choose the backend DB'
251 name: 'yardstick-params-zte-build-1'
254 name: YARDSTICK_DB_BACKEND
256 description: 'Arguments to use in order to choose the backend DB'
259 name: 'yardstick-params-orange-pod2'
262 name: YARDSTICK_DB_BACKEND
264 description: 'Arguments to use in order to choose the backend DB'