Skip to content

Vendoring libnetwork to fix stale arp cache issue - #13861

Merged
cpuguy83 merged 1 commit into
moby:masterfrom
mrjana:cnm_integ
Jun 11, 2015
Merged

cpuguy83 merged 1 commit into
moby:masterfrom
mrjana:cnm_integ

Conversation

@mrjana

@mrjana mrjana commented Jun 10, 2015

Copy link
Copy Markdown
Contributor

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]

@thaJeztah

Copy link
Copy Markdown
Member

Thanks for fixing so quickly!

punk @burke @jfrazelle @icecrime @LK4D4

@icecrime

Copy link
Copy Markdown
Contributor

LGTM

@thaJeztah

Copy link
Copy Markdown
Member

LOL, damn you autocorrect

@cpuguy83

Copy link
Copy Markdown
Member

Does this need a daemon restart test?

@jessfraz

Copy link
Copy Markdown
Contributor

a test would be awesome

@mrjana

mrjana commented Jun 10, 2015

Copy link
Copy Markdown
Contributor Author

@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

@jessfraz

Copy link
Copy Markdown
Contributor

check that arp is clean parse iptables-save maybe idk

@mrjana

mrjana commented Jun 10, 2015

Copy link
Copy Markdown
Contributor Author

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?

@jessfraz

Copy link
Copy Markdown
Contributor

hmmm idk

@icecrime

Copy link
Copy Markdown
Contributor

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.

@cpuguy83

Copy link
Copy Markdown
Member

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.

@mrjana

mrjana commented Jun 10, 2015

Copy link
Copy Markdown
Contributor Author

@cpuguy83 maybe I can create a test for that scenario

@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

@cpuguy83

Copy link
Copy Markdown
Member

The test passes on master.

@jessfraz

Copy link
Copy Markdown
Contributor

hmmmmm

@mrjana

mrjana commented Jun 11, 2015

Copy link
Copy Markdown
Contributor Author

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 ...

@icecrime

Copy link
Copy Markdown
Contributor

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]>
@burke

burke commented Jun 11, 2015

Copy link
Copy Markdown
Contributor

Thanks for fixing this so quickly. I really appreciate it!

@cpuguy83

Copy link
Copy Markdown
Member

LGTM - Windows failure is not related, obviously.

cpuguy83 added a commit that referenced this pull request Jun 11, 2015
Vendoring libnetwork to fix stale arp cache issue
@cpuguy83
cpuguy83 merged commit 4fc6449 into moby:master Jun 11, 2015
@jessfraz

Copy link
Copy Markdown
Contributor

cherrypicked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants