I have a notebook in SWAN that is accessing root files stored in my CERNBOX, via xrootd.
I shared this notebook with some students for them to modify so they are running in their SWAN area, and I gave them access to those files via CERNBOX share files. However, they cannot access them. They are getting this error:
This is a weird setup. Why can’t you just access the files directly via eos? SWAN has direct /eos access. Then you can just share the data directory with your group via cernbox.
It seems to be an issue with the environment… If I try in https://swan-k8s.cern.ch/ (as opposed to swanXXX.cern.ch) it seems to work.
In swanxxx.cern.ch we don’t have the kerberos ticket exposed inside the users’ containers, but it would work if you kinit before executing your code (you can even append a kinit [1] to the top of your notebook, if it makes it easier).
Â
Â
[1]
import getpass
import os, sys, re
print("Please enter your password")
ret = os.system("echo \"%s\" | kinit" % getpass.getpass())
if ret == 0: print("Credentials created successfully")
else: raise Exception('Error creating credentials, return code: %s\n' % ret)