Got 500 http error when using MAAS Api
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
We got random HTTP 500 errors when we use MAAS API essentially with POST and PUT requests:
2018-06-14 13:12:32 regiond: [info] 192.0.2.5 PUT /MAAS/api/
2018-06-14 13:12:33 maasserver: [error] #######
2018-06-14 13:12:33 maasserver: [error] Traceback (most recent call last):
File "/usr/lib/
response = wrapped_
File "/usr/lib/
return view_atomic(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/usr/lib/
response = upcall(request, *args, **kwargs)
File "/usr/lib/
response = func(*args, **kwargs)
File "/usr/lib/
else: stream = srl.render(request)
File "/usr/lib/
response = serializers.
File "/usr/lib/
s.serialize
File "/usr/lib/
for count, obj in enumerate(queryset, start=1):
TypeError: 'Machine' object is not iterable
2018-06-14 13:12:33 regiond: [info] 192.0.2.5 POST /MAAS/api/
We use MAAS 2.4 on ubuntu 18.04.
This is the script we use to send requests: https:/
Hi Aymen,
Could you please provide more context on when and how this happens? looking at the logs and having a script doesn't give us enough context to determine your issue. As such, can you explain what it does, how it does, it, etc?
Thanks!