Partition cannot be saved; not enough free space on the block device.

Bug #1517687 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Jeffrey C Jones
1.9
Fix Released
Critical
Jeffrey C Jones

Bug Description

Trying to create a new partition on a disk with 128GB, yields in this error, and there's no UI feedback and it appears like everything disappears from the storage section.

2015-11-19 09:21:44 [-] Error on request (29) node.create_partition: {"size": ["Partition cannot be saved; not enough free space on the b[5/312]vice."]}
        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 501, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/orm.py", line 328, 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 922, in create_partition
            partition = form.save()
          File "/usr/lib/python2.7/dist-packages/maasserver/forms.py", line 3267, in save
            bootable=self.cleaned_data.get('bootable'))
          File "/usr/lib/python2.7/dist-packages/maasserver/models/partitiontable.py", line 122, in add_partition
            partition_table=self, size=size, uuid=uuid, bootable=bootable)
          File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py", line 157, in create
            return self.get_queryset().create(**kwargs)
          File "/usr/lib/python2.7/dist-packages/django/db/models/query.py", line 319, in create
            obj.save(force_insert=True, using=self.db)
          File "/usr/lib/python2.7/dist-packages/maasserver/models/partition.py", line 207, in save
            return super(Partition, self).save(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/models/cleansave.py", line 37, in save
            self.full_clean()
          File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 950, in full_clean
            raise ValidationError(errors)
        django.core.exceptions.ValidationError: {u'size': [u'Partition cannot be saved; not enough free space on the block device.']}

Related branches

Changed in maas:
importance: Undecided → Critical
milestone: none → 1.9.0
Changed in maas:
status: New → Confirmed
Changed in maas:
assignee: nobody → Jeffrey C Jones (trapnine)
status: Confirmed → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: 1.9.0 → next
Changed in maas:
status: Fix Committed → Fix Released
milestone: next → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.