-
Notifications
You must be signed in to change notification settings - Fork 712
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
In containers view, show short lived connections to/from the internet. #493
Conversation
86d2a98
to
1828b8c
Compare
1828b8c
to
04690b5
Compare
04690b5
to
e62dd51
Compare
@fons would you mind giving this a test? I can't test easily from singapore. @peterbourgon its a bit untidy, so I'd welcome suggestions on how to clean this up. |
This should finally fix #446 |
e62dd51
to
5f8f4c4
Compare
@tomwilkie Ops, I missed this (I wish I could have the fons user though :) ) Unfortunately it still doesn't work. The Internet node is now gone from the non-system containers view: Report: https://gist.github.com/2opremio/2d03e27de9a3bf39bfc2 |
Okay I'll have to take a look next week. Copying binaries to ec2 takes too long from here. |
5f8f4c4
to
184d7eb
Compare
@fons I've got this working for my test case, could you confirm it works for yours? |
184d7eb
to
5b239a0
Compare
@tomwilkie Same result :S |
… by including port mappings in the join.
5764df8
to
d3aa975
Compare
@2opremio I'm confident I've got it this time. Just writing a integration test. Fancy giving it a try? |
@tomwilkie Yes, you did! |
Test failures aside, LGTM |
b613f33
to
ab94da5
Compare
ab94da5
to
ab83f41
Compare
@2opremio does your lgtm extend to the code, or just saying it works? I've added a unit test as well, to ensure this case is covered. Please take a look. |
has_container $HOST1 nginx 1 | ||
has_connection $HOST1 "The Internet" nginx | ||
|
||
kill %do_connections |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
…nections In containers view, show short lived connections to/from the internet.
Problem: short-lived, incoming connections from the internet to a container don't show up in the UI. This is because the local end of the connection is to the hosts IP (not a container), and we drop nodes without a container on them.
Outgoing short lived connections to the internet do work.
We should take into account the container port mappings when translating this node to a container ID. This can be done unambiguously.