More than one ScriptResult traceback when processing commissioning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
High
|
Unassigned |
Bug Description
Traceback repeatedly present on bolla's regiond.log
2022-09-06 15:32:06 maasserver: [error] Traceback (most recent call last):
File "/snap/
response = wrapped_
File "/snap/
return view_atomic(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/snap/
response = super()
File "/snap/
response = func(*args, **kwargs)
File "/snap/
result = self.error_
File "/snap/
result = meth(request, *args, **kwargs)
File "/snap/
return function(self, request, *args, **kwargs)
File "/snap/
target_status = process(node, request, status)
File "/snap/
self.
File "/snap/
process_file(
File "/snap/
script_result, _ = script_
File "/snap/
return super(RelatedMa
File "/snap/
return getattr(
File "/snap/
return self.get(**kwargs), False
File "/snap/
raise self.model.
metadataserver.
seems like our use of `get_or_create` is buggy.
Changed in maas: | |
milestone: | none → 3.4.0 |
Changed in maas: | |
status: | Incomplete → Triaged |
tags: | added: bug-council |
tags: | removed: bug-council |
Changed in maas: | |
milestone: | 3.4.0 → 3.5.0 |
able to reproduce, it appears the issue is a combination of we're only fetching the scriptresult by script name, and likely the same issue as LP:1964024 as I am able to find multiple scriptresults for smartctl-validate with the same script_set_id.