MAAS DNS fails to update with correct information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
You have the flat network layout, MAAS installed on a machine, one /24 range given to MAAS to look after (DNS and DHCP).
On a machine you have 3 interfaces, 2 bonded, one not, you set the bonded one to be a static ip in your subnet/fabric/range and you leave the other one unconfigured, however it is used to PXE boot.
You commission the machine and click leave the network config alone, MAAS updates the bind server with the floating IP that was given to the non-bonded interface used to PXE boot.
If you use the Openstack Installer from Landscape for example, the machine will go into deploying mode and the OS will be setup, MAAS still hasn't updated bind, once the machine switches to "Deployed" state bind is not updated and various things on the machine fail because it does a hostname lookup for itself, MAAS tells it the floating IP that the unconfigured interface got from DHCP and things fail.
A manual workaround is to wait until the machine is set to "Deployed", quickly edit /etc/bind/
root@ubuntu-maas:~# dpkg -l '*maas*'|cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 1.9.0+bzr4533-
ii maas-cli 1.9.0+bzr4533-
ii maas-cluster-
ii maas-common 1.9.0+bzr4533-
ii maas-dhcp 1.9.0+bzr4533-
ii maas-dns 1.9.0+bzr4533-
ii maas-proxy 1.9.0+bzr4533-
ii maas-region-
ii maas-region-
ii python-django-maas 1.9.0+bzr4533-
ii python-maas-client 1.9.0+bzr4533-
ii python-
In 1.9 on any earlier release, MAAS will only provide DNS mapping against the PXE interface. As such, when leaving the PXE interface unconfigured, the machine will DHCP from MAAS' Dynamic range, causing to not create a DNS record against the node, and hence DNS resolution will fail.
MAAS 2.0 will continue to provide DNS mapping against PXE, but provide PTR records for the rest of interfaces.