mesosphere / mesos-dns

DNS-based service discovery for Mesos.
https://mesosphere.github.com/mesos-dns
Apache License 2.0
484 stars 137 forks source link

Remove "netinfo" from IPSources #369

Open sargun opened 8 years ago

sargun commented 8 years ago

We added NetInfo to IPSources in 0.4, which allows Mesos-DNS to pull A record information from the "NetworkInfo" field in state.json. In our understanding this was only to be used by the modules which were using this for customizing the IPs per container.

Unfortunately, this was not the case! The docker containerizer uses NetworkInfo as well, and can set the inside container of the IP in NetworkInfo. This means that this becomes the A record in Mesos-DNS, rendering the container inaccessible.

There are a couple things here:

sargun commented 8 years ago

@jdef As a stop-gap, I think rather than removing "netinfo" as a source in config.go, we add the "sources" field to config.json.sample, and set it to ["mesos", "host"]. That way, it doesn't break old installations relying on the behaviour, but everyone who starts from the config.json.sample is in good shape.

https://github.com/mesosphere/mesos-dns/pull/370

jdef commented 8 years ago

Some thoughts:

On Tue, Nov 24, 2015 at 12:13 PM, Sargun Dhillon notifications@github.com wrote:

@jdef https://github.com/jdef As a stop-gap, I think rather than removing "netinfo" as a source in config.go, we add the "sources" field to config.json.sample, and set it to ["mesos", "host"]. That way, it doesn't break old installations relying on the behaviour, but everyone who starts from the config.json.sample is in good shape.

— Reply to this email directly or view it on GitHub https://github.com/mesosphere/mesos-dns/issues/369#issuecomment-159344444 .

jdef commented 7 years ago

477