[2.6] Unable to delete domain after adding A record with empty Data field.
Bug #1830080 reported by
Newell Jensen
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Newell Jensen | ||
2.5 |
Fix Committed
|
High
|
Newell Jensen |
Bug Description
Steps:
1. Go to DNS tab.
2. Create a new domain.
3. Click on new domain to go to details page.
4. Click on Add record, to add a new record.
5. Input some-name for Name field, choose A record for Type field, and leave Data and TTL empty.
6. Click on green Add record button.
7. Note that no new resource record shows up in the Resource records section towards the bottom of the page.
8. Click on Delete domain and again for confirmation and you will see error:
("Cannot delete some instances of model 'Domain' because they are referenced through a protected foreign key: 'DNSResource.
Related branches
~newell-jensen/maas:2.5-lp1830080
- Newell Jensen (community): Approve
-
Diff: 51 lines (+19/-2)2 files modifiedsrc/maasserver/websockets/handlers/domain.py (+5/-1)
src/maasserver/websockets/handlers/tests/test_domain.py (+14/-1)
~newell-jensen/maas:lp1830080
Merged
into
maas:master
- Lee Trager (community): Approve
-
Diff: 51 lines (+19/-2)2 files modifiedsrc/maasserver/websockets/handlers/domain.py (+5/-1)
src/maasserver/websockets/handlers/tests/test_domain.py (+14/-1)
Changed in maas: | |
assignee: | nobody → Newell Jensen (newell-jensen) |
status: | New → Triaged |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.