Node fails to commission with error in region controller re: '50-maas-01-commissioning' failed during post-processing

Bug #1939340 reported by Patrick McClory
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fix Released
Alberto Donato
Fix Committed
Alberto Donato

Bug Description

When Commissioning a new node (dell r620) it fails without noting an error in the MaaS UI on the `50-maas-01-commissioning` stage. An exception is identified in the region controller's regiond.log:

2021-08-09 15:39:11 metadataserver.api: [critical] close-fly.fdcservers.maas(68fepw): commissioning script '50-maas-01-commissioning' failed during post-processing.
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/metadataserver/", line 820, in signal
     target_status = process(node, request, status)
   File "/usr/lib/python3/dist-packages/metadataserver/", line 641, in _process_commissioning
   File "/usr/lib/python3/dist-packages/metadataserver/", line 529, in _store_results
   File "/usr/lib/python3/dist-packages/metadataserver/models/", line 384, in store_result
     signal_status = try_or_log_event(
 --- <exception caught here> ---
   File "/usr/lib/python3/dist-packages/metadataserver/", line 447, in try_or_log_event
     func(*args, **kwargs)
   File "/usr/lib/python3/dist-packages/metadataserver/builtin_scripts/", line 919, in process_lxd_results
     _process_lxd_resources(node, data)
   File "/usr/lib/python3/dist-packages/metadataserver/builtin_scripts/", line 591, in _process_lxd_resources
   File "/usr/lib/python3/dist-packages/metadataserver/builtin_scripts/", line 549, in update_node_devices
     _process_usb_devices(add_func, data)
   File "/usr/lib/python3/dist-packages/metadataserver/builtin_scripts/", line 472, in _process_usb_devices
 builtins.TypeError: 'NoneType' object is not iterable

Combined log output is attached.

Tags: trivial

Related branches

Revision history for this message
Patrick McClory (pmd3v) wrote :
Revision history for this message
Bill Wear (billwear) wrote :

it may be in your log output somewhere, but which version of MAAS are you using?

Changed in maas:
status: New → Incomplete
Revision history for this message
Patrick McClory (pmd3v) wrote :


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

Ok, so the devices has "null" as value, where MAAS expects it to not be there at all.

Changed in maas:
status: Incomplete → Triaged
importance: Undecided → High
tags: added: trivial
Revision history for this message
Daniel Coultas (dcoultas) wrote :

running into this same issue.
Is there a work around currently for this issue?

Alberto Donato (ack)
Changed in maas:
milestone: none → 3.1.0
Alberto Donato (ack)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Alberto Donato (ack)
Changed in maas:
assignee: nobody → Alberto Donato (ack)
Bill Wear (billwear)
Changed in maas:
milestone: 3.1.0 → 3.1.0-beta5
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