A 500 is returned when posting a job with a new job type to staging

RESOLVED WONTFIX

Status

Tree Management
Treeherder: Data Ingestion
RESOLVED WONTFIX
3 years ago
9 months ago

People

(Reporter: mdoglio, Unassigned)

Tracking

Details

(Reporter)

Description

3 years ago
:bc reported this error in the treeherder irc channel today
(Reporter)

Comment 1

3 years ago
Here is a trace extracted from the logs:
[treeherder1.stage.webapp.scl3.mozilla.com] out: [2015-08-18 23:21:59,873] ERROR [treeherder.webapp.api.exceptions:29] 'job_group_id'
[treeherder1.stage.webapp.scl3.mozilla.com] out: [2015-08-18 23:21:59,874] ERROR [treeherder.webapp.api.exceptions:30] Traceback (most recent call last):
[treeherder1.stage.webapp.scl3.mozilla.com] out: File "/data/www/treeherder.allizom.org/venv/lib/python2.7/site-packages/rest_framework/views.py", line 453, in dispatch
[treeherder1.stage.webapp.scl3.mozilla.com] out: response = handler(request, *args, **kwargs)
[treeherder1.stage.webapp.scl3.mozilla.com] out: File "/data/www/treeherder.allizom.org/treeherder-service/treeherder/webapp/api/utils.py", line 109, in use_jobs_model
[treeherder1.stage.webapp.scl3.mozilla.com] out: return model_func(*args, jm=jm, **kwargs)
[treeherder1.stage.webapp.scl3.mozilla.com] out: File "/data/www/treeherder.allizom.org/treeherder-service/treeherder/webapp/api/jobs.py", line 177, in create
[treeherder1.stage.webapp.scl3.mozilla.com] out: jm.store_job_data(request.DATA)
[treeherder1.stage.webapp.scl3.mozilla.com] out: File "/data/www/treeherder.allizom.org/treeherder-service/treeherder/model/derived/jobs.py", line 1158, in store_job_data
[treeherder1.stage.webapp.scl3.mozilla.com] out: id_lookups = self.refdata_model.set_all_reference_data()
[treeherder1.stage.webapp.scl3.mozilla.com] out: File "/data/www/treeherder.allizom.org/treeherder-service/treeherder/model/derived/refdata.py", line 163, in set_all_reference_data
[treeherder1.stage.webapp.scl3.mozilla.com] out: self.id_lookup['job_types'] = self.process_job_types()
[treeherder1.stage.webapp.scl3.mozilla.com] out: File "/data/www/treeherder.allizom.org/treeherder-service/treeherder/model/derived/refdata.py", line 663, in process_job_types
[treeherder1.stage.webapp.scl3.mozilla.com] out: if not job_type_lookup[job_key]['job_group_id']:
[treeherder1.stage.webapp.scl3.mozilla.com] out: KeyError: 'job_group_id'

Comment 2

9 months ago
This has likely since been fixed. We're also removing support for submitting jobs via the REST API (bug 1395337).
Status: NEW → RESOLVED
Last Resolved: 9 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.