Discovered ip addresses mapped to an invalid name (ending with -)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
High
|
Christian Grabowski | ||
3.4 |
Fix Committed
|
High
|
MAAS Lander | ||
3.5 |
Fix Committed
|
High
|
MAAS Lander |
Bug Description
[Problem Description]
We are seeing some addresses being discovered and their names mapped to invalid entries (in this case, ending with a dash).
This causes named to fail to load that specific Zone file, with a check-names error:
05-Jul-2024 00:14:57.295 /var/snap/
05-Jul-2024 00:14:57.295 zone redlab.
05-Jul-2024 00:14:57.295 zone redlab.
This generates another error in regiond.log:
2024-07-04 18:19:53 maasserver.
Traceback (most recent call last):
File "/snap/
File "/snap/
File "/snap/
File "/snap/
--- <exception caught here> ---
File "/snap/
result = current_
File "/snap/
raise DNSReloadError(
Trying to delete or rename these entries won't work, with the following error:
Error:
DNSResource matching query does not exist.
[Environment]
Jammy with MAAS 3.4 using SNAPs. PostgreSQL 14 in a different host.
[Workaround]
We disabled Network Discovery and used the "Clear all discoveries" button. Some invalid entries were deleted, but some were still present.
We identified that the persistent discoveries were DPU devices on some hosts. We found the hosts who had those DPUs and deleted them (the hosts) from MAAS to restore the service.
[Considerations]
The auto-discovered names should pass through a normalization function to make sure they comply to RFC naming convention (suggestion).
Also, it would be important to understand how the DPUs are being discovered even with the discovery disabled.
Related branches
- Christian Grabowski: Approve
-
Diff: 65 lines (+29/-2)3 files modifiedsrc/maasserver/models/tests/test_staticipaddress.py (+4/-1)
src/maasserver/utils/dns.py (+10/-1)
src/maasserver/utils/tests/test_dns.py (+15/-0)
- Christian Grabowski: Approve
-
Diff: 65 lines (+29/-2)3 files modifiedsrc/maasserver/models/tests/test_staticipaddress.py (+4/-1)
src/maasserver/utils/dns.py (+10/-1)
src/maasserver/utils/tests/test_dns.py (+15/-0)
- MAAS Lander: Approve
- Jacopo Rota: Approve
-
Diff: 65 lines (+29/-2)3 files modifiedsrc/maasserver/models/tests/test_staticipaddress.py (+4/-1)
src/maasserver/utils/dns.py (+10/-1)
src/maasserver/utils/tests/test_dns.py (+15/-0)
- MAAS Lander: Needs Fixing
- MAAS Maintainers: Pending requested
-
Diff: 52 lines (+28/-1)2 files modifiedsrc/maasserver/utils/dns.py (+13/-1)
src/maasserver/utils/tests/test_dns.py (+15/-0)
tags: | added: bug-council |
Changed in maas: | |
importance: | Medium → High |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Christian Grabowski (cgrabowski) |
Changed in maas: | |
status: | In Progress → Fix Committed |
A sos report is available in:
https:/ /drive. google. com/drive/ folders/ 1zulSUU4ao2zAEl gNLIECANyM8mJaO vnY