Project

General

Profile

Actions

Bug #9854

closed

[API] Validation checks for containers produce bad errors

Added by Peter Amstutz over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
0.5

Description

This is an attempt to commit a container request, which fails due to a missing docker image. The bug is that this gets reported to the client as a 404, when it should be a 422 with an error message such as "docker image "arvados/jobs" not found".

2016-08-25_17:00:34.05579 #<ActiveRecord::RecordNotFound: docker image "arvados/jobs" not found>
2016-08-25_17:00:34.05587 Error 1472144434+57194fba: 404
2016-08-25_17:00:34.05669 {"method":"POST","path":"/arvados/v1/container_requests/962eh-xvhdp-vlg2opl987r787x","format":"*/*","controller":"arvados/v1/container_requests","action":"update","status":404,"duration":33.3,"view":0.19,"db":7.76,"params_truncated":"{\"api_token\":\"4xfdfcb299y0627hpysv4q1k58wgso11jahe3jsjjya3lwhrz6\",\"reader_tokens\":\"[false]\",\"container_request\":\"{\\\"properties\\\":{\\\"template_uuid\\\":\\\"962eh-7fd4e-c3mp6v9lpvna8vb\\\"},\\\"state\\\":\\\"Committed\\\",\\\"mounts\\\":{\\\"/var/lib/cwl/cwl.input.json\\\":{\\\"kind\\\":\\\"json\\\",\\\"content\\\":{\\\"ex_file\\\":{\\\"class\\\":\\\"File\\\",\\\"location\\\":\\\"keep:4dc42add2b2430133d0991b63a26a584+85/lightning-2.6.3-sm+tb-linux.xpi\\\",\\\"arv:collection\\\":\\\"962eh-4zz18-suzs3j0s3iwgzqt/lightning-2.6.3-sm+tb-linux.xpi\\\"},\\\"ex_boolean\\\":false,\\\"ex_boolean_opt\\\":false,\\\"ex_dir\\\":{\\\"class\\\":\\\"Directory\\\",\\\"location\\\":\\\"keep:4dc42add2b2430133d0991b63a26a584+85\\\",\\\"arv:collection\\\":\\\"962eh-4zz18-suzs3j0s3iwgzqt\\\"},\\\"ex_double\\\":-2.0,\\\"ex_float\\\":3.0,\\\"ex_int\\\":2,\\\"ex_long\\\":1,\\\"ex_string\\\":\\\"qqq\\\",\\\"ex_enum\\\":\\\"b\\\"}},\\\"stdout\\\":{\\\"kind\\\":\\\"file\\\",\\\"path\\\":\\\"/var/spool/cwl/cwl.output.json\\\"},\\\"/var/spool/cwl\\\":{\\\"kind\\\":\\\"collection\\\",\\\"writable\\\":true},\\\"/var/lib/cwl/workflow.json\\\":{\\\"kind\\\":\\\"json\\\",\\\"content\\\":{\\\"cwlVersion\\\":\\[...]","@timestamp":"2016-08-25T17:00:34Z","@version":"1","message":"[404] POST /arvados/v1/container_requests/962eh-xvhdp-vlg2opl987r787x (arvados/v1/container_requests#update)"}

Workbench reports this error as:

Path not found [API: 404]

Subtasks 1 (0 open1 closed)

Task #9862: Review 9854-container-validations-produce-bad-errorsResolvedLucas Di Pentima08/26/2016Actions
Actions

Also available in: Atom PDF