[2.2, trunk, UI] Device Details doesn't surface error when updating interfaces

Bug #1669217 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
High
LaMont Jones

Bug Description

While trying to update the IP address on a Device Interface, the IP address didn't match the subnet. However, no error was surfaced in the UI, but it was on the logs.

This was found due to this:

https://bugs.launchpad.net/maas/+bug/1669213

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 824, 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 857, in callInContext
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 225, in wrapper
    result = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 685, in call_within_transaction
    return func_outside_txn(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 503, 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/device.py", line 350, in update_interface
    self._configure_interface(interface, params)
  File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/device.py", line 303, in _configure_interface
    INTERFACE_LINK_TYPE.STATIC, subnet, ip_address=ip_address)
  File "/usr/lib/python3/dist-packages/maasserver/models/interface.py", line 956, in link_subnet
    alloc_type=alloc_type, user=user)
  File "/usr/lib/python3/dist-packages/maasserver/models/interface.py", line 879, in _link_subnet_static
    "IP address is not in the given subnet '%s'." % subnet)
maasserver.exceptions.StaticIPAddressOutOfRange: IP address is not in the given subnet '192.168.1.0/24:192.168.1.0/24(vid=0)'.

Changed in maas:
milestone: none → 2.2.0
assignee: nobody → LaMont Jones (lamont)
importance: Undecided → High
status: New → Confirmed
status: Confirmed → Triaged
tags: added: error-surface
summary: - [2.2, trunk] Device Details doesn't surface error when updating
+ [2.2, trunk, UI] Device Details doesn't surface error when updating
interfaces
Changed in maas:
status: Triaged → In Progress
Changed in maas:
milestone: 2.2.0 → 2.2.x
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi!

**This is an automated message**

We believe this is may no longer be an issue in the latest MAAS release. Due to the original date of the bug report, we are currently marking it as Invalid. If you believe this bug report still valid against the latest release of MAAS, or if you are still interested in this, please re-open this bug report.

Thanks

Changed in maas:
status: In Progress → 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.