[Bug 1774710] Re: DHCP agent doesn't do anything with a network's dns_domain attribute
James Page
james.page at ubuntu.com
Thu Apr 25 06:44:33 UTC 2019
Related to bug 1580588 - there seems to have been some discussion in the
past about the dns_domain attribute of a network being used for external
DNS integration only.
The changes that form part of the fix for this bug make that boundary
less clear and its possible to end up with inconsistency between the
records being written to the dnsmasq hosts file (based on the
CONF.dns_domain which is used by neutron to generate the dns_assignment
properties for a port) and the value passed for "--domain" to dnsmasq
which will prefer the dns_domain of the network if set over
CONF.dns_domain.
This results in forward/reverse lookup inconsistency against the dnsmasq
for the network:
root at bionic-045546-2:~# host 192.168.21.222
222.21.168.192.in-addr.arpa domain name pointer bionic-045546-2.jamespage.internal.
root at bionic-045546-2:~# host bionic-045546-2
bionic-045546-2.designate.local has address 192.168.21.222
In this deployment network.dns_domain == designate.local. and
CONF.dns_domain == jamespage.internal.
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to neutron in Ubuntu.
https://bugs.launchpad.net/bugs/1774710
Title:
DHCP agent doesn't do anything with a network's dns_domain attribute
Status in neutron:
Fix Released
Status in neutron package in Ubuntu:
Fix Released
Bug description:
0) Set up Neutron with ML2/OVS or LB, or anything that uses the DHCP agent
1) Create a network with dns_domain
2) Boot a VM on it
Notice the VM doesn't have the DNS domain in it's /etc/resolv.conf
In short, per-network DNS domains are not respected by the DHCP agent.
The dns_domain attribute is persisted in the Neutron DB and passed on
to the DHCP agent via RPC, but the agent doesn't do anything with it.
Versions:
Master and all previous versions.
WIP fix is in https://review.openstack.org/#/c/571546.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1774710/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list