Closed snorremd closed 7 years ago
I believe I have this problem too. Is there any way to override the version when we create a new server?
Situation right now is that I cannot create any new servers that can publish ports from docker swarm.
Same issue with Scaleway kernel 4.10.8-docker-1, i change docker version from 17.05.0-ce to 17.03.0-ce, but it is not helps. Swarm not accessible from outside, or even from host.
same errors:
level=error msg="Failed to write to /proc/sys/net/ipv4/vs/conntrack:
Same for me, waiting for new bootscript, please add new bootscript!
Same issue for me. Kernel 4.8.x was working before.
Please, return old kernel - 4.8.14-docker-2 as a choice, if you can't add new one, it is critical.
Same thing.
+1
:+1:
Please add the NFCT option! Docker Swarm will not run without it!
👍 I'm waiting also this fix :)
I am trying to use docker swarm and It looks I can not get IPVS works fine ....
docker.log has:
level=warning msg="Running modprobe ip_vs failed with message: modprobe: module ip_vs not found in modules.dep
, error: exit status 1"
level=error msg="Failed to write to /proc/sys/net/ipv4/vs/conntrack: open /proc/sys/net/ipv4/vs/conntrack
I am using: bootscript: x86_64 4.10.8 docker #1 ( is this the one I should be use ?) OS Alpine 3.6.1
Where is the problem if IP_VS_NFCT is enabled ? Is possible to have docker swarm and running with your baremetal servers ? Should I use Private IPs o Public IPs for the swarm cluster ? Considering that private IPs could be reassigned at boot time
Just after more testing: If I use kernel option x86_64 4.10.8 docker #1 and then run command: zcat /proc/config.gz | fgrep IP_VS ... I get CONFIG_IP_VS=y But "lsmod | fgrep ip_vs " command does not show up ip_vs module available
Please check this https://github.com/moby/moby/issues/26930 It looks like we need to make at least CONFIG_IP_VS_RR and CONFIG_IP_VS_NFCT available and are off in config kernel
Looking at https://github.com/rstub/kernel-tools/blob/8bd75cc3ef2d81d067c68cdadbf46a1a6172d4bc/x86_64/4.10.8-docker/.config line 1031 it is activated but in the current bootscript available is not
The x86_64 4.4.70 std #1
bootscript which address another issue should run Docker fine and has this options enabled. I tried to merge most of the -docker and -apparmor kernels into the -std one.
Many thanks for your answer ... I almost give up !!! swarm finally works. I still do not know if it is better to use private or public IPs for the nodes and swarm but both seems to work from outside and ip_vs module is loaded. It will be nice to know what is different in each bootscript ... or at least what are your criteria to setup that options. Thanks for your answer and work
@tbillon The bootscript you mention is not available in AMS1. Any fix for AMS servers? Thanks.
I think it is but unfortunately it's only available for x86.
In my case, I need this for when I use the docker-machine driver. Is it possible to adjust which bootscript is used there?
Just lost 2 hours trying to find why docker swarm wasn't publishing my ports to the outside :)
Worked with x86_64 4.4.70 std #1 bootscript
@tbillon The bootscript "x86_64 4.4.70 std #1" you mentioned seems to be not available anymore. Is there any bootscript currently available that supports docker swarm?
The 4.11 mainline kernel works for me
On Thu, 31 Aug 2017, 9:15 PM Max Trense notifications@github.com wrote:
@tbillon https://github.com/tbillon The bootscript "x86_64 4.4.70 std #1 https://github.com/scaleway/kernel-tools/issues/1" you mentioned seems to be not available anymore. Is there any bootscript currently available that supports docker swarm?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/scaleway/kernel-tools/issues/343#issuecomment-326238827, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJN8111CFEfscBOfK0ikAb7oROs0dXFks5sdnnBgaJpZM4M-Gwf .
I've just tested x86_64 mainline 4.11.12 rev1
on two VC1S instances.
A docker service create -p 9090:80 --replicas 2 --name test1 nginx:alpine
creates the specified service but the networking between swarms loadbalancer and the service does not work.
The required module ip_vs_nfct
is also not available for that kernel.
@insertjokehere How did you get swarm to work?
Try one of the current 4.4 or 4.9 bootscript. Both have CONFIG_IP_VS_NFCT
enable.
This also holds for the latest mainline scripts (I use x86_64 mainline 4.13.5 rev1)
4.10.8 docker doesn't work. Why closed?
x86_64 mainline 4.9.64 rev1 works. It seems finally I can run my server on Scaleway.
Latest bootscripts got it disabled again :(
Edit: Was referring to the docker bootscript.
No, it's still here. Look into the /proc/config.gz
file.
# uname -a
Linux git 4.9.64-mainline-rev1 #1 SMP Tue Nov 21 10:00:26 UTC 2017 x86_64 GNU/Linux
# zcat /proc/config.gz | grep -i nfct
CONFIG_IP_VS_NFCT=y
The mainline kernel works as expected.
as of june 2018 in ubuntu 16.04, default config, only choosing the server range (in amsterdam by the way), docker swarm does not work, to make it work you have to change the bootscript, for me "x86_64 mainline 4.9.93 rev1" worked, but to be able to change the bootscript you have to disable enable boot mode
under advanced, after disabling it and creating the server, bootscript will now show, and you can change it
The kernel tools x86_64/4.8.14-docker enables
IP_VS_NFCT
. The x86_64/4.10.8-docker version does not enable theIP_VS_NFCT
kernel module.When I for example run nginx as a docker swarm service on a scaleway docker server and expose port 80 with
--publish 80:80
it should be available on http://localhost on the server, but is not. Running nginx as a normal container and publishing the port works as expected.I think the missing IP_VS_NFCT module might be what is causing my issues when running docker services in swarm mode. The docker engine logs among other things: