Error during adding and commission 2.6.0

Hi
Only the first machine will get memory information. The rest of added machine get 0 GiB.
If I delete all machines and try with a new HW as the first to be added. That one will get correct memory info. This in a new installation of MAAS 2.6.0. We have this behavior.
The same error will appear during both adding a new HW and when doing commission.

I get this errors in the regiond.log:

2019-09-04 12:40:04 metadataserver.api: [critical] superb-magpie.maas-infra.hpc.scania.com(g83hwx): commissioning script ‘00-maas-01-lshw’ failed during post-processing.
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/metadataserver/api.py”, line 746, in signal
target_status = process(node, request, status)
File “/usr/lib/python3/dist-packages/metadataserver/api.py”, line 577, in _process_commissioning
node, node.current_commissioning_script_set, request, status)
File “/usr/lib/python3/dist-packages/metadataserver/api.py”, line 493, in _store_results
**args, timedout=(status == SIGNAL_STATUS.TIMEDOUT))
File “/usr/lib/python3/dist-packages/metadataserver/models/scriptresult.py”, line 323, in store_result
exit_status=self.exit_status)
— —
File “/usr/lib/python3/dist-packages/metadataserver/api.py”, line 422, in try_or_log_event
func(*args, **kwargs)
File “/usr/lib/python3/dist-packages/metadataserver/builtin_scripts/hooks.py”, line 326, in update_hardware_details
node.save(update_fields=[‘memory’, ‘hardware_uuid’])
File “/usr/lib/python3/dist-packages/maasserver/models/node.py”, line 1772, in save
super(Node, self).save(*args, **kwargs)
File “/usr/lib/python3/dist-packages/maasserver/models/cleansave.py”, line 213, in save
self.validate_unique(exclude=[self._meta.pk.name])
File “/usr/lib/python3/dist-packages/django/db/models/base.py”, line 1041, in validate_unique
raise ValidationError(errors)
django.core.exceptions.ValidationError: {‘hardware_uuid’: [‘Node with this Hardware uuid already exists.’]}

Hi Lasse,

what kind of hardware are you trying to commission? It would be good if you could supply lshw output of two of the machines.

We read the machine UUID from lshw, which is supposed to be unique across systems (because otherwise it wouldn’t a a UUID)

It might be test to file a bug at https://launchpad.net/maas/+filebug, where you can attach the lshw output.

Hi Björn

All HW is the same spec in this MAAS region (Supermicro servers). And everyone gets the same uuid in the lshw output :face_with_raised_eyebrow: I will file a bug. Bug #1842872