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

Bug #1691047 reported by Harald Jensås
This bug report is a duplicate of:  Bug #1311040: Subnet option to disable dns server . Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
New
Undecided
Unassigned

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?

Tags: l3-ipam-dhcp
Revision history for this message
Harald Jensås (harald-jensas) wrote :
tags: added: l3-ipam-dhcp
Changed in neutron:
status: New → Confirmed
status: Confirmed → New
Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

I'm not sure this case yet. Is your case related to https://bugs.launchpad.net/neutron/+bug/1692121 ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.