Project

General

Profile

Feature #7035

Better handling when no kerberos credential is present

Added by Gerard Bernabeu Altayo about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
09/18/2014
Due date:
% Done:

100%

Estimated time:
Stakeholders:
Duration:

Description

Hi,

right now if there's no kerberos ticket present in the system jobsub_submit gives a stack trace and an error that may not be obvious to users. I suggest to replace this message by something like Kerberos credentials not found, try to kinit.

One could even trigger kinit if present but not sure that's a good idea...

This is how you can reproduce the error:

[gerard1@dhcp-131-225-86-116 ~]$ kdestroy
kdestroy: No credentials cache found while destroying cache
[gerard1@dhcp-131-225-86-116 ~]$ . /fnal/ups/etc/setups.sh
[gerard1@dhcp-131-225-86-116 ~]$ setup jobsub_client
[gerard1@dhcp-131-225-86-116 ~]$ jobsub_submit --resource-provides=usage_model=OPPORTUNISTIC --OS=SL5,SL6 --group=fermilab file:///usr/bin/id
Traceback (most recent call last):
File "/fnal/ups/prd/jobsub_client/v1_0/NULL/jobsub_submit", line 235, in <module>
sys.exit(main(sys.argv))
File "/fnal/ups/prd/jobsub_client/v1_0/NULL/jobsub_submit", line 219, in main
options.acctRole, srv_argv, options.dropboxServer, options.dag)
File "/fnal/ups/prd/jobsub_client/v1_0/NULL/jobsubClient.py", line 76, in init
self.credentials = get_client_credentials()
File "/fnal/ups/prd/jobsub_client/v1_0/NULL/jobsubClient.py", line 574, in get_client_credentials
krb5_creds = jobsubClientCredentials.Krb5Ticket()
File "/fnal/ups/prd/jobsub_client/v1_0/NULL/jobsubClientCredentials.py", line 132, in init
self.krb5CredCache = self.getKrb5CredCache()
File "/fnal/ups/prd/jobsub_client/v1_0/NULL/jobsubClientCredentials.py", line 157, in getKrb5CredCache
raise CredentialsNotFoundError()
jobsubClientCredentials.CredentialsNotFoundError: Credentials not found
[gerard1@dhcp-131-225-86-116 ~]$

History

#1 Updated by Parag Mhashilkar about 6 years ago

  • Assignee set to Dennis Box
  • Target version set to v1.0.2

#2 Updated by Dennis Box about 6 years ago

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

see branch 7035

#3 Updated by Parag Mhashilkar about 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF