-
Notifications
You must be signed in to change notification settings - Fork 672
Fix deletion of interface on container delete in weave docker proxy mode #3570
Conversation
Fixes #3406 weave not deleting network interfaces
So what changed? When I last looked at this area the veth would disappear if the netns it was attached to disappeared. |
From what i see handlers for |
Right, I meant what changed outside of Weave Net. |
Trying various versions reveals the veth goes away with the container when run with Weave Net 2.3.0, and does not go away with 2.4.0. This is the result of
and 2.4.0:
Can't spot any relevant difference. Looking at the changes in 2.4.0, I suspect #3291 - where we change namespace differently. I see the veth does go away if I stop the |
I tried this branch out, and while it achieves the desired effect I see a number of error messages in the log:
Some of them look like they come from containers dying that were never attached to the Weave network. The first one comes just from I think it would be best to remain silent if the veth name does not exist. |
thanks for the feedback, i will make the necessary changes.
Interesting. As I understand so from 2.4, weaver process switch to container namespace perform operations (instead of separate process) and switch back to its own namespace? But some how this holds back the veth pair? Let me check if there is any leakage of network namespaces as well. |
@murali-reddy can we support somehow (testing) here? will this also fix #3432 ? |
@MikeMichel I did not had a chance to investigate #3432, but does seems like a related. Will check if its due to same root cause.
Certainly could use help with testing. I will update the PR and share a private image |
Unfortunately fix in this PR does not work consistently. There is some latent problem after this change how network namespaces are switched. I need to rework on proper fix. Closing this PR. |
Fixes #3406 weave not deleting network interfaces