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

Job Launchpad may need a protection against LFN sandbox #723

Open
iueda opened this issue Jan 26, 2023 · 0 comments
Open

Job Launchpad may need a protection against LFN sandbox #723

iueda opened this issue Jan 26, 2023 · 0 comments

Comments

@iueda
Copy link

iueda commented Jan 26, 2023

We had a case where

  1. A user used the DIRAC JobLaunchpad WebApp specifying a LFN
  2. The "LFN" specified was not a file, but a directory
  3. The job started downloading files under the directory, filling up the WN disk
  4. The site found the problem and closed the WN, then contacted us

JobLaunchpadHandler simply adds the specified LFNs to JDL

sndBox = 'InputSandbox = {"' + '","'.join(fileNameList + lfns) + '"};'

JobWrapper simply passes the sandbox files with "LFN:" to DMS getFile
https://github.com/DIRACGrid/DIRAC/blob/fdfd3a4802a5543369d307cbbb3c0781f2f14219/src/DIRAC/WorkloadManagementSystem/JobWrapper/JobWrapper.py#L1127

Can there be some kind of protection to avoid this?
Preferably in JobLaunchpad, with the number of files, or with the total volume?
If that is difficult in the WebApp, then in JobWrapper where it can tell the disk space and the volume of the sandbox?

@fstagni fstagni transferred this issue from DIRACGrid/DIRAC Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant