-
Notifications
You must be signed in to change notification settings - Fork 882
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
check before trying to load br_netfilter? #1210
Comments
I guess the question is: if |
@runcom I guess it depends on what "Docker is fine and runs normally" means. The reason we do this because in newer kernels we can't apply iptables for bridged traffic (used for linked containers and icc=false) if this module is not loaded and that causes functionality issues for those containers which are linked (but daemon is started with |
@mrjana sorry I don't agree
If you are in this situation you'll likely want to restart the daemon with -D to understand more (and probably trying to reproduce) - logging at warning level is not helping here. What you highlighted is "debugging" - not normal run. And by restarting the daemon in debug mode you'll find out instantly. |
@runcom There is a big difference between doing this in dev and in production.
So if I have to choose between a minor annoyance in a warning message that happens once early in the bootup and not able to address a user concern as a maintainer I will always choose the latter, Now I am not saying that the current logic can't be improved. If you can push a PR which attempts this modprobe only in kernels where it is required and if that process fails it generates a warning message I will gladly accept that PR. |
your scenario isn't right to me - ppl usually run tests and integration before going to production and they can easily find out their app isn't working because container connectivity isn't working so restart with -D in non production is a thing, i don't think ppl go straight to production with an app based on Docker and multi container without testing it. It's far more important in production not to get false warnings instead - you'll get to deal with customer support and all these stuff all day because ppl get worried on a warning. |
It should be instead tightly documented that possibly inter container communication is going to work properly if those modules aren't enabled - I think what you say is more targeted to individuals who tries to run docker without even bothering checking docs and check scripts rather than companies who instead are going to check everything before running something in production (and restarting with debug in a staging environment is likely to be done instantly) |
However, ack on creating a PR to try and check if kernels support it before modprobing (I've no clue about this honestly) |
Oh I didn't make up this scenario. This actually happened many times for real.
Thanks. That is what we need in order to improve the situation overall. |
@runcom It has been detected that this issue has not received any activity in over 6 months. Can you please let us know if it is still relevant:
Thank you! |
on a rhel7.2 system running kernel
3.10.0-327.18.2.el7.x86_64
I always get:Steps to reproduce (it's 100% reproducible):
I don't really know what's happening but Docker runs really fine but I always get that annoying warning - is there any way to mute it? like trying not to load br_netfilter under some circumstances?
running the modprobe manually gives me this:
ping @mavenugo @aboch @mrjana
The text was updated successfully, but these errors were encountered: