Project

General

Profile

Actions

action #94084

closed

POST /job_templates_scheduling fails silently when the template contains an undefined machine

Added by dancermak over 3 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2021-06-16
Due date:
% Done:

0%

Estimated time:

Description

I have started out with a completely empty openQA instance and tried to apply a job template via a script that uses the /job_templates_scheduling route to set the job template. The template includes the following default:

defaults:
  x86_64:
    machine: 64bit
    priority: 50

But as the instance is completely fresh, it does not have the 64 bit machine defined and the above template fails to apply.

Unfortunately, the API swallows this failure and completely and still responds with a 204. The failure only becomes apparent when checking the logs of the webui, which includes:

webui_1          | [error] Machine '64bit' is invalid
webui_2          | [error] Machine '64bit' is invalid
webui_1          | [error] Machine '64bit' is invalid
webui_1          | [error] Machine '64bit' is invalid
Actions

Also available in: Atom PDF