Subnet should allow for disabling DNS nameservers (instead of pushing dhcp ip as default)

Bug #1400286 reported by Yair Fried
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Expired
Low
Unassigned

Bug Description

When connecting a VM to more than 1 network interface, defaults of the second subnet will override user-defined settings of the first (usually primary) interface.

Reproduce:
1. create a VM with 2 network interfaces where:
    eth0 - subnet with a GW, and a custom DNS nameserver
    eth1 - secondary network where subnet is created with default settings, dhcp enabled
NOTE: most images will require manually requesting DHCP on eth1
2. check routing and DNS details on VM.
    custom settings from primary subnet's DNS, and default GW have been overridden by secondary subnet's defaults

Workarounds:
1. reverse network settings so that primary interface sends DHCP request last.
    - problematic because usually the most important network and NIC should be defined first. Also, some VMs might be connected only to primary, so this would create inconsistencies between VMs in the same network
2. Manually disable defaults on secondary subnet:
    - Works for GW.
    - Doesn't work for DNS, since Neutron configures dnsmasq to push DHCP port's IP when no DNS nameserver is defined
3. Manually set secondary subnet's DNS to match primary's.
    - Not all users have access to the data of all other subnets. Primary network might have been created by another user

Tags: l3-ipam-dhcp
Changed in neutron:
assignee: nobody → Satish Inakoti (inakoti-satish)
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

The issues doesn't seem to have an obvious solution due to the fact that two independent subnet settings conflict when being used by one VM.
I'm not sure there is any problem on neutron side.
Are there any suggestions? It looks like the only way to fix this is to introduce proper API support which might be quite complex.

Changed in neutron:
importance: Undecided → Low
status: New → Confirmed
tags: added: l3-ipam-dhcp
Changed in neutron:
status: Confirmed → Incomplete
Revision history for this message
Yair Fried (yfried) wrote :

If it was up to me, I would like an option, either via subnet API, or via dhcp-agent-conf to disable the default dns push, so that if you don't add a nameserver, neutron wouldn't push a default one. same way that it doesn't push a GW if you uncheck the GW box

Changed in neutron:
assignee: Satish Inakoti (inakoti-satish) → Avinash (avinash-jalumuru)
Changed in neutron:
assignee: Avinash (avinash-jalumuru) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for neutron because there has been no activity for 60 days.]

Changed in neutron:
status: Incomplete → Expired
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.