Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

DNS modifications are lost on system reboot with stemcell 3262.2 and consul-release 97 #31

Closed
sykesm opened this issue Jul 20, 2016 · 5 comments
Labels

Comments

@sykesm
Copy link

sykesm commented Jul 20, 2016

The consul agent's pre-start script appends 127.0.0.1 to /etc/resolvconf/resolv.conf.d/head and the bosh agent in stemcell 3262.2 writes the dns server entries to the same file.

When a system running the consul agent is rebooted, the pre-start script does not run but the agent initialization scripts do so the modifications made to /etc/resolvconf/resolv.conf.d/head are lost and 127.0.0.1 is no longer in /etc/resolv.conf.

The net result is that any job that relies on the consul for DNS resolution fails after a reboot.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/126688091

The labels on this github issue will be updated when the story is started.

@cppforlife
Copy link

@sykesm im assuming you are on softlayer. we have recently fixed that problem in the agent: cloudfoundry/bosh-agent@b74fb97. i dont believe it's made into any stemcell version yet.

@sykesm
Copy link
Author

sykesm commented Jul 20, 2016

@cppforlife yes, on SoftLayer. We did see the pending change to the agent but, as you said, it's not in any available stemcell.

That will help correct this particular problem but we hit several others related to pre-start when SoftLayer rolled VMs in a pod to apply security fixes. One example is in cloudfoundry/capi-release#25.

@Amit-PivotalLabs
Copy link

@sykesm can I close out this issue, as you expect a fix in the upcoming stemcell?

@sykesm
Copy link
Author

sykesm commented Jul 21, 2016

Sure.

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

4 participants