500 error when using the submit job ui when requesting a device_type that doesn't exist
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Scheduler (deprecated) |
Fix Released
|
Medium
|
Neil Williams |
Bug Description
I was trying to use the submit job ui on v.l.o with:
{
"actions": [
{
}
},
{
}
],
"device_type": "keystone",
"health_check": false,
"job_name": "Keystone Boot Test",
"logging_
"timeout": 18000
}
and was getting a HTTP 500 error.
In the uswgi logs I see:
ERROR:django.
Traceback (most recent call last):
File "/srv/lava/
response = callback(request, *callback_args, **callback_kwargs)
File "/srv/lava/
request.
File "/srv/lava/
device_type = DeviceType.
File "/srv/lava/
return self.get_
File "/srv/lava/
% self.model.
DoesNotExist: DeviceType matching query does not exist.
Which showed that I was trying to request a device type that didn't exist.
It would be much better if the UI was able to give me this error rather than just the HTTP 500 page.
Changed in lava-scheduler: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
assignee: | nobody → Neil Williams (codehelp) |
Changed in lava-scheduler: | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → In Progress |
Changed in lava-scheduler: | |
status: | In Progress → Fix Committed |
Changed in lava-scheduler: | |
status: | Fix Committed → Fix Released |