Closed praj527 closed 3 years ago
hi, @praj527 , can you show the SmartCity pod logs ? Which command do you use to execute script set_env.sh?
Hi, @Wushigang915
Command we used for env setup "./setup_env.sh -e
I could not see any pod with name SmartCity, I am attaching all the pod log for your reference
Cloud Cluster pod logs
1.cloud-web-9cd779448-p44hv cloud-web-9cd779448-p44hv_pod.log 2.cloud-storage-ccf8d85d5-t5zsc cloud-storage-ccf8d85d5-t5zsc_pod.log 3.cloud-db-785ff8cd79-mhlps cloud-db-785ff8cd79-mhlps_pod.log
Edge Cluster pod logs
1.traffic-office1-storage-f9c8c6c95-pnj4t traffic-office1-storage-f9c8c6c95-pnj4t_pod.log 2.traffic-office1-analytics-traffic-6dc68dd65c-2fdj2 traffic-office1-analytics-traffic-6dc68dd65c-2fdj2_pod.log 3.traffic-office1-camera-discovery-598f4f74-hxqv9 traffic-office1-camera-discovery-598f4f74-hxqv9_pod.log
@praj527 , This seems to be a communication problem between the edge-db pod and cloud-db pod, Can you do two tests? 1) Enter db-init pod to ping the db pod clusterIP on the edge cluster. 2) Enter db pod on the edge cluster to ping the cloud controller IP .
Hi @Wushigang915, Sorry for delay in reply, actually I redeployed the complete setup but ended up with the same issue.
I tried your suggested test one test failed 'db-init pod to ping the db pod clusterIP on the edge cluster' and another passed below are the test results. Please let me know if any more details are required.
1. Enter db-init pod to ping the db pod clusterIP on the edge cluster.
[root@edgenode2 centos]# kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 14d
loungex-app-service NodePort 10.97.196.15 <none> 8082:30082/TCP 2d
traffic-office1-cameras-service ClusterIP 10.111.122.199 <none> 17000/TCP,17010/TCP,17020/TCP,17030/TCP,17040/TCP 119m
traffic-office1-db-service ClusterIP 10.98.64.116 <none> 9200/TCP,9300/TCP 119m
traffic-office1-mqtt-service ClusterIP 10.99.98.107 <none> 1883/TCP 119m
traffic-office1-storage-service ClusterIP 10.106.229.76 <none> 8080/TCP 119m
[root@edgenode2 centos]# kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
traffic-office1-alert-5d694cc859-mjlww 1/1 Running 0 126m 10.245.74.244 edgenode2 <none> <none>
traffic-office1-analytics-traffic-df8dcfc79-m4twk 1/1 Running 0 126m 10.245.74.246 edgenode2 <none> <none>
traffic-office1-camera-discovery-68958b48bd-z2fqb 1/1 Running 0 126m 10.245.74.226 edgenode2 <none> <none>
traffic-office1-cameras-557fc4cf9b-s6r4l 1/1 Running 0 126m 10.245.74.229 edgenode2 <none> <none>
traffic-office1-db-5646f569fc-tvvbq 1/1 Running 0 125m 10.245.74.223 edgenode2 <none> <none>
traffic-office1-db-init-6d6dff5476-ps76p 1/1 Running 0 125m 10.245.74.231 edgenode2 <none> <none>
traffic-office1-mqtt-d8cb9dd9-6l5sb 1/1 Running 0 126m 10.245.74.221 edgenode2 <none> <none>
traffic-office1-mqtt2db-7cbb5db4d9-qlxd5 1/1 Running 0 125m 10.245.74.209 edgenode2 <none> <none>
traffic-office1-smart-upload-5fd656fb76-l4r9z 1/1 Running 0 125m 10.245.74.216 edgenode2 <none> <none>
traffic-office1-storage-5b99445df-gnchs 1/1 Running 0 125m 10.245.74.239 edgenode2 <none> <none>
Pinging from 'db-init' to 'db' IP
[root@traffic-office1-db-init-6d6dff5476-ps76p /]# ping 10.245.74.223
PING 10.245.74.223 (10.245.74.223) 56(84) bytes of data.
^C
--- 10.245.74.223 ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6004ms
Pinging from 'db-init' to 'db' CLUSTER-IP
[root@traffic-office1-db-init-6d6dff5476-ps76p /]# ping 10.98.64.116
PING 10.98.64.116 (10.98.64.116) 56(84) bytes of data.
^C
--- 10.98.64.116 ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 4999ms
2. Enter db pod on the edge cluster to ping the cloud controller IP .
Pinging from db to cloud cluster controller IP
[elasticsearch@traffic-office1-db-5646f569fc-tvvbq home]$ ping 192.168.0.13
PING 192.168.0.13 (192.168.0.13) 56(84) bytes of data.
64 bytes from 192.168.0.13: icmp_seq=1 ttl=63 time=1.72 ms
64 bytes from 192.168.0.13: icmp_seq=2 ttl=63 time=0.842 ms
64 bytes from 192.168.0.13: icmp_seq=3 ttl=63 time=3.29 ms
64 bytes from 192.168.0.13: icmp_seq=4 ttl=63 time=1.50 ms
64 bytes from 192.168.0.13: icmp_seq=5 ttl=63 time=0.842 ms
64 bytes from 192.168.0.13: icmp_seq=6 ttl=63 time=1.04 ms
^C
--- 192.168.0.13 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5008ms
rtt min/avg/max/mdev = 0.842/1.541/3.296/0.851 ms
hi @praj527 , Sorry for delay in reply, the db-init pod should be able to ping db pod, the pod on the default namespace should be able to communicate with each other. Can you check the netpol on the cluster: "kubectl get netpol", if the netpol "block-all-ingress" on the cluster, please delete it and restart SmartCity.
Thanks @Wushigang915, It worked for me. There were no such "block-all-ingress" was present. But there are some other policies for other services when I removed them it worked.
Hi, I deploy Smart City Application using EMCO following the below link: https://github.com/open-ness/specs/blob/master/doc/building-blocks/emco/openness-emco.md
I was able to deploy it successfully but On the UI I was unable to see camera and sensors. All the pods are running fine and no error log in them but still unable to see the sensors on GUI.
I am using three openness cluster for deployment their details are below. Please let me know if any other details are required.
EMCO Cluster: -> flavor: central_orchestrator (openness 21.03.01)
Cloud Cluster: -> flavor: minimal (openness 21.03.01)
Edge Cluster: -> flavor: minimal (openness 21.03.01)
Screenshot for GUI:![smctgui](https://user-images.githubusercontent.com/67963061/116197099-ec163500-a751-11eb-9939-7bfe17cf1e3b.JPG)