Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tweak for WorkQueueManager #1479

Merged
Merged
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
14 changes: 12 additions & 2 deletions docker/pypi/wmagent/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,14 @@ deploy_to_host(){
[[ -d $WMA_CONFIG_DIR/etc ]] || mkdir -p $WMA_CONFIG_DIR/etc
cp -f $WMA_DEPLOY_DIR/etc/rucio.cfg $WMA_CONFIG_DIR/etc/
# update the rucio.cfg file with the proper parameters from the secrets file
sed -i "s+RUCIO_HOST_OVERWRITE+$RUCIO_HOST+" $WMA_CONFIG_DIR/etc/rucio.cfg
sed -i "s+RUCIO_AUTH_OVERWRITE+$RUCIO_AUTH+" $WMA_CONFIG_DIR/etc/rucio.cfg
local rucio_host=$RUCIO_HOST
local rucio_auth=$RUCIO_AUTH
if [[ "$TEAMNAME" == *testbed* ]] || [[ "$TEAMNAME" == *dev* ]]; then
rucio_host=http://cms-rucio.cern.ch
rucio_auth=https://cms-rucio-auth.cern.ch
fi
sed -i "s+RUCIO_HOST_OVERWRITE+$rucio_host+" $WMA_CONFIG_DIR/etc/rucio.cfg
sed -i "s+RUCIO_AUTH_OVERWRITE+$rucio_auth+" $WMA_CONFIG_DIR/etc/rucio.cfg
echo $WMA_BUILD_ID > $wmaInitRucio
}

Expand Down Expand Up @@ -415,6 +421,10 @@ agent_tweakconfig() {
GLOBAL_DBS_URL=https://cmsweb-testbed.cern.ch/dbs/int/global/DBSReader
sed -i "s+DBSInterface.globalDBSUrl = 'https://cmsweb.cern.ch/dbs/prod/global/DBSReader'+DBSInterface.globalDBSUrl = '$GLOBAL_DBS_URL'+" $WMA_CONFIG_DIR/config.py
sed -i "s+DBSInterface.DBSUrl = 'https://cmsweb.cern.ch/dbs/prod/global/DBSReader'+DBSInterface.DBSUrl = '$GLOBAL_DBS_URL'+" $WMA_CONFIG_DIR/config.py
rucio_host=http://cms-rucio.cern.ch
rucio_auth=https://cms-rucio-auth.cern.ch
sed -i "s+WorkQueueManager.rucioUrl = .*+WorkQueueManager.rucioUrl = '$rucio_host'+" $WMA_CONFIG_DIR/config.py
sed -i "s+WorkQueueManager.rucioAuthUrl = .*+WorkQueueManager.rucioAuthUrl = '$rucio_auth'+" $WMA_CONFIG_DIR/config.py
fi

local forceSiteDown=""
Expand Down