Unable to delete node due to maasserver_interface_ip_address violation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
After the new network model landed I am unable to delete nodes after they have been commissioned. The following was seen on a fresh MAAS install
From region.log
2015-09-15 12:01:26 [-] Error on request (17) node.action: insert or update on table "maasserver_
DETAIL: Key (interface_id)=(2) is not present in table "maasserver_
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.run()
File "/usr/lib/
self.
--- <exception caught here> ---
File "/usr/lib/
result = context.call(ctx, function, *args, **kwargs)
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
connection
File "/usr/lib/
self._commit()
File "/usr/lib/
return self.connection
File "/usr/lib/
six.
File "/usr/lib/
return self.connection
django.
DETAIL: Key (interface_id)=(2) is not present in table "maasserver_
The UI gives the following when trying to delete a node
The delete action for 1 node failed with the error: insert or update on table "maasserver_
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 30 lines (+5/-2)1 file modifiedsrc/maasserver/models/interface.py (+5/-2)
Changed in maas: | |
assignee: | nobody → Blake Rouse (blake-rouse) |
milestone: | none → 1.9.0 |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
This also affects the ability to delete an interface.