HandlerError suppressed in UI

Bug #1556963 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
Unassigned

Bug Description

When creating a RAID device the following error appeared in the log, but
the UI showed no error. The block devices were removed from the "Used
disks and partitions" table but no RAID device appeared in their place.
I had to refresh the page to return things to normal. I would expect the
error to be displayed in the page and the selected block devices to
remain unchanged. I wonder if this is related to bug 1489149?

2016-03-14 13:59:49 [-] Error on request (187) machine.create_raid: <ul
class="errorlist"><li>block_devices<ul class="errorlist"><li>Select a
valid choice. 1 is not one of the available
choices.</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 ".../src/provisioningserver/utils/twisted.py", line 794, 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 ".../src/maasserver/utils/orm.py", line 448, in
  call_within_transaction
    return func_outside_txn(*args, **kwargs)
  File ".../src/maasserver/utils/orm.py", line 275, in retrier
    return func(*args, **kwargs)
  File "/usr/lib/python3.5/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File ".../src/maasserver/websockets/handlers/machine.py", line 556, in
  create_raid
    raise HandlerError(form.errors)
maasserver.websockets.base.HandlerError: <ul
class="errorlist"><li>block_devices<ul class="errorlist"><li>Select a
valid choice. 1 is not one of the available choices.</li></ul></li></ul>

Tags: ui
Changed in maas:
milestone: none → 2.0.0
Gavin Panella (allenap)
description: updated
Revision history for this message
Andres Rodriguez (andreserl) wrote :

We believe this is no longer an issue in the latest releases of MAAS. Please upgrade to the latest version of MAAS, and If you believe this issue is still present, please re-open this bug report or file a new one.

Changed in maas:
status: Triaged → Invalid
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.