MAAS 2.9.0 DNS zone remove @ labels impossible

Bug #1909348 reported by Bart Vrancken
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Undecided
Unassigned
maas-ui
Fix Released
Unknown

Bug Description

When creating a zone, e.g. maas.nl you might want to add labels for maas.nl (a) like

1.1.1.1 maas.nl
2.2.2.2 maas.nl

This works, however when trying to edit or deleting them you can not.

editting them returns an error:

list.remove(x): x not in list

deleting them does not return an error, but does not delete the item either.

Tags: dns ui
Revision history for this message
Bart Vrancken (bartvrancken) wrote :

Also you cannot delete the zone, because it has labels, making any workarround impossible.

tags: added: dns
summary: - MAAS 2.9.0 DNS zone remote @ labels impossible
+ MAAS 2.9.0 DNS zone remove @ labels impossible
Revision history for this message
Bart Vrancken (bartvrancken) wrote :

workarround for this issue:

- Export the entries using the CLI e.g. to CSV
- rename the zone from maas.nl to maas-old.nl and disable authoritive
- create a new zone maas.nl
- readd the labels using the CLI

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

Hi Bart,

Sorry I don't fully understand the issue you're experiencing. Just to confirm - you're seeing this error using the UI? Can you run through the steps that result in the error, e.g. which type of resource record is selected, what's entered into the "Data" field etc. Thanks.

Revision history for this message
Christian Grabowski (cgrabowski) wrote :

Able to reproduce in master as well.

This appears to be an issue with the websocket handler receiving an empty string for the record's name. As the REST api uses the id, @ records can still be successfully deleted via DELETE /MAAS/api/2.0/dnsresources/{id} and DELETE /MAAS/api/2.0/dnsresourcerecords/{id}.

Changed in maas:
status: New → Triaged
Changed in maas-ui:
status: New → Fix Released
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
milestone: none → 3.3.0
Changed in maas:
milestone: 3.3.0 → 3.3.0-beta1
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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