error deleting node

Bug #1551730 reported by stsp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Undecided
Unassigned
maas (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Version: 1.10.0+bzr4578-0ubuntu2

When deleting the node, I get this crash:

2016-03-01 16:16:19 [-] Error on request (257) node.action: node-4b22834e-d1a3-11e5-b0b9-005043000be0
        Traceback (most recent call last):
          File "/usr/lib/python3.5/threading.py", line 862, in run
            self._target(*self._args, **self._kwargs)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 794, in worker
            return target()
          File "/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
            task()
          File "/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 190, in doWork
            task()
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
            result = inContext.theWork()
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
            inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 492, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 319, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/python3.5/contextlib.py", line 30, in inner
            return func(*args, **kwds)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/node.py", line 1053, in action
            obj = self.get_object(params)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/node.py", line 632, in get_object
            obj = super(NodeHandler, self).get_object(params)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 256, in get_object
            raise HandlerDoesNotExistError(pk)
        maasserver.websockets.base.HandlerDoesNotExistError: node-4b22834e-d1a3-11e5-b0b9-005043000be0

As a result I can't delete the node.

Changed in maas:
milestone: none → 2.0.0
Changed in maas (Ubuntu):
importance: Undecided → Critical
Changed in maas (Ubuntu):
status: New → Fix Committed
Changed in maas:
status: New → Fix Committed
Revision history for this message
stsp (stsp-0) wrote :

What was the fix?

Changed in maas:
status: Fix Committed → Fix Released
Changed in maas (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.