Blank DNS entry won’t delete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Medium
|
Unassigned |
Bug Description
We have found a DNS entry in our MAAS 3.2.6 setup which causes a problem: It has no name value, so from MAAS the whole subdomain resolves to an unwanted IP, while from outside of MAAS it is already configured to resolve correctly. On the region controller:
maas:~$ head -12 /etc/bind/
; Zone file modified: 2022-10-27 19:11:26.026174.
$TTL 30
@ IN SOA nimbus.
600 ; Refresh
1800 ; Retry
30 ; NXTTL
)
@ 30 IN NS pawsey.org.au.
30 IN A 146.118.52.233
Notice the space starting the last line - by my reading that is why nimbus.
maas SESSION dnsresources read | grep 146.118.52.233 finds the IP, but it is in an ‘ubuntu’ dnsresource record in another domain pawsey.org.au which also shows an entry in the web UI. That entry holds a lot of IPs, a few dozen named ‘ubuntu’. I think this is not relevant but am not sure.
$ maas SESSION dnsresource read 1899 | jq '.fqdn'
"ubuntu.
$ maas SESSION dnsresource read 1899 | wc -l
117074
$ maas SESSION dnsresource read 1899 | jq '.ip_addresses | .[].ip' | wc -l
1511
I am left wondering if this snuck in quite some time ago (perhaps in an enlistment gone wrong?) in a previous version of MAAS, and in the current version that particular type of record can’t exist, and can’t be deleted. Do I need to dive into the database and delete something manually to fix this?
May I have some advice on this please?
Questions from @cgrabowski:
1. you have a domain (DNS zone with regards to BIND) pawsey.org.au, and then you have a delegated zone of nimbus.
2. Additionally, what is that IP tied to? Is it a machine within MAAS? If so, what is the status (i.e is it deployed?)?
Answers to the above:
1. In short, yes what you said is accurate. I’m not sure about it being a ‘label’ record, but in maas domain pawsey.org.au (htt...
ubuntu A (default) 146.118.52.233
Any attempt to change or delete it yields sequence item 0: expected str instance, NoneType found. I can’t find any evidence of a machine with that IP address - nothing from arp or nmap either.
2. The IP isn't tied to anything that we know about. It does not respond, and nmap -Pn gives `All 1000 scanned ports on 146.118.52.233 are filtered`.
summary: |
- MAAS: Blank DNS entry won’t delete + Blank DNS entry won’t delete |
Changed in maas: | |
status: | Incomplete → New |
Changed in maas: | |
milestone: | none → 3.4.0 |
Changed in maas: | |
status: | Incomplete → New |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in maas: | |
milestone: | 3.4.0 → 3.4.x |
Hi Gregory. Could you please check if `regiond.log` has any errors reported when you try to delete these entries? If there are, please add them to the bug as well.