smart-edge-open / edgeapps

Applications that can be onboarded to an Intel® Smart Edge Open edge node.
Apache License 2.0
51 stars 73 forks source link

Smart-City-Application Onboarding on Network Edge OpenNESS 20.06 #22

Open ishanVshah opened 4 years ago

ishanVshah commented 4 years ago

Hi @amr-mokhtar

Smart-City-Application has been installed successfully on Network Edge OpenNESS 20.06 using below links as a reference.

https://www.openness.org/docs/doc/applications-onboard/network-edge-applications-onboarding https://github.com/OpenVisualCloud/Smart-City-Sample/tree/openness-k8s/deployment/openness

but on cloud-web GUI, i am not able to see any cameras.

i appreciate if you help me to find out the issue.

pods screenshot: image

svc screenshot: image

cloud-web GUI screenshot: image

ishanVshah commented 4 years ago

HI @amr-mokhtar can you please help me on my issue

amr-mokhtar commented 4 years ago

@ishanVshah did you delete the network policies existing in default namespace? To get the network policies, use this command:

kubectl get netpol
ishanVshah commented 4 years ago

yes @amr-mokhtar image

amr-mokhtar commented 4 years ago

What is the printout of this command?

kubectl get pods -A -o wide
amr-mokhtar commented 4 years ago

Also,

kubectl get nodes --show-labels
amr-mokhtar commented 4 years ago

Is firewall enabled on the worker or the client-sim nodes?

ishanVshah commented 4 years ago

Hi @amr-mokhtar

please find attached output of said commands and firewall is disabled on all worker nodes and client-sim.

Intel_2020-07-21_22-48-30.log

amr-mokhtar commented 4 years ago

I see that you've deployed Multus with Calico & kube-ovn. This configuration was not tested with Smart City App. Therefore, I suggest that you start with deploying OpenNESS with kube-ovn only as the kubernetes CNI as a starting point to get familiar with the smart city app.

Also, I will be interested to test the inter-pod communication. This can be done by deploying the dns test pod as in this guide. Then try the following:

kubectl exec -it dnsutils -- curl http://db-service:9200
amr-mokhtar commented 4 years ago

Hi @ishanVshah, Did you have the chance to see my previous comment and test the proposed configuration?

ishanVshah commented 4 years ago

Hi @amr-mokhtar i can't do it as of now because multiple testing is going on parellaly.

please take note that our primary network is kube-ovn

ishanVshah commented 4 years ago

Hi @amr-mokhtar

please note that we have not a seperate machine for camera simulator and kubernetes based cloud cluster.

is there any possibility to run Smart-City-Application on 3 node OpenNESS Network Edge cluster ?

OpenNESS 20.06 Network Edge cluster installed on below nodes. master worker1 worker2

below command executes on machines separated by new line.

make start_openness_camera

worker1 worker2

make start_openness_cloud

master

make make start_openness_office

master

amr-mokhtar commented 4 years ago

If you'd like to deploy Smart City App is described in the onboarding guide (https://www.openness.org/docs/doc/applications-onboard/network-edge-applications-onboarding#onboarding-smart-city-sample-application), the minimum you should have is 5 machines; where the camera-sim apps can be running on the cloud-worker node.

ishanVshah commented 4 years ago

Hi @amr-mokhtar

As per the diagram 3 nodes cluster is for openness network edge cluster (openness office) and 2 node cluster is for cloud cluster. So, total 5 nodes are required. But what about client simulator ?

Camera simulator is working as a docker container so, should we run camera setup inside with any cloud and office cluster or camera sim required a separate machine ?

amr-mokhtar commented 4 years ago

Camera simulator is working as a docker container so, should we run camera setup inside with any cloud and office cluster or camera sim required a separate machine ?

They can run on the "cloud worker" machine.