X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=deploy%2Fkud%2Fkud_bm_launch.sh;h=c19b0bdb4c0fcfec78a4abd0b65089a7c3c2d544;hb=ec966951c55b36d3cbe5964303862dc0865d6603;hp=46d8e6af9c181f2f16477bdd78768b1b08a5a775;hpb=da81f8cc030b8255d307e3f834582ac672bca29c;p=icn.git diff --git a/deploy/kud/kud_bm_launch.sh b/deploy/kud/kud_bm_launch.sh index 46d8e6a..c19b0bd 100755 --- a/deploy/kud/kud_bm_launch.sh +++ b/deploy/kud/kud_bm_launch.sh @@ -87,9 +87,24 @@ function kud_install { sed -i -e 's/testing_enabled=${KUD_ENABLE_TESTS:-false}/testing_enabled=${KUD_ENABLE_TESTS:-true}/g' installer.sh fi ./installer.sh | tee kud_deploy.log + + if [ "$1" == "bm" ]; then + pushd $DOWNLOAD_PATH/multicloud-k8s/kud/tests/ + sleep 15 + bash sriov.sh + popd + fi + popd +} + +function kud_reset { + pushd $DOWNLOAD_PATH/multicloud-k8s/kud/hosting_providers/vagrant/ + ansible-playbook -i inventory/hosts.ini /opt/kubespray-2.10.4/reset.yml \ + --become --become-user=root -e reset_confirmation=yes popd } + function verifier { APISERVER=$(kubectl config view --minify -o \ jsonpath='{.clusters[0].cluster.server}') @@ -100,6 +115,11 @@ function verifier { call_api $APISERVER/api --header "Authorization: Bearer $TOKEN" --insecure } +if [ "$1" == "reset" ] ; then + kud_reset + exit 0 +fi + get_kud_repo set_ssh_key set_bm_kud $1