dmwm/CRABServer — pull request #4354 by AndresTanasijczuk (2014-07-11 17:45:31+00:00)
Title: Fix transfer of TFiles. Add "directstageout" to file metadata.

In this patch:
1) In cmscp.py, inject a transfer request document to ASO-couchDB not only for EDM files but also for TFiles.
2) In PostJob, do not assume output files (EDMs and TFiles) appear listed in the same order in the FJR and in the filenames argument.
3) In PostJob, add "directstageout" to the file metadata (as an integer, 0 or 1) for all kind of files (i.e for logs, EDM outputs and TFile outputs). This info is taken from the FJR. If info can not be retrieved, set to 0.

I tested this patch in my private TW and REST, using a pset that generates both an EDM (dumper.root) and a TFile (histo.root). I ran two tasks, one where injection to ASO from WN worked fine (http://glidemon.web.cern.ch/glidemon/jobs.php?taskid=370614), and one where injection from WN was skipped so that to test injection from PostJob (http://glidemon.web.cern.ch/glidemon/jobs.php?taskid=370650). All seems to be fine for me. Btw, I keep the upload of the filemetadata for all files because this is needed by the getlog and getoutput.