Closed vitodb closed 7 months ago
So, I'm thinking maybe the token with storage.create doesn't let us make directories under the /fermigrid/jobsub/jobs area? And even then, we probably need to exempt that from the token weakening... (i.e. act like we got "--need-storage-modify /fermigrid/jobsub/jobs")
The fermilab Analysis token, for example, does have the following scope:
storage.create:/fermigrid/jobsub/jobs
Does gfal-mkdir
, or the version present on interactive nodes, default to proxy authentication or tokens?
Hm... it will use tokens, but I think it needs BEARER_TOKEN set, as opposed to just BEARER_TOKEN_FILE... And that's our problem. If I set BEARER_TOKEN to the contents of my token file, the submission works. So we just need to do that in fake_ifdh.py...
When submitting jobs with token only using:
in the submission log we see
the token scope is supposed to have write access for the web sandbox
storage.create:/fermigrid/jobsub/jobs
so the error seems to imply the code creating the web sandbox is using proxy authentication. As result the job runs and is able to upload its log, I guess this time using tokens for auth, but in the web sandbox we are missing:If the submission doesn't use
--auth-methods token
all is working as expected, the web sandbox is created at job submission time and all expected files are present in there.