diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2016-01-06 05:13:34 -0500 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2016-01-06 05:36:55 -0500 |
commit | bbc3f2fc62fafbb05d08a0f7fd8e77781657a20b (patch) | |
tree | e0051ced5a597b297276e2fb3fd3619c99e7864a /utils/infra_setup/heat_template | |
parent | 9d958be25bb348ab08f320b04b8a0e47cce11945 (diff) |
add debug function for vstf to test in lf openstack env
JIRA: BOTTLENECK-38
Change-Id: Ie1f44665c74ac8ea5f26cc75e571caafbb0999d7
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'utils/infra_setup/heat_template')
-rwxr-xr-x | utils/infra_setup/heat_template/vstf_heat_template/vstf_HOT_create_instance.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/utils/infra_setup/heat_template/vstf_heat_template/vstf_HOT_create_instance.sh b/utils/infra_setup/heat_template/vstf_heat_template/vstf_HOT_create_instance.sh new file mode 100755 index 00000000..820593bd --- /dev/null +++ b/utils/infra_setup/heat_template/vstf_heat_template/vstf_HOT_create_instance.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +set -ex + +GERRIT_REFSPEC_DEBUG=$1 + +echo "vstf DEBUG test" +echo "vstf workflow goes here" + +bottlenecks_env_prepare() +{ + if [ -d $BOTTLENECKS_REPO_DIR ]; then + rm -rf ${BOTTLENECKS_REPO_DIR} + fi + + mkdir -p ${BOTTLENECKS_REPO_DIR} + git config --global http.sslVerify false + git clone ${BOTTLENECKS_REPO} ${BOTTLENECKS_REPO_DIR} + if [ x"$GERRIT_REFSPEC_DEBUG" != x ]; then + cd ${BOTTLENECKS_REPO_DIR} + git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && git checkout FETCH_HEAD + cd - + fi + + #obtain installer(openstack) IP, etc, use rubbos's temporarily, later we can amend this + source $BOTTLENECKS_REPO_DIR/rubbos/rubbos_scripts/1-1-1/scripts/env_preparation.sh +} + +#vstf logic function here + +main() +{ + echo "bottlenecks vstf: create instances with heat template" + + BOTTLENECKS_REPO=https://gerrit.opnfv.org/gerrit/bottlenecks + BOTTLENECKS_REPO_DIR=/tmp/opnfvrepo/bottlenecks + #vstf parameter here + + bottlenecks_env_prepare + #vstf function here +} + +main +set +ex |