Activity log for bug #1495889

Date Who What changed Old value New value Message
2015-09-15 09:44:41 Gavin Panella bug added bug
2015-09-15 09:44:48 Gavin Panella maas: status New Triaged
2015-09-15 09:44:50 Gavin Panella maas: importance Undecided High
2015-09-15 09:47:06 Gavin Panella 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/python2.7/threading.py", line 783, in __bootstrap self.__bootstrap_inner() File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) --- <exception caught here> --- File ".../twisted/python/threadpool.py", line 191, in _worker result = context.call(ctx, function, *args, **kwargs) File ".../twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, *args, **kw) File ".../twisted/python/context.py", line 81, in callWithContext return func(*args,**kw) File ".../maasserver/utils/orm.py", line 481, in call_within_transaction return func_outside_txn(*args, **kwargs) File ".../maasserver/utils/orm.py", line 308, in retrier return func(*args, **kwargs) File ".../django/db/transaction.py", line 339, in inner return func(*args, **kwargs) File ".../maasserver/websockets/handlers/node.py", line 508, in action return action.execute(**extra_params) File ".../maasserver/node_action.py", line 248, in execute self.node.start_commissioning(self.user) File ".../maasserver/utils/orm.py", line 465, in call_within_transaction return func_within_txn(*args, **kwargs) File ".../django/db/transaction.py", line 339, in inner return func(*args, **kwargs) File ".../maasserver/models/node.py", line 921, in start_commissioning self._clear_networking_configuration() File ".../maasserver/models/node.py", line 1822, in _clear_networking_configuration interface.unlink_ip_address(ip_address) File ".../maasserver/models/interface.py", line 803, in unlink_ip_address self.ensure_link_up() File ".../maasserver/models/interface.py", line 753, in ensure_link_up self.link_subnet(INTERFACE_LINK_TYPE.LINK_UP, subnet) File ".../maasserver/models/interface.py", line 715, in link_subnet return self._link_subnet_link_up(subnet) File ".../maasserver/models/interface.py", line 682, in _link_subnet_link_up self._remove_link_up() File ".../maasserver/models/interface.py", line 577, in _remove_link_up ip.delete() File ".../django/db/models/base.py", line 691, in delete assert self._get_pk_val() is not None, "%s object can't be deleted because its %s attribute is set to None." % (self._meta.object_name, self._meta.pk.attname) exceptions.AssertionError: StaticIPAddress object can't be deleted because its id attribute is set to None. 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/python2.7/threading.py", line 783, in __bootstrap     self.__bootstrap_inner()   File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner     self.run()   File "/usr/lib/python2.7/threading.py", line 763, in run     self.__target(*self.__args, **self.__kwargs) --- <exception caught here> ---   File ".../twisted/python/threadpool.py", line 191, in _worker     result = context.call(ctx, function, *args, **kwargs)   File ".../twisted/python/context.py", line 118, in callWithContext     return self.currentContext().callWithContext(ctx, func, *args, **kw)   File ".../twisted/python/context.py", line 81, in callWithContext     return func(*args,**kw)   File ".../maasserver/utils/orm.py", line 481, in   call_within_transaction     return func_outside_txn(*args, **kwargs)   File ".../maasserver/utils/orm.py", line 308, in retrier     return func(*args, **kwargs)   File ".../django/db/transaction.py", line 339, in inner     return func(*args, **kwargs)   File ".../maasserver/websockets/handlers/node.py", line 508, in action     return action.execute(**extra_params)   File ".../maasserver/node_action.py", line 248, in execute     self.node.start_commissioning(self.user)   File ".../maasserver/utils/orm.py", line 465, in   call_within_transaction     return func_within_txn(*args, **kwargs)   File ".../django/db/transaction.py", line 339, in inner     return func(*args, **kwargs)   File ".../maasserver/models/node.py", line 921, in start_commissioning     self._clear_networking_configuration()   File ".../maasserver/models/node.py", line 1822, in   _clear_networking_configuration     interface.unlink_ip_address(ip_address)   File ".../maasserver/models/interface.py", line 803, in   unlink_ip_address     self.ensure_link_up()   File ".../maasserver/models/interface.py", line 753, in ensure_link_up     self.link_subnet(INTERFACE_LINK_TYPE.LINK_UP, subnet)   File ".../maasserver/models/interface.py", line 715, in link_subnet     return self._link_subnet_link_up(subnet)   File ".../maasserver/models/interface.py", line 682, in   _link_subnet_link_up     self._remove_link_up()   File ".../maasserver/models/interface.py", line 577, in   _remove_link_up     ip.delete()   File ".../django/db/models/base.py", line 691, in delete     assert self._get_pk_val() is not None, "%s object can't be deleted     because its %s attribute is set to None." % (self._meta.object_name,     self._meta.pk.attname)   exceptions.AssertionError: StaticIPAddress object can't be deleted   because its id attribute is set to None. Just before I had commissioned these nodes but aborted, so these nodes were marked as New.
2015-09-15 11:52:42 Blake Rouse branch linked lp:~blake-rouse/maas/fix-clear-network-config
2015-09-15 11:52:48 Blake Rouse maas: assignee Blake Rouse (blake-rouse)
2015-09-15 11:52:50 Blake Rouse maas: milestone 1.9.0
2015-09-15 11:52:54 Blake Rouse maas: status Triaged Fix Committed
2016-01-05 15:08:53 Andres Rodriguez maas: status Fix Committed Fix Released