Repository navigation
Vendoring libnetwork to fix stale arp cache issue - #13861
Conversation
|
Thanks for fixing so quickly! punk @burke @jfrazelle @icecrime @LK4D4 |
|
LGTM |
|
LOL, damn you autocorrect |
|
Does this need a daemon restart test? |
|
a test would be awesome |
|
@cpuguy83 @jfrazelle What should I test there? Restart the daemon and see if it restarts within 15 seconds? Because daemon will definitely restart with or without the fix |
|
check that arp is clean parse iptables-save maybe idk |
|
arp won't be clean. We are just making sure that the same IP address gets the same mac address (same behavior as 1.6). So may be check if mac address is correctly formed? |
|
hmmm idk |
|
The only thing I can think of is a unit test to verify that MAC are indeed deterministically generated from the input IPv4, but that feels somehow obvious. |
|
From what I gathered from the issue, if you create a container remove the container, restart the daemon (so it uses that IP again) then create a new container, there should be issues communicating with that container. |
|
@cpuguy83 maybe I can create a test for that scenario |
|
LGTM |
|
The test passes on master. |
|
hmmmmm |
|
looks like stopping a container does clear up the arp cache. Even a docker restart will have the same effect of stopping a container. So the only way this could happen is when the daemon crashes which happened for @burke. Not sure how to test that ... |
|
Understood, thanks for trying @mrjana! LGTM but we should remove the test if it's not of any use. |
Vendoring in libnetwork 90638ec9cf7fa7b7f5d0e96b0854f136d66bff92 Signed-off-by: Jana Radhakrishnan <[email protected]>
|
Thanks for fixing this so quickly. I really appreciate it! |
|
LGTM - Windows failure is not related, obviously. |
Vendoring libnetwork to fix stale arp cache issue
|
cherrypicked |
Also added GC issue when the deamon gets restarted without even creating single container.
Vendoring in libnetwork 90638ec9cf7fa7b7f5d0e96b0854f136d66bff92
Fixes #13847
Signed-off-by: Jana Radhakrishnan [email protected]