Fix bug 1129: juju_addk8s requires the storage class 56/9356/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 8 Jul 2020 11:28:12 +0000 (11:28 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 8 Jul 2020 11:28:12 +0000 (11:28 +0000)
Change-Id: I8b59e83526ba7f73dd90dba86ae7bce990199e0f
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/full_install_osm.sh

index 49d5fa2..e0ee3cf 100755 (executable)
@@ -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() {
@@ -1154,7 +1154,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 +1167,6 @@ EOF
         track juju_addk8s
         install_helm
         track install_helm
-        install_k8s_storageclass
-        track install_k8s_storageclass
     fi
 
     [ -z "$DOCKER_NOBUILD" ] && generate_docker_images