[2.5, UI] Removing a 'dnsresource' over the UI doesn't seem to remove it from the database
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=
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=
{"__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:
[
{
"fqdn": "test.maas",
"id": 3,
}
]
Related branches
- Alberto Donato (community): Approve
-
Diff: 59 lines (+36/-1)2 files modifiedsrc/maasserver/static/js/angular/factories/domains.js (+1/-1)
src/maasserver/static/js/angular/factories/tests/test_domains.js (+35/-0)
- Alberto Donato (community): Approve
- MAAS Lander: Approve
- Steve Rydz (community): Approve
-
Diff: 59 lines (+36/-1)2 files modifiedsrc/maasserver/static/js/angular/factories/domains.js (+1/-1)
src/maasserver/static/js/angular/factories/tests/test_domains.js (+35/-0)
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 |