SAM CMS Remote Stageout test
Full name:
org.cms.WN-remotestageout
Maintainer: Nicolò Magini
Overview
Verifies that it is possible to stage a file to a remote storage element via lcg-cp using WMCore libraries.
Checks
This script checks:
-
that the CMS software directory is defined, existing and readable
-
that the CMS software initialisation script (cmsset_default.sh
) exists and can be sourced without errors
-
that Python 2.6 can be found
-
that the stage out via lcg-cp succeeds to at least one destination site
-
that the cleanup of the test file succeeds
Stage out logic
- Test the site configuration
- test that CMS_PATH exists in the environment
- test that can load the site local configuration
- test that the stage out command srmv2-lcg (corresponding to the lcg-cp command) is defined
- Translate
/store/user/sam/SAM/RemoteStageOutTest-pid-date
into a PFN using the appropriate PFN prefix for the chosen destination SE
- This target directory should be writable for the
/cms/Role=lcgadmin
role
- FIXME: Currently, the LFN is temporarily in the
/store/user/magini
directory, pending configuration of /store/user/sam
on the destination SEs
- The LFN2PFN conversion is hard-coded in the test code, so that we don't need to query the PhEDEx datasvc. We rely on the fact that the destination sites will not change their /store/user path without warning us.
- Test the remote stage out
- test that a stage out implementation can be retrieved
- test that the stage out can be performed normally to at least one of three sites
- The current destination sites/endpoints are:
- T2_CH_CERN: srm-eos.cms.cern.ch
- T2_IT_Pisa: stormfe1.pi.infn.it
- T2_US_Nebraska: dcache07.unl.edu
- The order in which the destination endpoints are selected for stageout is random. As soon as stageout to one endpoint succeeds, the test returns OK.
- Test that the test file can be cleaned up from the remote SE
- test that a stage out implementation can be retrieved
- test that the file removal succeeds
Source code
Troubleshooting
Responsible:
NicoloMagini