Skip to content

Commit

Permalink
use all possible redirectors
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jan 24, 2018
1 parent b92f1d5 commit 06613a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion das-utils/copy-ib-lfn-to-eos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ eos_file="${eos_base}${lfn}"
eos_dir=$(dirname ${eos_base}/${lfn})
${eos_cmd} mkdir -p ${eos_dir}
${eos_cmd} rm ${eos_file}.tmp >/dev/null 2>&1 || true
xrdcp --force --posc -v ${redirector}/${lfn} "${xrd_eos_base}/${eos_file}?eos.atomic=1"
ERR=0
for rd in ${redirector} $(echo ${redirector} root://cms-xrd-global.cern.ch root://cmsxrootd.fnal.gov root://eoscms.cern.ch root://xrootd-cms.infn.it | tr ' ' '\n' | sort | uniq | grep 'root:' | grep -v "^${redirector}") ; do
ERR=0
xrdcp --force --posc -v ${rd}/${lfn} "${xrd_eos_base}/${eos_file}?eos.atomic=1" || ERR=1
if [ $ERR -eq 0 ] ; then break ; fi
done
if [ $ERR -gt 0 ] ; then exit $ERR ; fi
${eos_cmd} stat -f ${eos_file}
echo ALL_OK
1 change: 1 addition & 0 deletions new-release-cycle
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def config_map_branches(new_br, dev_br, config_file):
new_ibs = []
new_config = []
for l in [ l.strip() for l in open(config_file).readlines()]:
if "RELEASE_QUEUE="+new_cyc in l: continue
l = l.replace("RELEASE_BRANCH=master;","RELEASE_BRANCH=%s;" % dev_br)
new_config.append(l)
if ("RELEASE_BRANCH="+dev_cyc in l) and (not 'DISABLED=' in l):
Expand Down

0 comments on commit 06613a5

Please sign in to comment.