-
Notifications
You must be signed in to change notification settings - Fork 175
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
Container with container-network gets assigned bogus port mappings after VCH restart #6091
Comments
Since the port is being mapped to a random port on the VCH, there is a sort of security breach I suppose, since the container is now exposed through the VCH. But I think this should be easy to fix: we just need to add another condition (to check if the endpoint is for a container network) to https://github.com/vmware/vic/blob/master/lib/apiservers/engine/backends/backends.go#L324 . |
@hmahmood agree that we should be checking if the endpoint is for a container network. On a different note - would be nice if we could provide the container network IP for published ports ;) |
+100 to displaying the container IP in docker ps :) |
@hickeng good point ... looking at the MapPorts function implementation, we add an iptables rule for the bridge interface, so the mapping is there, but not functional. There is an open port now on the VCH, although it goes nowhere; this mitigates the issue for me. |
Good to know. Remains a highly visible UX issue though. |
User Statement:
As a VIC user, I need docker ps to show me correct information after a VCH upgrade or reconfigure.
Details:
I'm not yet sure of the severity of this issue. It may be as minor as docker ps reporting wrong information, or as major as the networking being misconfigured on the containerVM leading to other issues.
Found using the most recent build 13393. Easy to reproduce:
now restart the VCH, either by doing an upgrade, reconfigure or a literal power cycle.
Note that this container VM now has port mappings, which it shouldn't have, given that it's connected to a container network.
Acceptance Criteria:
I would like someone who understands the code to at least offer an opinion as to the severity of this issue.
The text was updated successfully, but these errors were encountered: