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/opnfv/yardstick'}
15 : ${YARDSTICK_BRANCH:='master'} # branch, tag, sha1 or refspec
17 : ${RELENG_REPO:='https://gerrit.opnfv.org/gerrit/releng'}
18 : ${RELENG_REPO_DIR:='/home/opnfv/repos/releng'}
19 : ${RELENG_BRANCH:='master'} # branch, tag, sha1 or refspec
21 : ${INSTALLER_TYPE:='fuel'}
22 : ${INSTALLER_IP:='10.20.0.2'}
24 : ${POD_NAME:='opnfv-jump-2'}
25 : ${EXTERNAL_NET:='net04_ext'}
29 if git cat-file -e $1^{commit} 2>/dev/null; then
30 # branch, tag or sha1 object
34 git fetch --tags --progress $2 $1
35 git checkout FETCH_HEAD
40 echo "INFO: Updating releng -> $RELENG_BRANCH"
41 if [ ! -d $RELENG_REPO_DIR ]; then
42 git clone $RELENG_REPO $RELENG_REPO_DIR
45 git checkout master && git pull
46 git_checkout $RELENG_BRANCH $RELENG_REPO
49 echo "INFO: Updating yardstick -> $YARDSTICK_BRANCH"
50 if [ ! -d $YARDSTICK_REPO_DIR ]; then
51 git clone YARDSTICK_REPO $YARDSTICK_REPO_DIR
53 cd $YARDSTICK_REPO_DIR
54 git checkout master && git pull
55 git_checkout $YARDSTICK_BRANCH $YARDSTICK_REPO
58 echo "INFO: Creating openstack credentials .."
60 # Create openstack credentials
61 $RELENG_REPO_DIR/utils/fetch_os_creds.sh \
63 -i ${INSTALLER_TYPE} -a ${INSTALLER_IP}
67 # FIXME: Temporary OPNFV playground hack
68 if [ "$INSTALLER_TYPE" == "fuel" ]; then
69 ssh_opts="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
70 if sshpass -p r00tme ssh 2>/dev/null $ssh_opts root@${INSTALLER_IP} \
71 fuel environment --env 1 | grep opnfv-virt; then
72 echo "INFO: applying OPNFV playground hack"
73 export OS_ENDPOINT_TYPE='publicURL'
77 export EXTERNAL_NET INSTALLER_TYPE POD_NAME
79 $YARDSTICK_REPO_DIR/ci/yardstick-verify $@