dmwm / CRAB2

CRAB2
2 stars 11 forks source link

wrong message inside cmscp.py output #672

Closed ericvaandering closed 11 years ago

ericvaandering commented 11 years ago

Original Savannah ticket 77641 reported by belforte on Tue Feb 1 03:46:23 2011.

looking at this easily reproducible test: belforte@lxplus304/test-cmscp> ls -l /tmp/pluto.root ls: /tmp/pluto.root: No such file or directory belforte@lxplus304/test-cmscp> python $CRABPYTHON/cmscp.py --destination srm://cmsdcache.pi.infn.it:8443/srm/managerv2'?'SFN=/pnfs/pi.infn.it/data/cms/store/user/belforte/prova/ --inputFileList /tm p/pluto.root --middleware LCG --se_name cmsdcache.pi.infn.it --debug

the command duly failes becouse input /tmp/pluto.root is not there, but the output[*] contains the misleading message

Check for local file /tmp/pluto.root exist succeded

which in less trivial cases is quite confusing. It seems like the fact that the file is missing is detected later in the call chain, not good.

[*] full output:

belforte@lxplus304/test-cmscp> python $CRABPYTHON/cmscp.py --destination srm://cmsdcache.pi.infn.it:8443/srm/managerv2'?'SFN=/pnfs/pi.infn.it/data/cms/store/user/belforte/prova/ --inputFileList /tm p/pluto.root --middleware LCG --se_name cmsdcache.pi.infn.it --debug
calling run() :

stager() :

    middleware LCG

    list_files ['/tmp/pluto.root']

setProtocol() :

    middleware =  LCG utils 

    Trying the stage out with srm-lcg utils 

    and options -b -D srmv2 --srm-timeout 2400 --sendreceive-timeout 2400 --connect-timeout 300 --verbose

copy() : using srm-lcg protocol using -b -D srmv2 --srm-timeout 2400 --sendreceive-timeout 2400 --connect-timeout 300 --verbose options list_file ['/tmp/pluto.root']

initializeApi() :

storageInterface():

storageInterface():

    (source=,  protocol=local)      (destination=srm://cmsdcache.pi.infn.it:8443/srm/managerv2?SFN=/pnfs/pi.infn.it/data/cms/store/user/belforte/prova/,  protocol=srm-lcg) (destinationDir=,  pr

otocol=srm-lcg) Start real copy for /tmp/pluto.root checkFileExist():

    Check for local file /tmp/pluto.root exist succeded 

    Copy results for pluto.root is 60302

in checkCopy() :

     file /tmp/pluto.root 

     dict['erCode'] 60302 

     dict['reason'] ERROR file pluto.root do not exist 

    Copy of ['/tmp/pluto.root'] failed using srm-lcg : files not found 

     results {'/tmp/pluto.root': {'endpoint': 'srm://cmsdcache.pi.infn.it:8443/srm/managerv2?SFN=/pnfs/pi.infn.it/data/cms/store/user/belforte/prova/', 'surl_for_grid': '', 'reason': 'ERROR fil

e pluto.root do not exist', 'erCode': '60302', 'se_name': 'cmsdcache.pi.infn.it', 'for_lfn': '/copy_problem/'}}

in writeJsonFile() :

---->>>> in writeJsonFile results = {'/tmp/pluto.root': {'endpoint': 'srm://cmsdcache.pi.infn.it:8443/srm/managerv2?SFN=/pnfs/pi.infn.it/data/cms/store/user/belforte/prova/', 'surl_for_grid': '', 'reason': 'ERROR file pluto.root do not exist', 'erCode': '60302', 'se_name': 'cmsdcache.pi.infn.it', 'for_lfn': '/copy_problem/'}} reading resultCopyFile :

inputDict =  {u'/tmp/pluto.root': {u'endpoint': u'srm://cmsdcache.pi.infn.it:8443/srm/managerv2?SFN=/pnfs/pi.infn.it/data/cms/store/user/belforte/prova/', u'surl_for_grid': u'', u'reason': u'ER

ROR file pluto.root do not exist', u'erCode': u'60302', u'se_name': u'cmsdcache.pi.infn.it', u'for_lfn': u'/copy_problem/'}} belforte@lxplus304/test-cmscp>

ericvaandering commented 11 years ago

Comment by belforte on Wed Apr 27 09:00:40 2011

message text was plainly wrong serendipitously fixed in 2_7_8

ericvaandering commented 11 years ago

Closed by spiga on Thu May 19 03:23:08 2011