Unconfigured interfaces shouldn't add DNS records
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
LaMont Jones |
Bug Description
I'm struggling with trying to keep MAAS dns straight when it comes to static IP's on Bonds.
My servers have 4 NICS, 2x 1GB (eth0 and eth1) and 2x 10GB (eth3 and eth4).
These particular servers only PXE over eth0 or eth1 and I bond eth3 and eth4 together to make bond0.
After commissioning the server, I set a static IP on bond0 and want the DNS record to be this IP.
I set both eth0 and eth1 as Unconfigured for both the subnet and IP, yet DNS still points to eth0's discovered IP.
This isn't always the case, sometimes it sets it to bond0 static IP.
The MAAS DNS shouldn't point to unconfigured interfaces, it would almost be better to have no record at all than one pointing to an IP that won't exist when the node is deployed (since it's a dynamic IP that could be assigned to another node later on)
Related branches
- Blake Rouse (community): Approve
-
Diff: 520 lines (+116/-49)9 files modifiedsrc/maasserver/dhcp.py (+2/-2)
src/maastesting/factory.py (+12/-2)
src/provisioningserver/dhcp/__init__.py (+3/-0)
src/provisioningserver/dhcp/omshell.py (+10/-1)
src/provisioningserver/dhcp/tests/test_omshell.py (+72/-40)
src/provisioningserver/rpc/dhcp.py (+3/-1)
src/provisioningserver/rpc/tests/test_dhcp.py (+7/-2)
src/provisioningserver/templates/dhcp/dhcpd.conf.template (+2/-0)
src/provisioningserver/templates/dhcp/dhcpd6.conf.template (+5/-1)
- Mike Pontillo (community): Approve
-
Diff: 47 lines (+6/-2)3 files modifiedsrc/maasserver/dhcp.py (+2/-2)
src/provisioningserver/templates/dhcp/dhcpd.conf.template (+2/-0)
src/provisioningserver/templates/dhcp/dhcpd6.conf.template (+2/-0)
Changed in maas: | |
status: | Confirmed → Triaged |
Changed in maas: | |
assignee: | nobody → LaMont Jones (lamont) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Hi There,
In any MAAS version earlier than 2.0, the DNS record will ONLY be made against the PXE Interface IP address.
In 2.0 or later version, the DNS A record will ONLY be made against the PXE Interface IP address, and PTR records will be made on other interfaces.
This is done by design.