Skip to content

properly handle HTC-CE in reporting SyncCE #1238

@belforte

Description

@belforte

see
dmwm/CRABServer#4677

namely:
see:
https://cms-logbook.cern.ch/elog/GlideInWMS/1540
for the new HTC CE the gatekeeper has the format host-blank-host:port
need to modify the way we extract SyncCE here

txt += 'echo ">>> SyncCE discovery: " \n'
txt += 'if [ $OSG_JOB_CONTACT ]; then \n'
txt += ' echo "getting SyncCE from OSG_JOB_CONTACT" \n'
txt += ' SyncCE="$OSG_JOB_CONTACT"; \n'
txt += 'elif [ $NORDUGRID_CE ]; then \n'
txt += ' echo "getting SyncCE from NORDUGRID_CE" \n'
txt += ' SyncCE="${NORDUGRID_CE}:2811/nordugrid-GE-${QUEUE:-queue}"\n '
txt += 'elif [ $CE_ID ]; then \n'
txt += ' echo "getting SyncCE from CE_ID" \n'
txt += ' SyncCE="${CE_ID}" \n'
txt += 'elif [ "$GLIDEIN_Gatekeeper" ]; then \n' # beware: GLIDEIN_gatekeeper may have blanks
txt += ' echo "getting SyncCE from GLIDEIN_Gaekeeper" \n'
txt += ' GKtmp="`echo $GLIDEIN_Gatekeeper | sed -e s,http\'s\?\'://,,`"\n' # remove leading http[s]:// if any
txt += ' SyncCE="`echo $GKtmp | cut -d: -f1`" \n'
txt += 'else \n'
txt += ' echo "getting SyncCE glite-brokerinfo" \n'
txt += ' SyncCE="`glite-brokerinfo getCE`" \n'
txt += 'fi \n'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions