X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=installers%2Ffull_install_osm.sh;h=1d06566ca2942ac7d5bdde952e8ca1575ec5e8e7;hb=refs%2Fchanges%2F57%2F9357%2F1;hp=49d5fa22b00bb8293e618853d72868dc748f421e;hpb=96b4cc262a17cbc799980ffaf7397cfe5ecb4f7d;p=osm%2Fdevops.git diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 49d5fa22..1d06566c 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -429,7 +429,7 @@ function juju_createcontroller() { } function juju_addk8s() { - cat .kube/config | juju add-k8s $OSM_VCA_K8S_CLOUDNAME --controller $OSM_STACK_NAME + cat .kube/config | juju add-k8s $OSM_VCA_K8S_CLOUDNAME --controller $OSM_STACK_NAME --storage openebs-hostpath } function juju_createproxy() { @@ -825,6 +825,7 @@ function install_helm() { helm > /dev/null 2>&1 if [ $? != 0 ] ; then # Helm is not installed. Install helm + echo "Helm is not installed, installing ..." curl https://get.helm.sh/helm-v2.15.2-linux-amd64.tar.gz --output helm-v2.15.2.tar.gz tar -zxvf helm-v2.15.2.tar.gz sudo mv linux-amd64/helm /usr/local/bin/helm @@ -842,14 +843,17 @@ function install_helm() { helm init --service-account tiller # Wait for Tiller to be up and running. If timeout expires, continue installing - tiller_timeout=120; counter=0 + tiller_timeout=120; + counter=0; + tiller_status="" while (( counter < tiller_timeout )) do tiller_status=`kubectl -n kube-system get deployment.apps/tiller-deploy --no-headers | awk '{print $2'}` - ( [ ! -z "$tiller_status" ] && [ $tiller_status == "1/1" ] ) && break - num=$((counter + 2)) - sleep 2 + ( [ ! -z "$tiller_status" ] && [ $tiller_status == "1/1" ] ) && echo "Tiller ready" && break + counter=$((counter + 5)) + sleep 5 done + [ "$tiller_status" != "1/1" ] && echo "Tiller is NOT READY YET. Installation will continue" fi } @@ -1154,7 +1158,7 @@ EOF track install_k8s init_kubeadm $OSM_DOCKER_WORK_DIR/cluster-config.yaml kube_config_dir - install_k8s_storage_class + install_k8s_storageclass track init_k8s else #install_docker_compose @@ -1167,8 +1171,6 @@ EOF track juju_addk8s install_helm track install_helm - install_k8s_storageclass - track install_k8s_storageclass fi [ -z "$DOCKER_NOBUILD" ] && generate_docker_images