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 credentials-id: '{ssh-credentials}'
100 - 'yardstick-fetch-os-creds'
105 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
107 ########################
109 ########################
111 name: yardstick-daily
116 # labconfig is used only for joid
119 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
120 instack_mac=$(sudo virsh domiflist instack | grep default | \
121 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
122 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
123 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
124 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
125 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
126 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
127 # If production lab then creds may be retrieved dynamically
128 # creds are on the jumphost, always in the same folder
129 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
130 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
131 # replace the default one by the customized one provided by jenkins config
134 opts="--privileged=true --rm"
135 envs="-e INSTALLER_TYPE=${INSTALLER_TYPE} -e INSTALLER_IP=${INSTALLER_IP} -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK} -e YARDSTICK_BRANCH=${GERRIT_BRANCH}"
137 # Pull the latest image
138 docker pull opnfv/yardstick
141 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
142 echo "Yardstick: Running docker cmd: ${cmd}"
145 echo "Yardstick: done!"
148 name: yardstick-fetch-os-creds
151 !include-raw ../../utils/fetch_os_creds.sh
154 name: yardstick-cleanup
159 echo "Cleaning up docker containers/images..."
161 # Remove previous running containers if exist
162 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
163 echo "Removing existing opnfv/yardstick containers..."
164 docker ps | grep opnfv/yardstick | awk '{print $1}' | xargs docker stop
165 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm
168 # Remove existing images if exist
169 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
170 echo "Docker images to remove:"
171 docker images | head -1 && docker images | grep opnfv/yardstick
172 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
173 for tag in "${image_tags[@]}"; do
174 echo "Removing docker image opnfv/yardstick:$tag..."
175 docker rmi opnfv/yardstick:$tag
178 ########################
180 ########################
182 name: 'yardstick-params-intel-pod5'
185 name: YARDSTICK_DB_BACKEND
187 description: 'Arguments to use in order to choose the backend DB'
190 name: 'yardstick-params-intel-pod6'
193 name: YARDSTICK_DB_BACKEND
195 description: 'Arguments to use in order to choose the backend DB'
198 name: 'yardstick-params-intel-pod8'
201 name: YARDSTICK_DB_BACKEND
203 description: 'Arguments to use in order to choose the backend DB'
206 name: 'yardstick-params-ericsson-pod1'
209 name: YARDSTICK_DB_BACKEND
211 description: 'Arguments to use in order to choose the backend DB'
214 name: 'yardstick-params-ericsson-pod2'
217 name: YARDSTICK_DB_BACKEND
219 description: 'Arguments to use in order to choose the backend DB'
221 name: 'yardstick-params-opnfv-jump-1'
224 name: YARDSTICK_DB_BACKEND
225 default: '-r 213.77.62.197/results'
226 description: 'Arguments to use in order to choose the backend DB'
228 name: 'yardstick-params-opnfv-jump-2'
231 name: YARDSTICK_DB_BACKEND
232 default: '-r 213.77.62.197'
233 description: 'Arguments to use in order to choose the backend DB'
236 name: 'yardstick-params-huawei-us-deploy-bare-1'
239 name: YARDSTICK_DB_BACKEND
241 description: 'Arguments to use in order to choose the backend DB'
244 name: 'yardstick-params-zte-build-1'
247 name: YARDSTICK_DB_BACKEND
249 description: 'Arguments to use in order to choose the backend DB'
252 name: 'yardstick-params-orange-pod2'
255 name: YARDSTICK_DB_BACKEND
257 description: 'Arguments to use in order to choose the backend DB'