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} -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} -e YARDSTICK_BRANCH=${GIT_BRANCH##origin/}"
146 # Pull the latest image
147 docker pull opnfv/yardstick >$redirect
150 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
151 echo "Yardstick: Running docker cmd: ${cmd}"
154 echo "Yardstick: done!"
157 name: yardstick-fetch-os-creds
160 !include-raw: ../../utils/fetch_os_creds.sh
163 name: yardstick-cleanup
167 [[ $CI_DEBUG == true ]] && redirect="/dev/stdout" || redirect="/dev/null"
169 echo "Cleaning up docker containers/images..."
170 # Remove previous running containers if exist
171 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
172 echo "Removing existing opnfv/yardstick containers..."
173 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm -f >$redirect
177 # Remove existing images if exist
178 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
179 echo "Docker images to remove:"
180 docker images | head -1 && docker images | grep opnfv/yardstick
181 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
182 for tag in "${image_tags[@]}"; do
183 echo "Removing docker image opnfv/yardstick:$tag..."
184 docker rmi opnfv/yardstick:$tag >$redirect
188 ########################
190 ########################
192 name: 'yardstick-params-intel-pod5'
195 name: YARDSTICK_DB_BACKEND
197 description: 'Arguments to use in order to choose the backend DB'
200 name: 'yardstick-params-intel-pod6'
203 name: YARDSTICK_DB_BACKEND
205 description: 'Arguments to use in order to choose the backend DB'
208 name: 'yardstick-params-intel-pod8'
211 name: YARDSTICK_DB_BACKEND
213 description: 'Arguments to use in order to choose the backend DB'
216 name: 'yardstick-params-ericsson-pod1'
219 name: YARDSTICK_DB_BACKEND
220 default: '-i 10.118.36.90:8086'
221 description: 'Arguments to use in order to choose the backend DB'
224 name: 'yardstick-params-ericsson-pod2'
227 name: YARDSTICK_DB_BACKEND
228 default: '-i 10.118.36.90:8086'
229 description: 'Arguments to use in order to choose the backend DB'
231 name: 'yardstick-params-opnfv-jump-1'
234 name: YARDSTICK_DB_BACKEND
235 default: '-r 213.77.62.197/results'
236 description: 'Arguments to use in order to choose the backend DB'
238 name: 'yardstick-params-opnfv-jump-2'
241 name: YARDSTICK_DB_BACKEND
242 default: '-r 213.77.62.197/results'
243 description: 'Arguments to use in order to choose the backend DB'
246 name: 'yardstick-params-huawei-us-deploy-bare-1'
249 name: YARDSTICK_DB_BACKEND
251 description: 'Arguments to use in order to choose the backend DB'
254 name: 'yardstick-params-zte-build-1'
257 name: YARDSTICK_DB_BACKEND
259 description: 'Arguments to use in order to choose the backend DB'
262 name: 'yardstick-params-orange-pod2'
265 name: YARDSTICK_DB_BACKEND
267 description: 'Arguments to use in order to choose the backend DB'