Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

connect to http control interface at localhost instead of docker ip #1546

Closed
rade opened this issue Oct 16, 2015 · 5 comments
Closed

connect to http control interface at localhost instead of docker ip #1546

rade opened this issue Oct 16, 2015 · 5 comments
Labels
Milestone

Comments

@rade
Copy link
Member

rade commented Oct 16, 2015

Since fastdp landed, the router is running in the host network namespace. This means that the http control interface is on localhost:6783. There is therefore no need to go through contortions in the weave script to obtain the weave container's docker ip. Furthermore, it also means things like weave --local expose will work against a non-dockerized weaver, i.e. the script can invoke IPAM w/o any interactions with docker.

@rade rade added the chore label Oct 16, 2015
@rade rade changed the title connect to http control interface at localhost connect to http control interface at localhost instead of docker ip Oct 16, 2015
@dpw
Copy link
Contributor

dpw commented Oct 21, 2015

I wouldn't recommend adding dependencies on the fact that the router is running in the host network namespace. fastdp led to that because use of the kernel's openvswitch module strongly suggested that approach. Having it in a netns does seem preferable, and I would not claim that we have exhausted all avenues to achieve that.

@rade
Copy link
Member Author

rade commented Oct 21, 2015

Having it in a netns does seem preferable, and I would not claim that we have exhausted all avenues to achieve that.

That very much seems like a nice-to-have. There isn't even an issue for it!

If we do ever bother to work on that, and come up with a solution, then we can put the contortions back at that point.

@awh
Copy link
Contributor

awh commented Nov 5, 2015

At the moment we fall back to running the router in a container netns if WEAVE_NO_FASTDP is defined or if the kernel doesn't have ODP support. Are you suggesting that we run the router in the host netns unconditionally?

@rade
Copy link
Member Author

rade commented Nov 5, 2015

Are you suggesting that we run the router in the host netns unconditionally?

Yes.

@rade
Copy link
Member Author

rade commented Nov 7, 2015

If we do this we can get rid of most of the code in proxy.getDNSDomain - we no longer need to inspect the weave container in order to figure out what IP to find the weave control port on.

That code is run for every container created through the proxy, so this is a nice win.

@awh awh removed this from the 1.3.0 milestone Nov 9, 2015
@awh awh added this to the 1.2.1 milestone Dec 2, 2015
@awh awh closed this as completed Dec 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants