Cannot resolve keyword 'block_device' into field

Bug #1501785 reported by Andres Rodriguez on 2015-10-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
High
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/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 196, 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 482, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 309, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/django16/django/db/transaction.py", line 371, in inner
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/websockets/handlers/node.py", line 552, in unmountFilesystem
            id=params['partition_id'], block_device__node=node)
          File "/usr/lib/django16/django/db/models/manager.py", line 151, in get
            return self.get_queryset().get(*args, **kwargs)
          File "/usr/lib/django16/django/db/models/query.py", line 301, in get
            clone = self.filter(*args, **kwargs)
          File "/usr/lib/django16/django/db/models/query.py", line 593, in filter
            return self._filter_or_exclude(False, *args, **kwargs)
          File "/usr/lib/django16/django/db/models/query.py", line 611, in _filter_or_exclude
            clone.query.add_q(Q(*args, **kwargs))
          File "/usr/lib/django16/django/db/models/sql/query.py", line 1204, in add_q
            clause = self._add_q(where_part, used_aliases)
          File "/usr/lib/django16/django/db/models/sql/query.py", line 1240, in _add_q
            current_negated=current_negated)
          File "/usr/lib/django16/django/db/models/sql/query.py", line 1103, in build_filter
            allow_explicit_fk=True)
          File "/usr/lib/django16/django/db/models/sql/query.py", line 1363, in setup_joins
            names, opts, allow_many, allow_explicit_fk)
          File "/usr/lib/django16/django/db/models/sql/query.py", 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