New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'token credentials are in wrong format' when edgecore tries to obtain certificate from cloudcore #2362
Comments
I notice your test at a dirty env, please run |
@daixiang0 : Thanks for your quick answer! I'll do that asap. Shall I do it on both cloudcore and edgecore or just one ? In that case, which one? |
Both. |
Ok. I'll do and report. |
@daixiang0 : keadm reset seems to stop the component. How do I restart it? via init for cloud and join for edge ? Or any other way? Thanks! Didier
|
|
Ok. But, I am a bit confused now : the issue that I described initially happens just after a fresh (fully automated) install of cloudcore and edgecore on the 2 distinct machines. They did not communicate with each other (nor with any other machine) yet: just keadm init on 1 side and keadm join on the other side. And then, the edgecore infinite loop described above starts. So, I do not really see how my environment can get dirty since it is fully fresh. So, if I unsintall, resinstall and do init & join, I am just be in same status as described initially and the loop starts again. Any other suggestion to fix my issue? PS: I am happy to provide you with all the data needed to diagnose and fix. Didier |
@daixiang0: To make things more efficient for you, I created this repo https://github.com/didier-durand/microk8s-kubeedge The README will link you to 1 full execution log where edgecore doesn't get the proper format for the security token. My shell script doing the setup is also in this repo so that you can check how we install and find if our install is incorrect or if the issue is on KubeEdge side. Look for the line saying 'kubeedge edgecore log (after 120s)' in the raw execution log. After it, you have a full export of the journals log for edgecore.service. You will see how the issue is reached as well as the loop on it. Thanks! |
This line shows env is not totally fresh. Here, you need set token by running |
With Closing this ticket. Didier |
What happened
Right after a fresh installation of 2 Linux machines for cloud and edge, when edgecore connects to cloudcore to obtain the security certificate (via HTTP get for ca.crt) on port 10002 , it detects a 'token credentials are in wrong format' (see log below) in the received data. This happens even though both sides were installed at exact same version (v1.4.0) with keadm.
What you expected to happen
I would expect edgecore to connect to cloudcore in order to obtain the security certificate to establish the operational connection between the 2 parts and start the management of objects.
How to reproduce it (as minimally and precisely as possible)
Create a standard install on two machines with kedam v1.4.0 and connect edge to core : the issue happens at initial connection between the 2 sides.
log excerpt on edgecore machine during issue
The log lines below keep repeating in an infinite loop (with some other in addition) as edgecore cannot connect to cloudcore.
Environment
keadm identical on the 2 machines:
Microk8s version on cloudcore machine: kubernetes version 1.19.4 at snap level 1810
Linux on the 2 identical machines :
The text was updated successfully, but these errors were encountered: