PartionTable matching query does not exist

Bug #1509906 reported by Newell Jensen on 2015-10-26
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Undecided
Unassigned

Bug Description

On Rod Smiths home AMT setup using MAAS Version 1.9.0 (alpha5+bzr4383), I am able to deploy the node fine but when I go to commission it I run into this (it was already commissioned when I first tried using it):

2015-10-25 21:46:29 [-] Error on request (338) 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.

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================================-===================================================-============-===============================================================================
ii maas 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS server all-in-one metapackage
ii maas-cert-server 0.2.6-0~34~ubuntu14.04.1 all Ubuntu certification support files for MAAS server
ii maas-cli 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS command line API tool
ii maas-cluster-controller 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS server cluster controller
ii maas-common 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS server common files
ii maas-dhcp 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS DHCP server
ii maas-dns 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS DNS server
ii maas-proxy 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS Caching Proxy
ii maas-region-controller 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS server complete region controller
ii maas-region-controller-min 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS Server minimum region controller
ii python-django-maas 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS server Django web framework
ii python-maas-client 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS python API client
ii python-maas-provisioningserver 1.9.0~alpha5+bzr4383-0ubuntu1~trusty1 all MAAS server provisioning libraries

Rod Smith (rodsmith) wrote :

As further information, this problem occurs when switching between the disk-use types (flat, LVM, and bcache). Sticking to the default type of LVM causes the bug to not occur. It can be worked around by manually removing all the partition assignments using the MAAS web UI.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers