StaticIPAddress object can't be deleted because its id attribute is set to None
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse |
Bug Description
Found in regiond.log when starting commissioning via the web UI:
Error on request (23) node.action: StaticIPAddress object can't be
deleted because its id attribute is set to None.
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.run()
File "/usr/lib/
self.
--- <exception caught here> ---
File ".../twisted/
result = context.call(ctx, function, *args, **kwargs)
File ".../twisted/
return self.currentCon
File ".../twisted/
return func(*args,**kw)
File ".../maasserver
call_
return func_outside_
File ".../maasserver
return func(*args, **kwargs)
File ".../django/
return func(*args, **kwargs)
File ".../maasserver
return action.
File ".../maasserver
self.
File ".../maasserver
call_
return func_within_
File ".../django/
return func(*args, **kwargs)
File ".../maasserver
self.
File ".../maasserver
_clear_
interface.
File ".../maasserver
unlink_ip_address
self.
File ".../maasserver
self.
File ".../maasserver
return self._link_
File ".../maasserver
_link_
self.
File ".../maasserver
_remove_link_up
ip.delete()
File ".../django/
assert self._get_pk_val() is not None, "%s object can't be deleted
because its %s attribute is set to None." % (self._
self.
exceptions.
because its id attribute is set to None.
Just before I had commissioned these nodes but aborted, so these nodes were marked as New.
Related branches
- Mike Pontillo (community): Approve
-
Diff: 91 lines (+29/-3)4 files modifiedsrc/maasserver/models/interface.py (+6/-2)
src/maasserver/models/node.py (+2/-1)
src/maasserver/models/tests/test_interface.py (+15/-0)
src/maasserver/models/tests/test_node.py (+6/-0)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
Changed in maas: | |
status: | Fix Committed → Fix Released |
This has already been fixed in trunk. Are you sure you where using the latest trunk? As the arguments to the unlink_ip_address method do not match the correct signature that is in trunk.