Failed to retrieve curtin config: %d format: a number is required, not NoneType

Bug #1952470 reported by Marcelo Subtil Marcal
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Won't Fix
Undecided
Unassigned

Bug Description

When deploying a new commissioned machine MAAS 2.3.4 (6508-g4f77e30-0ubuntu1~16.04.1) shows the following message on the WebUI:

Node failed to be deployed, because of the following error: Failed to retrieve curtin config: %d format: a number is required, not NoneType

When trying to deploy using the API it returns:

$ maas root machine deploy pysxa7
Failed to render preseed: %d format: a number is required, not NoneType

Comparing the /etc/maas/preseeds contents with a test MAAS 2.3.5-6511-gf466fdb-0ubuntu1, the files are identical:

/etc/maas/preseeds# md5sum *
222f5145e81dc789e4262f2384c800e9 commissioning
222f5145e81dc789e4262f2384c800e9 curtin
382fb3b7d888a3f021ece9f5ab2c2b47 curtin_userdata
9c709b8b6468b0796cab929e712113af curtin_userdata_centos
9c709b8b6468b0796cab929e712113af curtin_userdata_custom
9c709b8b6468b0796cab929e712113af curtin_userdata_suse
99a1fd76aa83ba111eb9852bb9dc0d0a curtin_userdata_windows
4fdde92c1f981cdf9f3af43320fb8e0a enlist
4c5ca772dbce858698d406f54cdb462d enlist_userdata

Revision history for this message
Marcelo Subtil Marcal (msmarcal) wrote :

Subscribed field-high

Revision history for this message
Björn Tillenius (bjornt) wrote :

Can you please attach the logs (maas.log, regiond.log, and rackd.log), as well as the output from:

  maas root machine read pysxa7

Changed in maas:
status: New → Incomplete
Revision history for this message
Marcelo Subtil Marcal (msmarcal) wrote :
Revision history for this message
Marcelo Subtil Marcal (msmarcal) wrote :

Logs from the 3 MAAS nodes

Revision history for this message
Marcelo Subtil Marcal (msmarcal) wrote :

regiond.log shows this traceback:

2021-11-26 17:14:20 maasserver.websockets.protocol: [critical] Error on request (5028) machine.action: Failed to retrieve curtin config: %d format: a number is required, not NoneType

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 842, 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 875, 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 754, in call_within_transaction
    return func_outside_txn(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 561, 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 785, in action
    return action.execute(**extra_params)
  File "/usr/lib/python3/dist-packages/maasserver/node_action.py", line 353, in execute
    "Failed to retrieve curtin config: %s" % e)

Changed in maas:
status: Incomplete → New
Revision history for this message
Alberto Donato (ack) wrote :

Hi, unfortunately it's not easy to understand what is going wrong from logs/output alone.
Also, MAAS 2.3 is way past its EOL.
Could you please upgrade to a more recent version and see if the issue still happens.

Marking wontfix, please reopen if still reproducible with current versions.

Changed in maas:
status: New → Won't Fix
Revision history for this message
Marcelo Subtil Marcal (msmarcal) wrote :

When updating the package curtin-common, the error is 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.