Project

General

Profile

Bug #6489

Milestone #6691: Improve error reporting in client

JobsubClient.py typo in exception handling

Added by Dennis Box over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JobSub Client
Target version:
Start date:
06/17/2014
Due date:
07/30/2014
% Done:

100%

Estimated time:
Spent time:
First Occurred:
Occurs In:
Stakeholders:
Duration: 44

Description

Gerard triggered this error when running jobsub_submit.py with no certificates directory installed. Note the line 452 error in jobsubClient.py, it should read:

raise Exception('Could not find CA Certificates. Set X509_CA_DIR')

Gerards Error:

[root@fermicloud376 jobsub]# ./client/jobsub_submit.py -G nova file:///bin/hostname
exceptions must be old-style classes or derived from BaseException, not str
Traceback (most recent call last):
File "./client/jobsub_submit.py", line 212, in main
js_client.submit()
File "/root/jobsub/client/jobsubClient.py", line 167, in submit
curl, response = curl_secure_context(self.submitURL, self.credentials)
File "/root/jobsub/client/jobsubClient.py", line 367, in curl_secure_context
curl.setopt(curl.CAPATH, get_capath())
File "/root/jobsub/client/jobsubClient.py", line 452, in get_capath
raise('Could not find CA Certificates. Set X509_CA_DIR')

History

#1 Updated by Dennis Box over 5 years ago

  • Description updated (diff)
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#2 Updated by Parag Mhashilkar about 5 years ago

  • Parent task set to #6691

#3 Updated by Parag Mhashilkar about 5 years ago

  • Status changed from Resolved to Closed

#4 Updated by Parag Mhashilkar about 5 years ago

  • Due date set to 07/30/2014


Also available in: Atom PDF