disabling DNS on the subnet where the regiond is breaks DNS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Alberto Donato | ||
2.7 |
Fix Released
|
Medium
|
Alberto Donato |
Bug Description
Hi,
Using MAAS snap 2.7.0-8235-
With DNS enabled on this subnet, the zone file generate by MAAS looks like this :
; Zone file modified: 2020-04-07 10:24:31.290734.
$TTL 30
@ IN SOA maas. nobody.example.com. (
600 ; Refresh
1800 ; Retry
30 ; NXTTL
)
@ 30 IN NS maas.
stadius 30 IN A <REDACTED IP>
@ 30 IN A <REDACTED IP>
If I disable DNS on this subnet, then the zonefile generated by MAAS doesn't have an A record for @ (the last line of the zone above goes away), and this is absolutely needed since @ is also the NS. So named complains (and rightly so) :
07-Apr-2020 17:32:21.949 zone maas/IN: NS 'maas' has no address records (A or AAAA)
07-Apr-2020 17:32:21.949 zone maas/IN: not loaded due to errors.
And then regiond complains :
maasserver.
(full error https:/
MAAS should always generate valid zonefiles.
Thanks
Related branches
- Alberto Donato (community): Approve
- MAAS Lander: Pending (unittests) requested
-
Diff: 158 lines (+69/-17)2 files modifiedsrc/maasserver/dns/tests/test_zonegenerator.py (+51/-1)
src/maasserver/dns/zonegenerator.py (+18/-16)
- Lee Trager (community): Approve
- MAAS Lander: Approve
-
Diff: 158 lines (+69/-17)2 files modifiedsrc/maasserver/dns/tests/test_zonegenerator.py (+51/-1)
src/maasserver/dns/zonegenerator.py (+18/-16)
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Alberto Donato (ack) |
milestone: | none → 2.8.0b1 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
When dns is disabled on a subnet, the MAAS IP on that net gets filtered out.
See https:/ /code.launchpad .net/~ltrager/ maas/+git/ maas/+merge/ 375057 to fix #1847537