Dear All,
I have a python program which uses lcg_util API to upload (among other
things) files to a SE.
The program works fine on a Centos 5.5 machine with UI 3.2.5-0, used
to work on miceacq05 SL5 on an older UI (not sure about the version) but
it stopped working after an UI upgrade to 3.2.8-0.
In order to eliminate possible dependencies with a big program I made
a test using a Python shell which demonstrates the issue (output follows).
Has anybody noticed any problem with the Python lcg_util APIs after
the UI upgrade ?
thanks in advance, JM
Here is the test output:
******** Beginq of test ********************
( performed on Tue Nov 17th 2010 )
Python 2.4.3 (#1, Sep 10 2009, 18:34:35)
(Linux miceacq05 2.6.18-194.17.4.el5 #1 SMP Mon Oct 25 19:10:57 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux)
A failed lcg_cr3 caused lcg_lg being unusable (and any other lcg_*
Python shell restart makes further actions possible
******************************************
** At start, a non existing file gives ret=-1 and errcode 0, which is
correct
>>> (ret, guid, errmsg2)=lcg_util.lcg_lg2
('lfn:/grid/mice/MICE/Step1/01600/01603.tar',0, 'mice')
>>> ret
-1
>>> errcode = gfal.gfal_get_errno()
>>> errcode
0
** upload to Castor and register with the LFC
>>> (returncode, actual_guid, errmsg) =
lcg_util.lcg_cr3('file:/data/storage/for/MICE/Step1/01600/01604.tar','srm://srm-mice.gridpp.rl.ac.uk/castor/ads.rl.ac.uk/prod/mice/raw/MICE/Step1/01600/01604.tar','','lfn:/grid/mice/MICE/Step1/01600/01604.tar','','',0,'mice','',1,'',0,1,0,'MICE_RAW_TAPE')
Using grid catalog type: lfc
Using grid catalog : lfc.gridpp.rl.ac.uk
Checksum type: None
SE type: SRMv2
Destination SURL :
srm://srm-mice.gridpp.rl.ac.uk/castor/ads.rl.ac.uk/prod/mice/raw/MICE/Step1/01600/01604.tar
Source SRM Request Token: 10319703
Source URL: file:/data/storage/for/MICE/Step1/01600/01604.tar
File size: 127836160
VO name: mice
Destination specified:
srm://srm-mice.gridpp.rl.ac.uk/castor/ads.rl.ac.uk/prod/mice/raw/MICE/Step1/01600/01604.tar
Destination URL for copy:
gsiftp://gdss339.gridpp.rl.ac.uk:2811///castor/ads.rl.ac.uk/prod/mice/raw/MICE/Step1/01600/01604.tar
# streams: 1
106954752 bytes 41209.26 KB/sec avg 103424.00 KB/sec inst
Transfer took 3010 ms
>>> errcode
0
>>> print returncode
-1
>>> errmsg
'srm://srm-mice.gridpp.rl.ac.uk/castor/ads.rl.ac.uk/prod/mice/raw/MICE/Step1/01600/01604.tar:
Registration failed, please register it
by hand, when the problem will be solved\n'
** returncode = -1, operation not completed, LFC reg failed.
** from now on, any call to lcg-*, here lcg-lg gives "System error"
>>> (ret, guid, errmsg2)=lcg_util.lcg_lg2
('lfn:/grid/mice/MICE/Step1/01600/01604.tar',0, 'mice')
>>> ret
-1
>>> errmsg2
'[LFC][lfc_statg][] lfc.gridpp.rl.ac.uk:
/grid/mice/MICE/Step1/01600/01604.tar: System error\n'
*********** end of the test ****************************
--
___________________________________________________________________
| Dr Janusz Martyniak,
| Imperial College London tel +44 207 594 7810
| The Blackett Lab, Prince Consort Rd fax +44 207 823 8930
| LONDON SW7 2BW
___________________________________________________________________
|