OpenVisualCloud / Smart-City-Sample

The smart city reference pipeline shows how to integrate various media building blocks, with analytics powered by the OpenVINO™ Toolkit, for traffic or stadium sensing, analytics and management tasks.
BSD 3-Clause "New" or "Revised" License
198 stars 86 forks source link

cloud cluster db about Host key verification failed #602

Closed wushigax closed 4 years ago

wushigax commented 4 years ago

hi when i Multiple Cluster Setup, the bd and web log is not normal,it's about Host key verification failed

image

xwu2git commented 4 years ago

Please try the latest master code. The path has a typo. It should be /etc/hostkey/known_hosts.

wushigax commented 4 years ago

Please try the latest master code. The path has a typo. It should be /etc/hostkey/known_hosts.

thanks a lot. this issue has been solved. i have another question about db in edge cluster. image and Will it affect others?

xwu2git commented 4 years ago

Your edge node db cannot start because the connection to the master is not found. Have you started the cloud cluster? Please send the full logs of the edge db.

wushigax commented 4 years ago

Your edge node db cannot start because the connection to the master is not found. Have you started the cloud cluster? Please send the full logs of the edge db.

you remind me ,i excute " ssh -4 -f -N -L localhost:29300:localhost:29300 root@ip" in the db pod, this is db log image Does this mean that edge db started normally? but the bd-init still running, not completed

xwu2git commented 4 years ago

Almost, it's progressing. There are multiple reverse and forward tunnels that must be created. See deployment/kubernetes/helm/smtc/templates/office-db.yaml.

But why you need to do it manually? The helm script setup those tunnels automatically.

wushigax commented 4 years ago

Almost, it's progressing. There are multiple reverse and forward tunnels that must be created. See deployment/kubernetes/helm/smtc/templates/office-db.yaml.

But why you need to do it manually? The helm script setup those tunnels automatically.

I have no idea, the office-storage have issue too and others pod is normal. image

xwu2git commented 4 years ago

What user do you use to build and run the sample? It's a permission issue. The complain is about the host-key permission 0440 too permissive. Strange I did not see those in our testing.

xwu2git commented 4 years ago

Double checking. Do you use the latest master or the release version v20.7?
Please make sure you completely rebuild the sample and make tunnels.

wushigax commented 4 years ago

Double checking. Do you use the latest master or the release version v20.7? Please make sure you completely rebuild the sample and make tunnels.

I use the 131155e6c364f201958ad18d68daf767387ba1c8 and Commits on Aug 14, 2020. it‘s mean the permission issue have an impact? this picture is log about office-upload when i run the sample in last week, it have the same issue,But it does not seem to affect the next operation image

xwu2git commented 4 years ago

The permission must be set correctly for the tunnels to work. I submitted a fix to the master branch. Please try it. If you build and run as a regular user, the mode must be 0440. If you build and run as root, the mode must be 0400.

wushigax commented 4 years ago

The permission must be set correctly for the tunnels to work. I submitted a fix to the master branch. Please try it. If you build and run as a regular user, the mode must be 0440. If you build and run as root, the mode must be 0400.

ok, I will have a try, and the cloud-web and cloud-storage have the same permission issue

wushigax commented 4 years ago

The permission must be set correctly for the tunnels to work. I submitted a fix to the master branch. Please try it. If you build and run as a regular user, the mode must be 0440. If you build and run as root, the mode must be 0400.

ok, I will have a try, and the cloud-web and cloud-storage have the same permission issue

i change the mode to 0400 , but the cloud-web and cloud-storage still have permission issue , i build and run as root. image

and then i use the latest master code, still have the issue in cloud-web and storage image

xwu2git commented 4 years ago

The security context: fsgroup interferes with the defaultMode setting, when the user is a root. Fixed on master. Please try it.

wushigax commented 4 years ago

The security context: fsgroup interferes with the defaultMode setting, when the user is a root. Fixed on master. Please try it.

I use the latest master code. and edge-upload has the issue. this is the log of upload edge-upload log.txt

and the ssh forward in the edge is not stable, sometimes the pod must be restarted several times to succeed

xwu2git commented 4 years ago

Can you send me the cloud-storage logs?

wushigax commented 4 years ago

Can you send me the cloud-storage logs?

cloud-storage logs cloud-storage logs.txt

edge-storage logs edge-storage.txt