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 #--------------------------------
32 - huawei-us-deploy-bare-1:
35 #--------------------------------
37 #--------------------------------
56 #--------------------------------
61 - 'yardstick-{installer}-{pod}-{loop}-{stream}'
63 ################################
65 ################################
67 name: 'yardstick-{installer}-{pod}-{loop}-{stream}'
73 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
79 - '{installer}-defaults'
80 - 'yardstick-params-{pod}'
82 name: YARDSTICK_SUITE_NAME
83 default: opnfv_${{NODE_NAME}}_{loop}.yaml
84 description: 'Path to test suite'
88 credentials-id: '{ssh-credentials}'
94 - 'yardstick-fetch-os-creds'
99 recipients: ana.cunha@ericsson.com jorgen.w.karlsson@ericsson.com
101 ########################
103 ########################
105 name: yardstick-daily
110 # labconfig is used only for joid
113 if [[ ${INSTALLER_TYPE} == 'apex' ]]; then
114 instack_mac=$(sudo virsh domiflist instack | grep default | \
115 grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
116 INSTALLER_IP=$(/usr/sbin/arp -e | grep ${instack_mac} | awk {'print $1'})
117 sshkey="-v /root/.ssh/id_rsa:/root/.ssh/id_rsa"
118 sudo iptables -D FORWARD -o virbr0 -j REJECT --reject-with icmp-port-unreachable
119 sudo iptables -D FORWARD -i virbr0 -j REJECT --reject-with icmp-port-unreachable
120 elif [[ ${INSTALLER_TYPE} == 'joid' ]]; then
121 # If production lab then creds may be retrieved dynamically
122 # creds are on the jumphost, always in the same folder
123 labconfig="-v $LAB_CONFIG/admin-openrc:/home/opnfv/openrc"
124 # If dev lab, credentials may not be the default ones, just provide a path to put them into docker
125 # replace the default one by the customized one provided by jenkins config
128 opts="--privileged=true --rm"
129 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}"
131 # Pull the latest image
132 docker pull opnfv/yardstick
135 cmd="sudo docker run ${opts} ${envs} ${labconfig} ${sshkey} opnfv/yardstick run_tests.sh ${YARDSTICK_DB_BACKEND} ${YARDSTICK_SUITE_NAME}"
136 echo "Yardstick: Running docker cmd: ${cmd}"
139 echo "Yardstick: done!"
142 name: yardstick-fetch-os-creds
145 !include-raw ../../utils/fetch_os_creds.sh
148 name: yardstick-cleanup
153 echo "Cleaning up docker containers/images..."
155 # Remove previous running containers if exist
156 if [[ ! -z $(docker ps -a | grep opnfv/yardstick) ]]; then
157 echo "Removing existing opnfv/yardstick containers..."
158 docker ps | grep opnfv/yardstick | awk '{print $1}' | xargs docker stop
159 docker ps -a | grep opnfv/yardstick | awk '{print $1}' | xargs docker rm
162 # Remove existing images if exist
163 if [[ ! -z $(docker images | grep opnfv/yardstick) ]]; then
164 echo "Docker images to remove:"
165 docker images | head -1 && docker images | grep opnfv/yardstick
166 image_tags=($(docker images | grep opnfv/yardstick | awk '{print $2}'))
167 for tag in "${image_tags[@]}"; do
168 echo "Removing docker image opnfv/yardstick:$tag..."
169 docker rmi opnfv/yardstick:$tag
172 ########################
174 ########################
176 name: 'yardstick-params-intel-pod5'
179 name: YARDSTICK_DB_BACKEND
181 description: 'Arguments to use in order to choose the backend DB'
184 name: 'yardstick-params-intel-pod6'
187 name: YARDSTICK_DB_BACKEND
189 description: 'Arguments to use in order to choose the backend DB'
192 name: 'yardstick-params-intel-pod8'
195 name: YARDSTICK_DB_BACKEND
197 description: 'Arguments to use in order to choose the backend DB'
200 name: 'yardstick-params-ericsson-pod1'
203 name: YARDSTICK_DB_BACKEND
205 description: 'Arguments to use in order to choose the backend DB'
208 name: 'yardstick-params-ericsson-pod2'
211 name: YARDSTICK_DB_BACKEND
213 description: 'Arguments to use in order to choose the backend DB'
216 name: 'yardstick-params-opnfv-jump-2'
219 name: YARDSTICK_DB_BACKEND
220 default: '-r 213.77.62.197'
221 description: 'Arguments to use in order to choose the backend DB'
224 name: 'yardstick-params-huawei-us-deploy-bare-1'
227 name: YARDSTICK_DB_BACKEND
229 description: 'Arguments to use in order to choose the backend DB'
232 name: 'yardstick-params-zte-build-1'
235 name: YARDSTICK_DB_BACKEND
237 description: 'Arguments to use in order to choose the backend DB'
240 name: 'yardstick-params-orange-pod2'
243 name: YARDSTICK_DB_BACKEND
245 description: 'Arguments to use in order to choose the backend DB'