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
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MAAS
Critical
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/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)
          File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/twisted.py", line 791, in _worker
            return super(ThreadPool, self)._worker()
        --- <exception caught here> ---
          File "/usr/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 191, in _worker
            result = context.call(ctx, function, *args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 480, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 307, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/db/transaction.py", line 339, in inner
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/websockets/handlers/node.py", line 788, in action
            return action.execute(**extra_params)
          File "/usr/lib/python2.7/dist-packages/maasserver/node_action.py", line 254, in execute
            skip_storage=skip_storage)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 464, in call_within_transaction
            return func_within_txn(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/db/transaction.py", line 339, in inner
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/models/node.py", line 983, in start_commissioning
            self._clear_full_storage_configuration()
          File "/usr/lib/python2.7/dist-packages/maasserver/models/node.py", line 1898, in _clear_full_storage_configuration
            block_device__in=physical_block_devices).delete()
          File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 465, in delete
            collector.delete()
          File "/usr/lib/python2.7/dist-packages/django/db/models/deletion.py", line 282, in delete
            sender=model, instance=obj, using=self.using
          File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185, in send
            response = receiver(signal=self, sender=sender, **named)
          File "/usr/lib/python2.7/dist-packages/maasserver/models/partition.py", line 304, in delete_partition_table
            partition_table = instance.partition_table
          File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py", line 318, in __get__
            rel_obj = qs.get()
          File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 307, in get
            self.model._meta.object_name)
        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