Local input for a test job does not work.
Raised by @mmonk
If one tries to run a local test using a local file as input they will encounter the following:
[aiwieder@lxplus7109 AnalysisProductions]$ lb-ap test B02DKPi 2018_12163011_MagDown -i /afs/cern.ch/work/a/aiwieder/private/starterkit/lesson/AnalysisProductions/00098914_00000258_7.AllStreams.dst
Validating environment
Running tests in /afs/cern.ch/work/a/aiwieder/private/starterkit/lesson/AnalysisProductions/local-tests/B02DKPi-2022-01-12-14-41-04
Found existing dynamic dir pointing to /afs/cern.ch/work/a/aiwieder/private/starterkit/lesson/AnalysisProductions/local-tests/B02DKPi-2022-01-12-14-09-43/dynamic, unlinking
Setting CMAKE_PREFIX_PATH to /afs/cern.ch/work/a/aiwieder/private/starterkit/lesson/AnalysisProductions/local-tests/B02DKPi-2022-01-12-14-41-04
Generating pool XML catalog
********** stdout was:
No option files and no list of files given
Create a pool xml catalog slice for the specified LFNs.Usage:
dirac-bookkeeping-genXMLCatalog [option|cfgfile] ...
Usage:
dirac-bookkeeping-genXMLCatalog [option|cfgfile] ...
General options:
-o --option <value> : Option=value to add
-s --section <value> : Set base section for relative parsed options
-c --cert <value> : Use server certificate to connect to Core Services
-d --debug : Set debug mode (-ddd is extra debug)
- --cfg= : Load additional config file
- --autoreload : Automatically restart if there's any change in the module
- --license : Show DIRAC's LICENSE
-h --help : Shows this help
Options:
-g --Sites <value> : Sites to consider [ALL] (comma separated list)
-S --SEs <value> : SEs to consider [ALL] (comma separated list)
- --File= : File containing list of LFNs
-l --LFNs <value> : List of LFNs (comma separated)
- --Terminal : LFNs are entered from stdin (--File /dev/stdin)
- --LastLFNs : Use last set of LFNs
- --Options= : List of option files to consider
- --NewOptions= : Name of a new options file to be generated with LFNs (default: none)
- --Catalog= : Catalog name (default: pool_xml_catalog.xml
- --Depth= : Depth for ancestor consideration (default: none)
-v --Verbose : Verbose gLogger.always(out
- --Ignore : Ignore missing files
- --GaudiVerbose : Set Gaudi verbose when parsing option files
********** stderr was:
Error: Failed to generate pool XML catalog with: ['lb-dirac', 'dirac-bookkeeping-genXMLCatalog', '--LFNs', '/afs/cern.ch/work/a/aiwieder/private/starterkit/lesson/AnalysisProductions/00098914_00000258_7.AllStreams.dst']
It seems that it tries to generate an XML catalog using the local path rather than an LFN. I guess if we have a local file we actually don't even need an XML catalog so we need to do something else.
This also makes me wonder if job chains are really working correctly. For example, if you have a strip->tuple chain, the tuple job might actually be running over a remote DST corresponding to the LFN.