Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

central rucio config #591

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion RucioClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
${RUCIO_HOME}/rucio.cfg
"""

import os
if not os.getenv('RUCIO_HOME'): os.environ['RUCIO_HOME']='/data/unified/WmAgentScripts/Unified/'
from rucio.client import Client


class RucioClient(Client):
"""
A wrapper class for the Rucio client.
Expand All @@ -27,7 +30,7 @@ def __init__(self, **kwargs):
'auth_host': 'https://cms-rucio-auth.cern.ch',
'auth_type': 'x509_proxy',
'ca_cert': '/etc/grid-security/certificates/',
'account': 'unified'
'account': 'unified' if os.getenv('USER')=='cmsunified' else os.getenv('USER')
}

defaultConfig.update(kwargs)
Expand Down
10 changes: 10 additions & 0 deletions Unified/etc/rucio.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[common]
[client]
rucio_host = http://cms-rucio.cern.ch
auth_host = https://cms-rucio-auth.cern.ch
auth_type = x509
ca_cert = /etc/grid-security/certificates/
client_cert = $X509_USER_CERT
client_key = $X509_USER_KEY
client_x509_proxy = $X509_USER_PROXY
request_retries = 3
1 change: 0 additions & 1 deletion credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ if [ "$1" == "create" ] ; then
else
echo "using grid proxy" $X509_USER_PROXY
fi

3 changes: 0 additions & 3 deletions postcycle-review-manual.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
BASE_DIR=/data/unified/WmAgentScripts/
HTML_DIR=/var/www/html/unified/

## export RUCIO_HOME
export RUCIO_HOME=~/.local/

lock_name=`echo $BASH_SOURCE | cut -f 1 -d "."`.lock
source $BASE_DIR/cycle_common.sh $lock_name

Expand Down
3 changes: 0 additions & 3 deletions postcycle-review-recovering.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
BASE_DIR=/data/unified/WmAgentScripts/
HTML_DIR=/var/www/html/unified/

## export RUCIO_HOME
export RUCIO_HOME=~/.local/

lock_name=`echo $BASH_SOURCE | cut -f 1 -d "."`.lock
source $BASE_DIR/cycle_common.sh $lock_name

Expand Down
3 changes: 0 additions & 3 deletions postcycle-strict.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
BASE_DIR=/data/unified/WmAgentScripts/
HTML_DIR=/var/www/html/unified/

## export RUCIO_HOME
export RUCIO_HOME=~/.local/

lock_name=`echo $BASH_SOURCE | cut -f 1 -d "."`.lock
source $BASE_DIR/cycle_common.sh $lock_name

Expand Down
3 changes: 0 additions & 3 deletions postcycle-update.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
BASE_DIR=/data/unified/WmAgentScripts/
HTML_DIR=/var/www/html/unified/

## export RUCIO_HOME
export RUCIO_HOME=~/.local/

lock_name=`echo $BASH_SOURCE | cut -f 1 -d "."`.lock
source $BASE_DIR/cycle_common.sh $lock_name

Expand Down