Project

General

Profile

Bug #6375

Milestone #6691: Improve error reporting in client

unhelpful NON error message from jobsub_fetchlog.py

Added by Dennis Box almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
05/29/2014
Due date:
07/30/2014
% Done:

100%

Estimated time:
5.00 h
Spent time:
First Occurred:
Occurs In:
Stakeholders:
Duration: 63

Description

While testing jobsub_fetchlog.py on fifebatch-dev I accidentally submitted to a different machine, fifebatch1. This created a valid dbox.keytab on fifebatch1, invalidating the dbox.keytabs on the HA servers behind fifebatch-dev. When I started testing jobsub_fetchlog.py again, testing a jobid that did not exist, the server failed to authenticate me but the client dutifully created a jobid.tgz file which was corrupt. The other client commands report back that authorization has failed.

History

#1 Updated by Parag Mhashilkar almost 5 years ago

  • Assignee set to Dennis Box

#2 Updated by Parag Mhashilkar almost 5 years ago

  • Target version set to v0.4

#3 Updated by Dennis Box almost 5 years ago

  • Description updated (diff)
  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Estimated time set to 5.00 h

changed the authorization module to return HTTP status 401 when authorization failed.
changed jobsub_fetchlog.py and jobsubClient.py to report this back, it is now fairly obvious when an accounting group is misspelled, you get an error messages like so:

[dbox@novagpvm01 client]$ ./jobsub_fetchlog.py --group noova --jobsub-server https://fermicloud329.fnal.gov:8443 --jobid 10.0@fermicloud329.fnal.gov

CREDENTIALS : {'key': '/tmp/jobsub_x509up_u8531', 'env_key': '/tmp/jobsub_x509up_u8531', 'cert': '/tmp/jobsub_x509up_u8531', 'env_cert': '/tmp/jobsub_x509up_u8531'}

SUBMIT_URL : https://fermicloud329.fnal.gov:8443/jobsub/acctgroups/noova/jobs/10.0@fermicloud329.fnal.gov/sandbox/

Response ERROR:
User authorization has failed:Error authorizing DN='/DC=gov/DC=fnal/O=Fermilab/OU=People/CN=Dennis D. Box/CN=UID:dbox' for AcctGroup='noova'
Remote Submission Processing Time: 0.405080080032 sec

[dbox@novagpvm01 client]$ ./jobsub_q.py --group noova --jobsub-server https://fermicloud329.fnal.gov:8443
Server response code: 401
Response ERROR:
User authorization has failed:Error authorizing DN='/DC=gov/DC=fnal/O=Fermilab/OU=People/CN=Dennis D. Box/CN=UID:dbox' for AcctGroup='noova'
Remote Listing Processing Time: 0.223830938339 sec

#4 Updated by Parag Mhashilkar almost 5 years ago

  • Parent task changed from #6364 to #6691

#5 Updated by Parag Mhashilkar almost 5 years ago

  • Status changed from Resolved to Closed

#6 Updated by Parag Mhashilkar almost 5 years ago

  • Due date set to 07/30/2014


Also available in: Atom PDF