Skip to content
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

systemd-networkd / dhcp being stopped by resolvable #12

Open
trnubo opened this issue Aug 21, 2015 · 3 comments
Open

systemd-networkd / dhcp being stopped by resolvable #12

trnubo opened this issue Aug 21, 2015 · 3 comments

Comments

@trnubo
Copy link

trnubo commented Aug 21, 2015

I'm trying to run resolvable on CoreOS and AWS but my instances are losing their network connectivity periodically. I have narrowed it down to resolvable and that the machines with resolvable running don't have systemd-networkd running and when resolvable is not run systemd-networkd remains working.

I'm starting resolvable in a docker container with -e DNS_RESOLVES="8.8.8.8,8.8.4.4" -v /var/run/docker.sock:/tmp/docker.sock -v /run/systemd:/tmp/systemd -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket gliderlabs/resolvable:master

Obviously AWS is running with a DHCP network not static IPs. It seems that unless I explicit add a network unit (like the one below, coreos doesn't have any by default) resolvable will effectively shutdown systemd-networkd which could be causing my issues (I'm still testing with the extra network unit).

[Match]
Name=eth*

[Network]
DHCP=ipv4
@tilgovi
Copy link

tilgovi commented Jan 26, 2016

I've been having instances go unreachable. I'm giving this a try.

@tilgovi
Copy link

tilgovi commented Jan 26, 2016

I've managed to avoid the issue by not mounting systemd or resolv.conf. Instead, I'm running resolvable with the early-docker service and running the regular docker with "DOCKER_OPTS=--dns $private_ipv4". I think this is a nice also because it ensures that containers started with the primary docker daemon don't risk getting a bad resolv.conf from before resolvable started.

@tilgovi
Copy link

tilgovi commented Feb 18, 2016

@trnubo what do you think a solution could be? Maybe just documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants