Project

General

Profile

Bug #7863

condor changing permission of *.err and *.out files, causing fetchlog to fail

Added by Dennis Box over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Parag Mhashilkar
Category:
-
Target version:
Start date:
02/13/2015
Due date:
% Done:

0%

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

Description

Just noticed this, unfortunately.
Submit a job to v1.1 server, get a jobsubjobid back. Jobsub_fetchlog --jobid works as expected.

Later, when the job completes, condor has changed the permissions of the *.out and *.err files to 600, resulting in this at the client side:
[dbox@novagpvm01 client]$ jobsub_fetchlog --group nova --jobsub-server https://fifebatch-preprod.fnal.gov:8443 --job
RESPONSE ERROR:
Exception on SandboxResource.index

JOBSUB SERVER CONTACTED : https://fermicloud391.fnal.gov:8443
JOBSUB SERVER RESPONDED : https://fermicloud391.fnal.gov:8443
JOBSUB SERVER RESPONSE CODE : 500 (Failed)
JOBSUB SERVER SERVICED IN : 0.59089589119 sec
JOBSUB CLIENT FQDN : novagpvm01.fnal.gov
JOBSUB CLIENT SERVICED TIME : 13/Feb/2015 17:38:38

and this in the server log:

[13/Feb/2015:17:38:37] [sandbox.py:index] Exception on SandboxResource.indexTraceback (most recent call last):
File "/opt/jobsub/server/webapp/sandbox.py", line 172, in index
rc = self.doGET(acctgroup, job_id, kwargs)
File "/opt/jobsub/server/webapp/sandbox.py", line 127, in doGET
create_archive(zip_file, zip_path, job_id, format)
File "/opt/jobsub/server/webapp/sandbox.py", line 49, in create_archive
create_tarfile(zip_file, zip_path, job_id)
File "/opt/jobsub/server/webapp/util.py", line 95, in create_tarfile
tar.add(f1,f2)
File "/usr/lib64/python2.6/tarfile.py", line 1979, in add
f = bltn_open(name, "rb")
IOError: [Errno 13] Permission denied: '/scratch/uploads/nova/dbox/2015-02-13_171734.907783_4137/sleep_100.sh_20150213_171735_11622_0_1_6.out'

condor has helpfully changed the permission of the output file during execution:
[root@fermicloud391 2015-02-13_171809.832426_9398]# ls la /scratch/uploads/nova/dbox/2015-02-13_171734.907783_4137/sleep_100.sh_20150213_171735_11622_0_1_6.out
-rw------
1 dbox dbox 75 Feb 13 17:34 /scratch/uploads/nova/dbox/2015-02-13_171734.907783_4137/sleep_100.sh_20150213_171735_11622_0_1_6.out

History

#1 Updated by Parag Mhashilkar over 4 years ago

  • Status changed from New to Feedback
  • Assignee changed from Parag Mhashilkar to Dennis Box

#2 Updated by Parag Mhashilkar over 4 years ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Dennis Box to Parag Mhashilkar

#3 Updated by Parag Mhashilkar over 4 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF