← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1691047] [NEW] dhcp agent - multiple interfaces, last iface coming up overwrite resolv.conf

 

Public bug reported:

The resolv.conf gets populated with whatever the last interface that
came up over DHCP provided.

Even if the 2nd network/subnet in neutron doesn’t define DNS, it still
overwrites resolv.conf.

By default the dnsmasq agent will use itself, and it's pairs as DNS servers if no dns_servers are provided for the neutron subnet. Ref:
  https://github.com/openstack/neutron/blob/master/neutron/agent/linux/dhcp.py#L877:L887
  https://github.com/openstack/neutron/blob/master/neutron/agent/linux/dhcp.py#L970

This is not always desired. Is there a way to disable this behaviour,
and simply not offer any dns servers if there are none specified in the
neutron subnet?

** Affects: neutron
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1691047

Title:
  dhcp agent - multiple interfaces, last iface coming up overwrite
  resolv.conf

Status in neutron:
  New

Bug description:
  The resolv.conf gets populated with whatever the last interface that
  came up over DHCP provided.

  Even if the 2nd network/subnet in neutron doesn’t define DNS, it still
  overwrites resolv.conf.

  By default the dnsmasq agent will use itself, and it's pairs as DNS servers if no dns_servers are provided for the neutron subnet. Ref:
    https://github.com/openstack/neutron/blob/master/neutron/agent/linux/dhcp.py#L877:L887
    https://github.com/openstack/neutron/blob/master/neutron/agent/linux/dhcp.py#L970

  This is not always desired. Is there a way to disable this behaviour,
  and simply not offer any dns servers if there are none specified in
  the neutron subnet?

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1691047/+subscriptions


Follow ups