-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
libnetwork vendoring #18775
libnetwork vendoring #18775
Conversation
Does it really close #18355? Seems like there's still stuff to do in engine after this is merged. |
@cpuguy83 I thought libnetwork was the only place referencing it. If not I will remove it. |
Yeah, it doesn't close #18355, docker referencing .dockerinit in many places. |
LGTM It will also be good to update the doc
|
Ok fixed and updated. |
This says "Freebsd compilation fixes", should this close #18249? Because I still get netlink errors compiling this fork on FreeBSD:
|
Having all kinds of issues with this.
I've reset the k/v store, the docker storge dir, |
|
@cpuguy83 i dont think it is related to this change. as we have discussed in the past, if the user decides to cleanup the internal states (/var/lib/docker/netns or the kv-store states), then the user must take care of cleaning up all the relevant internal states and unmount the devices (in this case it is the vxlan). |
@mavenugo I'll play some more, but I did it twice with fresh VM's on DO. |
@cpuguy83 thanks for the confirmation. If its a fresh VM, then its a problem. I will try it as well. |
@cpuguy83 @mrjana I could not repro the
Restarting the vm fixed the issue though. I guess we have to fix it by cleaning up the vxlan device on daemon start ? |
@cpuguy83 @mrjana seen again here : #18770 (comment) |
@cpuguy83 @mavenugo There was name change in the vxlan interface before this change and after this change. We moved to a predictable name change. Because of this name change stale vxlan interfaces which were created by the previous versions were not being deleted properly. I've added a better cleanup logic which cleans up based on VNI and works better. PTAL |
This vendoring also fixes #18657 |
@mrjana it solved the issue I reproduced. But am facing another issue with iptables (I will confirm if this is related to this change or not). |
Vendoring libnetwork @ 9f0563ea8f430d8828553aac97161cbff4056436 Brings in: * Support for overlay network driver in 3.10+ kernels * Freebsd compilation fixes * Remove .dockerinit dependency * IPAM driver capability support * Network internal mode support * Misc. fixes Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
@clinta This vendoring in PR just brings in some freebsd compilation fixes but we don't know if it fixes all freebsd compilation errors. We haven't instituted freebsd cross compilation checks in libnetwork CI yet. |
AFAICT this is LGTM from me assuming CI is green. One thing I'd like to point out: as we split out the Engine and create more repos, we will soon be enforcing that vendoring of our docker's dependencies will go through tags (cc @anusha-ragunathan). |
@@ -16,7 +16,6 @@ network. Docker Engine supports multi-host networking out-of-the-box through the | |||
`overlay` network driver. Unlike `bridge` networks, overlay networks require | |||
some pre-existing conditions before you can create one. These conditions are: | |||
|
|||
* A host with a 3.16 kernel version or higher. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we continue mentioning a minimal kernel version nevertheless?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is going to work on all Docker Engine supported kernel versions. There are no specific minimal kernel version needs for overlay driver. Should we still specify a minimal kernel version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but there is the kernel version in the commit msg: Support for overlay network driver in 3.10+ kernels
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wenchma that's because 3.10 is the minimum supported kernel version for docker engine. Pls refer to https://docs.docker.com/engine/installation/ubuntulinux/ and other distributions for the pre-req documentation. I guess this covers all the docker features including overlay networking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! It's perfect then thanks :-)
Related?
|
@icecrime I don't think it's related. As a matter of fact the same test passed in |
Oh, it's all green! docs LGTM |
Vendoring libnetwork @ 9f0563ea8f430d8828553aac97161cbff4056436
Brings in:
* Support for overlay network driver in 3.10+ kernels
* Freebsd compilation fixes
* Remove .dockerinit dependency
* IPAM driver capability support
* Network internal mode support
* Misc. fixes
Fixes #18657
Signed-off-by: Jana Radhakrishnan mrjana@docker.com