can't change controller domain

Bug #1806250 reported by MichaelEino
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Alberto Donato

Bug Description

Just installed a fresh MAAS " MAAS version: 2.4.2 (7034-g2f5deb8b8-0ubuntu1)"

When I need to change the domain name for the controller machine "Controllers -> machine 'Maas.maas'" then change the domain and save, it revert to its original, and hit the below in the regiond.log:

2018-12-02 17:20:00 maasserver.websockets.protocol: [critical] Error on request (123) controller.update: 'NoneType' object is not subscriptable
 Traceback (most recent call last):
   File "/usr/lib/python3.6/threading.py", line 864, in run
     self._target(*self._args, **self._kwargs)
   File "/usr/lib/python3/dist-packages/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/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 883, in callInContext
     return func(*args, **kwargs)
   File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 232, in wrapper
     result = func(*args, **kwargs)
   File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 756, in call_within_transaction
     return func_outside_txn(*args, **kwargs)
   File "/usr/lib/python3/dist-packages/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/lib/python3/dist-packages/maasserver/websockets/handlers/machine.py", line 365, in update
     data = super(NodeHandler, self).update(params)
   File "/usr/lib/python3/dist-packages/maasserver/websockets/base.py", line 422, in update
     data = self.preprocess_form("update", params)
   File "/usr/lib/python3/dist-packages/maasserver/websockets/handlers/machine.py", line 328, in preprocess_form
     new_params["pool"] = params["pool"]["name"]
 builtins.TypeError: 'NoneType' object is not subscriptable

Related branches

Revision history for this message
Mike Pontillo (mpontillo) wrote :

I can confirm this also happens on 2.5.0 RC2.

Changed in maas:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Mike Pontillo (mpontillo) wrote :

Here's the traceback on 2.5.0 RC2.

https://paste.ubuntu.com/p/NZh9x7H23N/

Changed in maas:
milestone: none → 2.5.1
assignee: nobody → Alberto Donato (ack)
Alberto Donato (ack)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
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.