forked from dcbradley/parrot_glidein_wrapper
-
Notifications
You must be signed in to change notification settings - Fork 4
/
parrot_cfg_cern
54 lines (40 loc) · 3.04 KB
/
parrot_cfg_cern
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# CVMFS repository to use to test site web proxy
CVMFS_TEST_REPO="http://cvmfs-stratum-one.cern.ch/opt/cms"
# path to test to validate cvmfs access
CVMFS_TEST_PATH=/cvmfs/cms.cern.ch/cmsset_default.sh
# central proxies to use for CVMFS if the local site proxy cannot be used
CVMFS_PROXIES="http://cmsbproxy.fnal.gov:3128|http://cmsbproxy01.fnal.gov:3128"
CVMFS_STRATUM1="http://cvmfs.fnal.gov/opt/cms;http://cvmfs-stratum-one.cern.ch/opt/cms;http://cernvmfs.gridpp.rl.ac.uk/opt/cms;http://cvmfs.racf.bnl.gov/opt/cms"
# cms.cern.ch is in the default repositories supported by parrot
#PARROT_CVMFS_REPO="<default-repositories>:quota_limit=4000,quota_threshold=2000"
# Allow parrot wrapper to try to use locally mounted cvmfs instead of routing access through parrot
#PARROT_CVMFS_REPO="<default-repositories>:try_local_filesystem,quota_limit=4000,quota_threshold=2000"
# AT: Workaround for parrot bug with wildcard matching
#PARROT_CVMFS_REPO="cms.cern.ch:quota_limit=4000,quota_threshold=2000,url=http://cvmfs.fnal.gov/opt/cms;http://cvmfs-stratum-one.cern.ch/opt/cms;http://cernvmfs.gridpp.rl.ac.uk/opt/cms;http://cvmfs.racf.bnl.gov/opt/cms"
# AT: (03/13/2015) - per Stefan's request, remove some options and specify the path to the public key
#PARROT_CVMFS_REPO="cms.cern.ch:pubkey=/project/projectdirs/cmsnersc/parrot/cern.ch.pub,url=http://cvmfs.fnal.gov/opt/cms;http://cvmfs-stratum-one.cern.ch/opt/cms;http://cernvmfs.gridpp.rl.ac.uk/opt/cms;http://cvmfs.racf.bnl.gov/opt/cms"
# AT: (03/20/2015) More site specific mods requested by Stefan... NOTE: THIS IS NOT ACCEPTABLE FOR PRODUCTION
# (03/20/2015) and again after hours, fixing a mistake
#
# Slight difference between test.sh and glidein_startup.sh
# test.sh puts everything in the var/ subdirectory
pubkey="$PWD/var/GLIDEIN_PARROT/cern.ch.pub"
if [ ! -d "var" ]; then
pubkey="$PWD/GLIDEIN_PARROT/cern.ch.pub"
fi
# Only create a temp directory for grid. By default, the same auto-generated cachedir is used for all repos; this causes lock issues.
# Bug not yet reported upstream.
temp_dir=`grep -i "^GLIDEIN_PARROT_TMP " $glidein_config | awk '{print $2}'`
alien_cache=`grep -i "^GLIDEIN_PARROT_ALIEN " $glidein_config | awk '{print $2}'`
PARROT_CVMFS_REPO="cms.cern.ch:timeout=3600,timeout_direct=3600,pubkey=${pubkey},url=${CVMFS_STRATUM1},proxies=${CVMFS_PROXIES} grid.cern.ch:timeout=3600,timeout_direct=3600,pubkey=${pubkey},url=http://cvmfs-stratum-one.cern.ch/opt/grid,proxies=${CVMFS_PROXIES}"
PARROT_CVMFS_CONFIG="cache_directory=${alien_cache},alien_cache"
#GLIDEIN_PARROT_OPTIONS=" --debug=notice --debug=cache --debug=cvmfs "
# If true and parrot can't access CVMFS_TEST_PATH, abort glidein startup.
GlideinRequiresParrotCVMFS=false
# If true and test of Frontier squid fails, abort glidein startup.
GlideinRequiresCMSFrontier=true
# If true, all jobs are wrapped with parrot, regardless of job's RequireCVMFS attribute.
GlideinAlwaysUseParrotWrapper=false
# If true, use Parrot's identity boxing feature to provide privilege separation
# between the job and the pilot; defaults to true
GlideinUseParrotIDBox=false