2 ##############################################################################
3 # Copyright (c) 2015 Ericsson AB and others.
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
13 : ${YARDSTICK_REPO:='https://gerrit.opnfv.org/gerrit/yardstick'}
14 : ${YARDSTICK_REPO_DIR:='/home/yardstick'}
15 : ${YARDSTICK_BRANCH:='master'}
17 : ${RELENG_REPO:='https://gerrit.opnfv.org/gerrit/releng'}
18 : ${RELENG_REPO_DIR:='/home/releng'}
19 : ${RELENG_BRANCH:='master'}
21 : ${INSTALLER_TYPE:='fuel'}
22 : ${INSTALLER_IP:='10.20.0.2'}
24 : ${EXTERNAL_NET_ID:='net04_ext'}
27 if [ ! -d $RELENG_REPO_DIR ]; then
28 git clone $RELENG_REPO $RELENG_REPO_DIR
31 git fetch --tags --progress $RELENG_REPO $RELENG_BRANCH
32 git checkout FETCH_HEAD
35 if [ ! -d $YARDSTICK_REPO_DIR ]; then
36 git clone YARDSTICK_REPO $YARDSTICK_REPO_DIR
38 cd $YARDSTICK_REPO_DIR
39 git fetch --tags --progress $YARDSTICK_REPO $YARDSTICK_BRANCH
40 git checkout FETCH_HEAD
42 # Create openstack credentials
43 $RELENG_REPO_DIR/utils/fetch_os_creds.sh \
45 -i ${INSTALLER_TYPE} -a ${INSTALLER_IP}
49 # FIXME: Temporary OPNFV playground hack
50 if [ "$INSTALLER_TYPE" == "fuel" ]; then
51 ssh_opts="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
52 if sshpass -p r00tme ssh 2>/dev/null $ssh_opts root@${INSTALLER_IP} \
53 fuel environment --env 1 | grep opnfv-virt; then
54 export OS_ENDPOINT_TYPE='publicURL'
58 export EXTERNAL_NET_ID
60 $YARDSTICK_REPO_DIR/ci/yardstick-verify