Skip to content

Vendoring in libnetwork to fix #13873. - #13899

Merged
icecrime merged 1 commit into
moby:masterfrom
mavenugo:hp
Jun 12, 2015
Merged

icecrime merged 1 commit into
moby:masterfrom
mavenugo:hp

Conversation

@mavenugo

Copy link
Copy Markdown
Contributor

Libnetwork sha# e578e95aa101441481411ff1d620f343895f24fe

Fixes #13873.

Signed-off-by: Madhu Venugopal [email protected]

@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

Comment thread integration-cli/docker_cli_nat_test.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test seems to be passing on master, both with and without userland-proxy. Also: aren't we supposed to be testing a container connecting to itself through the host IP?

@icecrime

Copy link
Copy Markdown
Contributor

Not LGTM: we're working with @mavenugo to update the test by having the client container be run with --net=container:server to indeed test the use case of a container connecting to itself through the host IP.

@icecrime

Copy link
Copy Markdown
Contributor

LGTM with last update 👍 Thanks @mavenugo!

@mavenugo

Copy link
Copy Markdown
Contributor Author

@icecrime the tests failed :-( ... looking at it now.

@icecrime

Copy link
Copy Markdown
Contributor

The test failure seems like a client-side race condition in busybox' nc. Relevant source is here: data is outputted through xwrite but never flushed. I don't know what to do here...

@mavenugo

Copy link
Copy Markdown
Contributor Author

@icecrime am in the same boat. since the connection succeeds, but the data is not flushed, I did a temporary fix to ignore the data comparison and accept the connectivity success as the criteria. This atleast doesnt block us due to possible nc client issues. am looking at alternatives in parallel. Being a test env specific issue, I think we can proceed ahead with the connectivity confirmation.

Libnetwork sha# e578e95aa101441481411ff1d620f343895f24fe

Signed-off-by: Madhu Venugopal <[email protected]>
@mavenugo

Copy link
Copy Markdown
Contributor Author

@icecrime giving it another go with stty raw.

@mavenugo

Copy link
Copy Markdown
Contributor Author

@icecrime stty raw used along side nc client did the trick :-)

@cpuguy83

Copy link
Copy Markdown
Member

LGTM

@icecrime

Copy link
Copy Markdown
Contributor

Ha! Nice :-)

icecrime pushed a commit that referenced this pull request Jun 12, 2015
Vendoring in libnetwork to fix #13873.
@icecrime
icecrime merged commit 5a02d07 into moby:master Jun 12, 2015
@mavenugo

Copy link
Copy Markdown
Contributor Author

@jfrazelle @icecrime can you pls cherry-pick this to 1.7 bump ?

@LK4D4

LK4D4 commented Jun 12, 2015

Copy link
Copy Markdown
Contributor

Hehe, we should really write our own nc :)

@jessfraz

Copy link
Copy Markdown
Contributor

chery-picked

@mavenugo
mavenugo deleted the hp branch January 21, 2016 11:46
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.

6 participants