Project

General

Profile

Bug #22411

when remove a non existing job type, POMS throw Runtime error instead of report a proper message. This situation happened to multiple APIs

Added by Yuyi Guo 6 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
04/18/2019
Due date:
% Done:

100%

Estimated time:
First Occurred:
Scope:
Internal
Experiment:
-
Stakeholders:
Duration:

Description

poms_cli.py --int --rm --job_type "CLONE OF: yuyi_2_prod_muminus_0-2.0GeV_isotropic_uboone_jobtype"
CLONE OF: yuyi_2_prod_muminus_0-2.0GeV_isotropic_uboone_jobtype
2019-04-18 15:21:05,316 - ERROR - remove failed.
Traceback (most recent call last):
File "/Users/yuyi2/PycharmProjects/project-py/bin/poms_cli.py", line 542, in <module>
poms_client.job_type_rm(args.job_type, test=args.test)
File "/Users/yuyi2/PycharmProjects/poms/poms_client/python/poms_client.py", line 279, in job_type_rm
configfile=configfile)
File "/Users/yuyi2/PycharmProjects/poms/poms_client/python/poms_client.py", line 648, in make_poms_call
raise RuntimeError("POMS call %s error: HTTP status: %d\n%s" % (method, status_code, res))
RuntimeError: POMS call job_type_rm error: HTTP status: 500
Traceback (most recent call last):
File "/home/poms/venvs/poms36_venv/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 630, in respond
self._do_respond(path_info)
File "/home/poms/venvs/poms36_venv/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 689, in _do_respond
response.body = self.handler()
File "/home/poms/venvs/poms36_venv/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 221, in call
self.body = self.oldhandler(*args, **kwargs)
File "/home/poms/venvs/poms36_venv/lib/python3.6/site-packages/cherrypy/lib/jsontools.py", line 58, in json_handler
value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
File "/home/poms/venvs/poms36_venv/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 54, in call
return self.callable(*self.args, **self.kwargs)
File "/home/poms/poms_releases/current/poms/poms/webservice/logit.py", line 18, in wrapper
return function(*args, **kwargs)
File "/home/poms/poms_releases/current/poms/poms/webservice/poms_service.py", line 387, in job_type_rm
**kwargs
File "/home/poms/poms_releases/current/poms/poms/webservice/CampaignsPOMS.py", line 514, in job_type_edit
JobType.creator == experimenter.experimenter_id,
AttributeError: 'NoneType' object has no attribute 'job_type_id'

History

#1 Updated by Marc Mengel 5 months ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved

Broader spectrum error rewriting.



Also available in: Atom PDF