The commission action for 1 node failed with error: PartitionTable matching query does not exist.

Bug #1508076 reported by Andres Rodriguez on 2015-10-20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Blake Rouse

Bug Description

2015-10-20 15:29:01 [-] Error on request (21) node.action: PartitionTable matching query does not exist.
        Traceback (most recent call last):
          File "/usr/lib/python2.7/", line 783, in __bootstrap
          File "/usr/lib/python2.7/", line 810, in __bootstrap_inner
          File "/usr/lib/python2.7/", line 763, in run
            self.__target(*self.__args, **self.__kwargs)
          File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/", line 791, in _worker
            return super(ThreadPool, self)._worker()
        --- <exception caught here> ---
          File "/usr/lib/python2.7/dist-packages/twisted/python/", line 191, in _worker
            result =, function, *args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/twisted/python/", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python2.7/dist-packages/twisted/python/", line 81, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/", line 480, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/", line 307, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/db/", line 339, in inner
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/websockets/handlers/", line 788, in action
            return action.execute(**extra_params)
          File "/usr/lib/python2.7/dist-packages/maasserver/", line 254, in execute
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/", line 464, in call_within_transaction
            return func_within_txn(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/db/", line 339, in inner
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/models/", line 983, in start_commissioning
          File "/usr/lib/python2.7/dist-packages/maasserver/models/", line 1898, in _clear_full_storage_configuration
          File "/usr/lib/python2.7/dist-packages/django/db/models/", line 465, in delete
          File "/usr/lib/python2.7/dist-packages/django/db/models/", line 282, in delete
            sender=model, instance=obj, using=self.using
          File "/usr/lib/python2.7/dist-packages/django/dispatch/", line 185, in send
            response = receiver(signal=self, sender=sender, **named)
          File "/usr/lib/python2.7/dist-packages/maasserver/models/", line 304, in delete_partition_table
            partition_table = instance.partition_table
          File "/usr/lib/python2.7/dist-packages/django/db/models/fields/", line 318, in __get__
            rel_obj = qs.get()
          File "/usr/lib/python2.7/dist-packages/django/db/models/", line 307, in get
        maasserver.models.partitiontable.DoesNotExist: PartitionTable matching query does not exist.

Related branches

Changed in maas:
milestone: none → 1.9.0
Changed in maas:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Blake Rouse (blake-rouse)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers