Updating DNS records yields unexpected results

Bug #1901905 reported by Alberto Donato
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Triaged
Medium
Unassigned
3.4
Won't Fix
Medium
Unassigned
maas-ui
Triaged
Medium
Peter Makowski

Bug Description

When editing records on the Domain details page unexpected results can happen.

See the following cases:

1) create a record as "foo A 1.1.1.1"
2) remove the record.
3) a new special record appears as "1-1-1-1 A 1.1.1.1" which can't be edited/deleted from the UI (the staticipaddress can be removed via API)
4) create an A record with the same IP
5) the special record disappears

similar case:

1) create a record as "foo A 1.1.1.1"
2) update the record with the IP "2.2.2.2"
3) a special record appears as "1-1-1-1 A 1.1.1.1"
4) edit the record again with the original IP "1.1.1.1"
5) now there's a special record as "2-2-2-2 A 2.2.2.2"

it seems in both cases we should delete the original IP (or update the value in the latter case)

Another (possibly more broken) case is this:

1) create a record as "foo A 1.1.1.1"
2) create a record as "foo A 2.2.2.2"
3) change the name for the first record to "bar"
4) a special record appears as "2-2-2-2 A 2.2.2.2"

I this case we should either rename all "foo" records, or leave the second one intact.

Alberto Donato (ack)
Changed in maas:
milestone: none → next
Alberto Donato (ack)
tags: added: ui
Changed in maas:
milestone: next → none
status: Triaged → New
Changed in maas-ui:
importance: Undecided → Unknown
Revision history for this message
Caleb Ellis (caleb-ellis) wrote :

I think this might be an issue with the websocket api, specifically the "domain.update_address_record" and "domain.delete_address_record" methods.

I'm in the process of rebuilding the DNS section in React and I'm coming across the same issue whenever I delete or update an address record. Other record types seem to be fine which I believe is because they use the "domain.update_dnsdata" and "domain.delete_dnsdata" methods instead.

Not sure if you are able to confirm it's an api issue, or maybe explain how the existing methods are supposed to be used?

Revision history for this message
Caleb Ellis (caleb-ellis) wrote :

This also seems to be the case when using the "domain.update_dnsresource" and "domain.delete_dnsresource" methods. At a bit of a loss with this one.

Alberto Donato (ack)
tags: removed: ui
Alberto Donato (ack)
Changed in maas:
status: New → Triaged
milestone: none → next
Changed in maas:
milestone: next → 3.3.0
Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

See mail from 25th June 2021 to the MAAS Design list.

Changed in maas:
milestone: 3.3.0 → 3.4.0
Changed in maas-ui:
status: New → Triaged
importance: Unknown → Medium
milestone: none → 3.4.0
Revision history for this message
Thorsten Merten (thorsten-merten) wrote :

Need to check if this is maas-ui only of something in the websocket/backend

Changed in maas-ui:
assignee: nobody → Peter Makowski (petermakowski)
Alberto Donato (ack)
Changed in maas:
milestone: 3.4.0 → 3.4.x
Changed in maas-ui:
milestone: 3.4.0 → 3.4.x
no longer affects: maas-ui/3.3
no longer affects: maas/3.3
Changed in maas:
milestone: 3.4.x → 3.5.x
Changed in maas-ui:
milestone: 3.4.x → 3.5.x
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.