Cannot resolve keyword 'block_device' into field

Bug #1501785 reported by Andres Rodriguez on 2015-10-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lee Trager

Bug Description

When trying to delete the 'vda-part1 ... [ext4] .... /' partition that's under the 'File System' section, the following error is shown in the logs (and the partition is not deleted).

==> /var/log/maas/regiond.log <==
2015-10-01 10:18:46 [-] Error on request (61) node.unmountFilesystem: Cannot resolve keyword 'block_device' into field. Choices are: bootable, c
reated, filesystem, id, partition_table, size, updated, uuid
        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 196, 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 482, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/", line 309, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/django16/django/db/", line 371, in inner
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/websockets/handlers/", line 552, in unmountFilesystem
            id=params['partition_id'], block_device__node=node)
          File "/usr/lib/django16/django/db/models/", line 151, in get
            return self.get_queryset().get(*args, **kwargs)
          File "/usr/lib/django16/django/db/models/", line 301, in get
            clone = self.filter(*args, **kwargs)
          File "/usr/lib/django16/django/db/models/", line 593, in filter
            return self._filter_or_exclude(False, *args, **kwargs)
          File "/usr/lib/django16/django/db/models/", line 611, in _filter_or_exclude
            clone.query.add_q(Q(*args, **kwargs))
          File "/usr/lib/django16/django/db/models/sql/", line 1204, in add_q
            clause = self._add_q(where_part, used_aliases)
          File "/usr/lib/django16/django/db/models/sql/", line 1240, in _add_q
          File "/usr/lib/django16/django/db/models/sql/", line 1103, in build_filter
          File "/usr/lib/django16/django/db/models/sql/", line 1363, in setup_joins
            names, opts, allow_many, allow_explicit_fk)
          File "/usr/lib/django16/django/db/models/sql/", line 1283, in names_to_path
            "Choices are: %s" % (name, ", ".join(available)))
        django.core.exceptions.FieldError: Cannot resolve keyword 'block_device' into field. Choices are: bootable, created, filesystem, id, par
tition_table, size, updated, uuid

Related branches

Changed in maas:
milestone: none → 1.9.0
Lee Trager (ltrager) on 2015-10-01
Changed in maas:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Lee Trager (ltrager)
Changed in maas:
status: Triaged → 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.

Other bug subscribers