Skip to content

fix lsetup env pollution

lsetup breaks things like this:

checkSRR.sh site=CA-VICTORIA-WESTGRID-T2



  Tier: 2 Site: CA-VICTORIA-WESTGRID-T2

   Service: CA-VICTORIA-WESTGRID-T2_SE_1
   RR URL: https://dcache-door.rcs.uvic.ca:3880/api/v1/srr
    Traceback (most recent call last):
  File "/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/emi/24.08.14-snapshot-x86_64-el9/usr/bin/pathPriority/gfal-copy", line 30, in <module>
    from gfal2_util.shell import Gfal2Shell
  File "/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/emi/24.08.14-snapshot-x86_64-el9/usr/lib/python3.9/site-packages/gfal2_util/shell.py", line 23, in <module>
    from gfal2_util import base
  File "/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/emi/24.08.14-snapshot-x86_64-el9/usr/lib/python3.9/site-packages/gfal2_util/base.py", line 35, in <module>
    import gfal2
SystemError: initialization of gfal2 raised unreported exception

   ---> gfal-copy Failed: https://dcache-door.rcs.uvic.ca:3880/api/v1/srr
     DDM endpoint: CA-VICTORIA-WESTGRID-T2_DATADISK
       TPC: WEBDAV:/atlasdatadisk/rucio/
     DDM endpoint: CA-VICTORIA-WESTGRID-T2_LOCALGROUPDISK
       TPC: WEBDAV:/atlaslocalgroupdisk/rucio/
     DDM endpoint: CA-VICTORIA-WESTGRID-T2_SCRATCHDISK
       TPC: WEBDAV:/atlasscratchdisk/rucio/

This contains the env pollution to a separate shell session.

Merge request reports

Loading