Today we received libpython3.8 update for Ubuntu 20.04 and after that MaaS become broken with error: Error:Failed to retrieve curtin config: init() missing 2 required positional arguments: ‘doc’ and ‘pos’
Default preseed works, but our preseed with storage section fails. We’ve been using MaaS 2.9 so I’ve tried to upgrade to 3.0 and same thing happens. Did anyone else got this errors?
I think this is something to do with tempita templates, as error occured when MaaS tries to parse template with template.substitute. I don’t want to file Bug yet as I’m not sure that this is not something on preseed side, although it worked fine and wasn’t changed and only became broken this morning. Also full error in regiond.log:
021-07-02 13:33:32 maasserver.websockets.protocol: [critical] Error on request (1773) machine.action: Failed to retrieve curtin config: init() missing 2 required positional arguments: ‘doc’ and ‘pos’
Traceback (most recent call last):
File “/usr/lib/python3.8/threading.py”, line 870, in run
self._target(*self._args, **self._kwargs)
File “/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py”, line 835, 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()
— —
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
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 870, in callInContext
return func(*args, **kwargs)
File “/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py”, line 202, in wrapper
result = func(*args, **kwargs)
File “/usr/lib/python3/dist-packages/maasserver/utils/orm.py”, line 751, in call_within_transaction
return func_outside_txn(*args, **kwargs)
File “/usr/lib/python3/dist-packages/maasserver/utils/orm.py”, line 554, in retrier
return func(*args, **kwargs)
File “/usr/lib/python3.8/contextlib.py”, line 75, in inner
return func(*args, **kwds)
File “/usr/lib/python3/dist-packages/maasserver/websockets/base.py”, line 402, in prep_user_execute
return self._call_method_track_queries(
File “/usr/lib/python3/dist-packages/maasserver/websockets/base.py”, line 426, in _call_method_track_queries
result = method(params)
File “/usr/lib/python3/dist-packages/maasserver/websockets/handlers/machine.py”, line 947, in action
return action.execute(**extra_params)
File “/usr/lib/python3/dist-packages/maasserver/node_action.py”, line 171, in execute
self._execute(*args, **kwargs)
File “/usr/lib/python3/dist-packages/maasserver/node_action.py”, line 541, in _execute
raise NodeActionError(“Failed to retrieve curtin config: %s” % e)
maasserver.exceptions.NodeActionError: Failed to retrieve curtin config: init() missing 2 required positional arguments: ‘doc’ and ‘pos’