Project

General

Profile

Bug #22037

poms_service.py : launch_campaign HTTP 403

Added by Yuyi Guo over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
03/01/2019
Due date:
% Done:

0%

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

Description

2019-03-01 16:48:30,355 - ERROR - Failed to submit a camapaign.
Traceback (most recent call last):
File "/Users/yuyi2/PycharmProjects/project-py/bin/poms_cli.py", line 245, in <module>
experiment=my_experiment)
File "/Users/yuyi2/PycharmProjects/poms/poms_client/python/poms_client.py", line 134, in launch_campaign_jobs
experiment=experiment)
File "/Users/yuyi2/PycharmProjects/poms/poms_client/python/poms_client.py", line 478, in make_poms_call
raise RuntimeError( "POMS call %s error: HTTP status: %d\n%s" % ( method, status_code, res ))
RuntimeError: POMS call launch_campaign error: HTTP status: 403
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/_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 1038, in launch_campaign
output_commands=output_commands)

History

#1 Updated by Marc Mengel over 1 year ago

Hm... a 403 is more likely an expired certificate/proxy?

#2 Updated by Yuyi Guo over 1 year ago

I uploaded a proxy before the submitting. More info here.
(403, 'Not Authorized: pomsini.fnal.gov is not a analysis launch node')?

RuntimeError: POMS call launch_campaign error: HTTP status: 403
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/_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 1038, in launch_campaign
output_commands=output_commands)
File "/home/poms/poms_releases/current/poms/poms/webservice/CampaignsPOMS.py", line 409, in launch_campaign
experiment, test_launch, output_commands
File "/home/poms/poms_releases/current/poms/poms/webservice/TaskPOMS.py", line 1118, in launch_jobs
raise err_res(403, output)
cherrypy._cperror.HTTPError: (403, 'Not Authorized: pomsini.fnal.gov is not a analysis launch node')

#3 Updated by Stephen White over 1 year ago

  • Assignee set to Marc Mengel

#4 Updated by Marc Mengel over 1 year ago

It is right! "pomsini" is not the launch node. It should be "pomsint" or "poms-int"...

#5 Updated by Marc Mengel over 1 year ago

Fixing this for you in the database:

pomsint=> select * from login_setups where launch_host like 'pomsini%';
 login_setup_id |    name    | experiment |   launch_host    | launch_account |                             launch_setup                             | creator |            created            | updater | updated | creator_role 
----------------+------------+------------+------------------+----------------+----------------------------------------------------------------------+---------+-------------------------------+---------+---------+--------------
            300 | yuyi_login | uboone     | pomsini.fnal.gov | poms_launcher  | source /grid/fermiapp/products/common/etc/setups.sh;setup fife_utils |    1407 | 2019-03-01 16:44:16.920121-06 |         |         | analysis
(1 row)

pomsint=> update login_setups set launch_host='pomsint.fnal.gov' where launch_host like 'pomsini%';
UPDATE 1
pomsint=> select * from login_setups where login_setup_id=300;
 login_setup_id |    name    | experiment |   launch_host    | launch_account |                             launch_setup                             | creator |            created            | updater | updated | creator_role 
----------------+------------+------------+------------------+----------------+----------------------------------------------------------------------+---------+-------------------------------+---------+---------+--------------
            300 | yuyi_login | uboone     | pomsint.fnal.gov | poms_launcher  | source /grid/fermiapp/products/common/etc/setups.sh;setup fife_utils |    1407 | 2019-03-01 16:44:16.920121-06 |         |         | analysis
(1 row)

#6 Updated by Yuyi Guo over 1 year ago

  • Status changed from New to Closed

Thanks Marc for the good catching! The job is submitted.

I guess I looked at too much on ini files and everything had to be it.



Also available in: Atom PDF