This repository is intended for documentation and sample scripts necessary for setting up elements of PanDA testing, in the context of streaming readout in the ePIC experiment.
NPPS Distributed Software CERN-based PanDA forum CERN-based technical forum - for experts
- BNL SDCC shared pool (Queue name: BNL_PanDA_1) – harvester submits pilots to this resource via the OSG CE at SCDF.
- OSG EIC shared resources (Queue name: BNL_OSG_PanDA_1) – harvester sits on top of an OSG Access Point (AP) at SDF, submitting pilots to the Open Science Pool as a normal user. Right now this OSG AP is configured to run jobs on EIC shared resources on OSG.
To get a grid certificate, different institutions may use different CAs.
- These are instructions on how to get a grid certificate from the CERN CA and CILogon: https://www.sdcc.bnl.gov/information/installing-grid-certificate
- Or, using JLab CA: https://github.com/eic/eic.github.io/blob/add-guidelines-for-production-liasions/_resources/production_liasion_guidelines.md#getting-a-certificate-and-key
python3 -m venv pclient
. pclient/bin/activate
pip install panda-client
Depending on the Python version, the user may see a deprecation note regarding the packaging (setup vs TOML).
https://panda-wms.readthedocs.io/en/latest/client/panda-client.html
- Regsiter at https://panda-iam-doma.cern.ch
- When the client is run for the first time, there will be a validation link presented to the user
Pretty good instruction to set it up:
https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html
Under WSL2, systemctl will likely not work, so instead one needs to use commands like
sudo service autofs restart
source /cvmfs/eic.opensciencegrid.org/rucio-clients/alrb_setup.sh
voms-proxy-init (no VOMS extension needed) # standard auth files: usercert.pem and userkey.pem in the .ssh folder
export RUCIO_ACCOUNT=<youraccount>
Source the "panda_setup" script in the scripts folder. The following is also required:
export PANDA_URL_SSL=https://pandaserver01.sdcc.bnl.gov:25443/server/panda
export PANDA_URL=https://pandaserver01.sdcc.bnl.gov:25443/server/panda
export PANDACACHE_URL=https://pandaserver01.sdcc.bnl.gov:25443/server/panda
export PANDAMON_URL=https://pandamon01.sdcc.bnl.gov
export PANDA_AUTH=oidc
export PANDA_AUTH_VO=EIC
export PANDA_USE_NATIVE_HTTPLIB=1
export PANDA_BEHIND_REAL_LB=1
For convenience, both components are combined in "setup_all.sh" in the same folder.
prun --exec "pwd; ls; sleep 100; echo 'Hello EIC world'> eic.txt" --outDS user.potekhin.`uuidgen` --nJobs 1 --vo wlcg --site BNL_PanDA_1 --prodSourceLabel test --workingGroup ${PANDA_AUTH_VO} --noBuild
To be able to transfer data to and from the storage allocated for PanDA tasks, the user needs their DN added to the storage ACL. This is achieved by filing a RT ticket with the facility.
Example of queries:
# list all, for one user
rucio list-dids --filter 'type=all' user.potekhin:*
# list replicas
rucio list-file-replicas user.potekhin:user.potekhin.fdeb5357-2de7-46f5-8bee-5942e9b551c0.log.8337.000001.log.tgz
Download:
rucio download user.potekhin:myfile --dir /tmp/