Added logs for iotgateway 17/2017/1
authorSrinivasan Selvam <srinivasan.s.n@huawei.com>
Wed, 20 Nov 2019 13:14:23 +0000 (18:44 +0530)
committerSrinivasan Selvam <srinivasan.s.n@huawei.com>
Wed, 20 Nov 2019 13:15:17 +0000 (18:45 +0530)
Signed-off-by: Srinivasan Selvam <srinivasan.s.n@huawei.com>
Change-Id: I49538490ce1a378423339570df80478e3c9e4330

blueprints/iotgateway/scripts/cadvisorsetup.sh
blueprints/iotgateway/scripts/edgex/edgexonk8s.sh
blueprints/iotgateway/scripts/edgex/verifyedgex.sh
blueprints/iotgateway/scripts/kubeedge/kubeedge_setup.sh
blueprints/iotgateway/scripts/prometheus.sh
blueprints/iotgateway/scripts/setup.sh

index 1ceae4a..6903fbe 100644 (file)
@@ -8,6 +8,9 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
+echo "***********************************************************************"
+echo "cadvisor installation-------------------------------------------STARTED"
+
 HOSTNAME=`hostname`
 sudo docker run  \
  --volume=/:/rootfs:ro \
@@ -20,3 +23,6 @@ sudo docker run  \
  --name=cadvisor-${HOSTNAME} \
  google/cadvisor:latest 
 
+echo "cadvisor setup--------------------------------------------------SUCCESS"
+echo "***********************************************************************"
+
index 22dd90c..efef947 100755 (executable)
@@ -11,6 +11,8 @@
 # The script is to setup the Edgex Foundry application as POD in Kubernetes.          #
 #######################################################################################
 
+echo "**********************************************************************"
+echo "Edgex Platform Deployment--------------------------------------STARTED"
 
 echo "Deploying Edgex Platform on IOT-Gateway Edge Node"
 edgexPath=`pwd`
@@ -35,7 +37,8 @@ kubectl expose deployment edgex-support-rulesengine --type=NodePort --name=rules
 kubectl expose deployment edgex-support-logging --type=NodePort --name=loggingnodeport
 kubectl get svc | grep NodePort
 
-
+echo "**********************************************************************"
+echo "Edgex Platform Deployment--------------------------------------SUCCESS"
 
 
 
index 95fea1f..c693d30 100644 (file)
@@ -28,7 +28,7 @@ retrytimes=20
 while [ $retrytimes -gt 0 ]
 do
  if [ 12 == "$(kubectl get pods | grep edgex | grep Running | wc -l)" ]; then
-    echo "Edgex Platform is successfully integrated  on ELIOT IOT-Gateway!!!!"
+    echo "Edgex Platform Deployment integration on IOT Gateway---------------------SUCCESS"
     break
  fi
  ((retrytimes-=1))
index c9633dc..c425b49 100755 (executable)
@@ -8,6 +8,9 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
+echo "**********************************************************************"
+echo "Kubeedge-v1.1.0 Installation------------------------------------------STARTED"
+
 # constants
 
 VERSION="v1.1.0"
@@ -18,8 +21,11 @@ PATH_OF_EDGECORE="/etc/kubeedge-v1.1.0-linux-amd64/edge/edgecore"
 
 initialize_k8s_cluster()
 {
-   source common.sh
-   source k8smaster.sh
+   #cd ../
+   #./setup.sh
+   cp /etc/kubernetes/admin.conf /root/.kube/config
+   #source common.sh
+   #source k8smaster.sh
 }
 
 kubeedge_tar_untar()
@@ -82,7 +88,6 @@ exec_edge()
     echo "exec_edge started"
 
     sshpass -p ${EDGENODEPASSWORD} \
-
     scp -r $KUBEEDGE_ETC \
     ${EDGENODEUSR}@${EDGENODEIP}:/etc
 
@@ -98,6 +103,8 @@ exec_edge()
 apply_node_json()
 {
    echo "apply_node_json started"
+   echo $(pwd)
+   cd ${PATH_OF_KUBEEDGE}
    kubectl apply -f node.json
    echo "apply_node_json ended"
 }
@@ -110,7 +117,7 @@ initialize_k8s_cluster
 
 # sleep added for k8s kube-system pods to be up
 
-sleep 240
+#sleep 240
 
 kubeedge_tar_untar
 
@@ -124,4 +131,5 @@ exec_edge > /dev/null 2>&1
 
 apply_node_json
 
-echo "Kubeedge-v1.1.0 installation completed"
+echo "Kubeedge-v1.1.0 Installation------------------------------------------SUCCESS"
+echo "************************************************************************"
index f2a3c17..d12f5e3 100755 (executable)
 PROMETHEUS_HOST_PORT="9090"
 PROMETHEUS_CONTAINTER_PORT="9090"
 #cp ci_management/prometheus.yml $HOME
+
+echo "**********************************************************************"
+echo "Prometheus setup ----------------------------------------------STARTED"
+
+
 source generatePromeyml.sh
 if [ ! -d "/etc/prometheus" ]; then
   sudo mkdir /etc/prometheus
@@ -21,3 +26,6 @@ sudo docker run -p ${PROMETHEUS_HOST_PORT}:${PROMETHEUS_CONTAINTER_PORT} \
      -v ~/prometheus.yml:/etc/prometheus/prometheus.yml \
      -d prom/prometheus \
      --config.file=/etc/prometheus/prometheus.yml 
+
+echo "Prometheus setup ----------------------------------------------SUCCESS"
+echo "**********************************************************************"
index e1af2bb..7c4190a 100755 (executable)
@@ -18,6 +18,9 @@
 # sshpass needs to be installed before executing this script.                          #
 ########################################################################################
 
+echo "**********************************************************************"
+echo "ELIOT IOT-Gateway Platform Deployment--------------------------STARTED"
+
 # constants
 
 OSPLATFORM=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
@@ -210,5 +213,6 @@ if [[ $OSPLATFORM = *CentOS* ]]; then
 # Removing the taint from master node
 kubectl taint nodes --all node-role.kubernetes.io/master- || true
 
-echo "ELIOT IOT-Gateway Platform is Successfully Deployed !!!"
+echo "**********************************************************************"
+echo "ELIOT IOT-Gateway Platform Deployment--------------------------SUCCESS"