[2.5, UI] Removing a 'dnsresource' over the UI doesn't seem to remove it from the database

Bug #1817674 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Anthony Dillon
2.5
Fix Committed
Critical
Alberto Donato

Bug Description

I created a DNS resource over the API, I then deleted it over the UI, and try to created over the API again, and it failed, because it was still in the database.

However, if I delete the DNS resource over the API, I can create a new one. To reproduce:

1. Create a resource maas admin dnsresources create name=test ip_addresses=192.168.122.1 domain=maas
2. Delete over the UI
3. Attempt to create it again and it failed:
root@maas-bionic:~# maas admin dnsresources create name=test ip_addresses=192.168.122.1 domain=maas
{"__all__": ["Labels must be unique within their zone."]}
4. Checking resources over the API, still shows it there:

root@maas-bionic:~# maas admin dnsresources read
Success.
Machine-readable output follows:
[
    {
        "address_ttl": null,
        "ip_addresses": [],
        "fqdn": "test.maas",
        "id": 3,
        "resource_records": [],
        "resource_uri": "/MAAS/api/2.0/dnsresources/3/"
    }
]

Tags: ui

Related branches

Changed in maas:
milestone: none → 2.6.0
importance: Undecided → Critical
status: New → Triaged
assignee: nobody → Anthony Dillon (ya-bo-ng)
tags: added: ui
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
milestone: 2.6.0 → 2.6.0alpha1
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.