240 likes | 391 Views
The new Rfio. Castor-DPM collaboration. Giulia Taurelli CERN / IT. Castor F2F meeting – November 2006. Summary. Brief introduction of Rfio First step … analysis Prototype and tests Second step … common CVS and deployment Rpm and new tests Conclusion. Rfio. Rfio. Rfio.
E N D
The new Rfio Castor-DPM collaboration Giulia TaurelliCERN / IT Castor F2F meeting – November 2006
Summary • Brief introduction of Rfio • First step … analysis • Prototype and tests • Second step … common CVS and deployment • Rpm and new tests • Conclusion
First analysis … Status of rfio in Castor2 And DPM
Castor and Dpm Pure Castor Code Pure DPM Code COMMON CODE
Castor and Dpm DPM plugin Castor plugin RFIO_PARSE()
Castor TURL First problem …… the new TURL extension
Parameters needed by castor: • Stager host • Stager port • Stager version • Stager service class
Once upon a time … Now … • the TURL • Enviroment variables • Configuration files • Default values
New Turl …. Rfio://STAGEHOST : PORT / /castor/cern.ch/user/n/nobody/file ? svcClass=MYSVC &castorVersion=MYVERSION
New Turl …. Rfio:// STAGEHOST : PORT ?svcClass=MYSVC &castorVersion=MYVERSION &path=/castor/cern.ch/user/n/nobody/file /castor
First prototype … From rfio_plugin-0.0 to rfio_plugin-0.14 …
First prototype … • librfio.a • libcommon.a • librfio_castor2.so • librfio_dpm.so … at the end of September
Tests … • First tests was run successfully by Dpm and Castor teams. • We used a modified version of libshift to use the new rfio code. • Still a “clean deployment was needed”
Second step … • common CVS
Rpm … • rfio.rpm (Bin for the command line, librfio.so, man) • castor-dpm-common.rpm (libcastor_dpm_common.so) • rfio-devel.rpm • castor-dpm-common-devel.rpm • castor-stager-client.rpm • dpm-rfio-plugin.rpm
Rpm … • Last week we received the first version of rpm producted by dpm for the common part. • Before that we were working using a temporary librfio.so and libcommon.so produced by castor side, using the CVS code and using that we obtain the .so for the castor plugin. • Now we’re integrating all the pieces to have castor working using the new libraries.
What’s next? • Testing (new test suite ready) • Producing new castor rpm. • New rfio_copy() api • File from/to Castor to/from DPM
Conclusion • First step to the new castor refactoring • Removed duplication of code • More tests for the code available now