-
Notifications
You must be signed in to change notification settings - Fork 6
Traefick and Docker Swarm generating OVERLAY network error #38
Comments
After searching a while I've stumbled upon this thread I don't know if this is the reason why it is not working. I've also installed lxc and cgroup-lite with latest version. |
I also found this |
And this |
And this |
It seems that when I remove the --publish 80:80 --publish 8080:8080 with the --network traefik-net flags the service runs without a problem except that it's impossible to access Traefik within the browser.
The problem seems to be related with EXPOSING PORTS + LINKING NETWORK |
Okay, this is just a guess and also not really encouraging: HypriotOS builds for the Odroid C1 and Odroid C2 are quite similar these days. And I am running Traefik successfully on the C2. Based on that and the links to Docker issues you've provided, I am guessing that this is primarily a kernel issue - the official C1 kernel ist based on 3.10. If you have time, you could try to build a mainline kernel for the C1. This is described here. If that's successful, perhaps we can include a custom kernel instead of the official one. |
I never did what you suggest me to do and I never went that low level to deal with custom kernel compiling. I'm afraid that right now I don't have the ground knowledge to do this task I'm sorry :( But it seems that I have found a website with informations regarding the kernel 4.X on the Odroid C1 Forum with links to various resources web sites. This page has pre-compiled kernels for C1 but I don't know what features are necessary for HypriotOS could you please guide me on the next steps? https://kernelci.org/boot/meson8b-odroidc1// Odroid C1 thread : http://forum.odroid.com/viewtopic.php?f=111&t=19292 Thank you for your help :) |
@docbobo @StefanScherer to be honest I have found this mainline kernel compiled but there are so many variant that I really don't understand the meaning of them. This one seems to be a mainline v4.11-rc5-133 This is the log file : Boot log: meson8b-odroidc1 Now that I have the zImage what should I do ? |
I have a question concerning maybe a link between the OVERLAY storage driver and the AUFS driver... My docker info says
Does this docker command docker network create --driver=overlay traefik-net has anything to do with the OVERLAY Storage Driver? My question is actually does the OVERLAY network have a dependancy from OVERLAY Storage Driver ?????? Maybe that's the reason why docker is not able to connect the Traefik service in SWARM MODE to the OVERLAY network. |
Browsing on Github I have found this Odroid C1 Gentoo Overlay repo but I'm not sure if it has to do with the C1 Overlay Storage Engine. Can you check if I'm correct ? |
@docbobo @StefanScherer is it enough that I go on this link and download the 2 files https://kernelci.org/boot/id/58e609ea59b514863ab12d51/
and upload them in via ssh in the root folder of the microSD card and change the boot.ini to load them instead?
Or is it more complicated than that ????? How do I integrate the last part to this tutorial on building the kernel for Odroid C1???? |
The overlay network has nothing to do with the overlay storage driver. |
Don't get me wrong Traefik is working really well on my Odroid C1 when I'm not using the Docker Swarm Mode with regular containers created with docker run -d --name xyz etc.... The problems of this thread are only related with Traefik not able to be installed as service with Docker Swarm Mode. |
Can someone help here ? I did a lot of research and I don't know yet where to go from here ... Thanx |
@gdeverlant
Yes, Traefik will work well without Docker Swarm Mode. This is because Docker Swarm attempts to create an overlay network for the service - which fails due to the old kernel. I'll have a brief look at the mainline kernel you dug up, but to me it seems as if the modules are missing. So I am not to confident, this'll work. The Gentoo Overlay Repository provides a few general packages, but not the kernel itself. |
I have found this ticket on Docker's repo and it seems that they support VXLAN for Kernels lower than 3.16 can you check this out? |
Do you mind running the upgrade to docker 17.04.00 (see #39) to verify if the problem still persists? |
I already thought about that and did so but nothing changes...
|
When I went through the Swarm Mode documentation on Docker's website I found this statement : https://docs.docker.com/engine/swarm/swarm-tutorial/#open-protocols-and-ports-between-the-hosts
So I've searched for how to set my firewall with iptables and I found this link: I've set my firewall on manager and worker as suggested and it didn't worked as well. |
Okay, things are perhaps easier than expected. This is the output of the docker check-config.sh
As you can see, it says |
No wayyyy is that so simple ?????? Can you also activate CONFIG_OVERLAY_FS ??? I hope it is possible :) I don't want to reflash my cluster so please just tell me which files I need to replace on the microSD cards to make the update. Thanx |
Can you make a video tutorial or blog post about how to do this kernel compilation... I'm someone visual and learn better with screencasts or screenshots. I never compile the linux kernel for Odroid C1 and I don't understand these modules concept and kernel differences. I would like to be independant in the future when there are such bugs or ticket to contribute to this repo. |
Do you know when you will release this ? |
First of all, I need to build the kernel and verify that the module is there. Then, I will likely create a pull request for the hardkernel image repository, so that they can update their default configuration. If you need to get this running anytime soon, you'll probably be better of building your own kernel - if it works as expected. I can try to give you some instructions, shouldn't be too complicated. |
Bad timing, sorry. However, if you follow this step by step, you should be able to build your own kernel with the VXLAN module. Make sure to have a backup though.
This is based on the instructions mentioned above, but adopted for HypriotOS. |
I ran this on the odroid itself. Not sure if it will work in VirtualBox |
YAY IT IS WORKINGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG !!!!!!!!!!!!!!!!!!! You are a champioin !!!!!! Thank you |
I tried to change my hostname with :
|
Related issue with Traefik team: traefik/traefik#1423
Hi guys I'm stucked again with Traefick and Docker Swarm.
I tried to use this tutorial :
https://docs.traefik.io/user-guide/swarm-mode/
On my 2 Odroid C1 boards I have :
1 manager node
1 worker node
The part where it doesn't work is at this step
Screenshots of Portainer
In Portainer I can see the error message for this container:
The kernel I use is:
WARNING: No kernel memory limit support
The text was updated successfully, but these errors were encountered: