[2.1 UI] Failed to mount a partition and it doesn't surface error.

Bug #1631152 reported by Andres Rodriguez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Lee Trager

Bug Description

1. Commissioned a machine.
2. Umounted the root filesystem. 'sda-part1' from 'File systems'
3. Under 'available disks & partitions' select the 'Edit' button of 'sda-part1' to mount it.
4. Select a mount point to '/' & click save.
5. MAAS /appears/ to have finished successfully:
   5.1. sda-part1 is listed under 'File Systems'
   5.2. Error message shown: "Mount the root '/' filesystem to be able to deploy this node."
   5.3. You see the traceback below.
6. If you press F5, 'sda-part1' goes back to 'Available disks & Partitions'.

2016-10-06 20:57:47 [-] Error on request (130) machine.update_disk: <ul class="errorlist"><li>__all__<ul class="errorlist nonfield"><li>Cannot format b
lock device with a partition table.</li></ul></li></ul>
        Traceback (most recent call last):
          File "/usr/lib/python3.5/threading.py", line 862, in run
            self._target(*self._args, **self._kwargs)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 801, in worker
            return target()
          File "/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
            task()
          File "/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 190, in doWork
            task()
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 246, in inContext
            result = inContext.theWork()
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 262, in <lambda>
            inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
            return func(*args,**kw)
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 834, in callInContext
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 603, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 422, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/python3.5/contextlib.py", line 30, in inner
            return func(*args, **kwds)
          File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/machine.py", line 482, in update_disk
            params.get('mount_options', ''))
          File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/machine.py", line 406, in update_blockdevice_filesystem
            raise HandlerError(form.errors)
        maasserver.websockets.base.HandlerError: <ul class="errorlist"><li>__all__<ul class="errorlist nonfield"><li>Cannot format block device with a
partition table.</li></ul></li></ul>

Related branches

Changed in maas:
milestone: none → 2.1.0
summary: - [2.1] Failed to format & mount a partition and it doesn't surface erro
+ [2.1] Failed to format & mount a partition and it doesn't surface error
Changed in maas:
importance: Undecided → Critical
summary: - [2.1] Failed to format & mount a partition and it doesn't surface error
+ [2.1] Failed to mount a partition and it doesn't surface error.
summary: - [2.1] Failed to mount a partition and it doesn't surface error.
+ [2.1 UI] Failed to mount a partition and it doesn't surface error.
Changed in maas:
status: New → Triaged
Lee Trager (ltrager)
Changed in maas:
assignee: nobody → Lee Trager (ltrager)
Changed in maas:
status: Triaged → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello Andres, or anyone else affected,

Accepted maas into yakkety-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/maas/2.1.0+bzr5480-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Andres Rodriguez (andreserl) wrote :

I've tested this and can confirm it has been fixed. Marking verification-done

tags: added: verification-done
removed: verification-needed
Changed in maas:
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote : Update Released

The verification of the Stable Release Update for maas has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
yinxingpan (yinxingpan) wrote :

maas-2.4.0 beta2

i got this bug.

2018-07-04 14:05:01 maasserver.websockets.protocol: [critical] Error on request (31) machine.update_disk: <ul class="errorlist"><li>__all__<ul class="errorlist nonfield"><li>Cannot format block device with a partition table.</li></ul></li></ul>
        Traceback (most recent call last):
          File "/usr/lib/python3.6/threading.py", line 864, in run
            self._target(*self._args, **self._kwargs)
          File "/usr/local/lib/python3.6/dist-packages/maas-1.10a1-py3.6.egg/provisioningserver/utils/twisted.py", line 850, in worker
            return target()
          File "/usr/lib/python3/dist-packages/twisted/_threads/_threadworker.py", line 46, in work
            task()
          File "/usr/lib/python3/dist-packages/twisted/_threads/_team.py", line 190, in doWork
            task()
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 250, in inContext
            result = inContext.theWork()
          File "/usr/lib/python3/dist-packages/twisted/python/threadpool.py", line 266, in <lambda>
            inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 122, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 85, in callWithContext
            return func(*args,**kw)
          File "/usr/local/lib/python3.6/dist-packages/maas-1.10a1-py3.6.egg/provisioningserver/utils/twisted.py", line 883, in callInContext
            return func(*args, **kwargs)
          File "/usr/local/lib/python3.6/dist-packages/maas-1.10a1-py3.6.egg/provisioningserver/utils/twisted.py", line 232, in wrapper
            result = func(*args, **kwargs)
          File "/usr/local/lib/python3.6/dist-packages/maas-1.10a1-py3.6.egg/maasserver/utils/orm.py", line 756, in call_within_transaction
            return func_outside_txn(*args, **kwargs)
          File "/usr/local/lib/python3.6/dist-packages/maas-1.10a1-py3.6.egg/maasserver/utils/orm.py", line 563, in retrier
            return func(*args, **kwargs)
          File "/usr/lib/python3.6/contextlib.py", line 52, in inner
            return func(*args, **kwds)
          File "/usr/local/lib/python3.6/dist-packages/maas-1.10a1-py3.6.egg/maasserver/websockets/handlers/machine.py", line 553, in update_disk
            params.get('mount_options', ''))
          File "/usr/local/lib/python3.6/dist-packages/maas-1.10a1-py3.6.egg/maasserver/websockets/handlers/machine.py", line 503, in update_blockdevice_filesystem
            raise HandlerError(form.errors)
        maasserver.websockets.base.HandlerError: <ul class="errorlist"><li>__all__<ul class="errorlist nonfield"><li>Cannot format block device with a partition table.</li></ul></li></ul>

everytime i unmount the root filesystem, or unmount the /boot/efi,

i can not mount them again. i must do commission to solve this problem.

Revision history for this message
yinxingpan (yinxingpan) wrote :

this bug is not fixed,

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.