-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add ability to sanitize job name in PBSPro and Grid Engine adapter #172
Comments
I disagree that Batch Connect applications on the other hand have always had their job names produced programmatically, so there is no danger of creating user-confusion. I do agree that we should still add this as a feature flag so that sites who do not need this change do not experience it. |
We don't currently support the user setting the name of the job. In Job Composer, the "Name" is not sent as an argument. If the user sets the job name in the job script, such as https://github.com/OSC/osc-ood-config/blob/c2571a8b2c1d73c7817d6fa9b97916e6946c9ec1/ondemand.osc.edu/apps/myjobs/templates/Basic_AMBER_Job_Owens/basic_amber.sh#L1, that would be used by the Job Composer, bypassing the suggested change to ood_core. In the future if we start making it easy for users to change the actual job name through the interface, is your concern they use illegal characters and then we allow that to work because we sanitize that string, where as if they use that directly using qsub it wouldn't work the same way? |
FWIW @viktoriaas indicated desire for this replacement to occur everywhere in OnDemand. |
Yes, but also the proposed mutations to the job name are overkill. Imagining a future where OnDemand has a more capable Job Composer I can imagine users who start a job with a name of |
Is there anywhere else in OnDemand where invalid job names may be constructed? |
Instead why not just stop using slashes in names? Yes it's a burden on us to be compliant with multiple clusters, but it gives uses a relatively straightforward experience and admins don't run into gotcha's with feature flags that are actually necessary. |
It is a change in behavior/interface. The job name is the only mechanism we currently have to flag a job as coming from a specific app in OnDemand, besides inspecting the submit host and script contents itself. SciApps may be using it now for metrics, we have used it in the past, other sites might be using it though we don't know about that. It is the simplest solution though... |
After IRL discussion it was decided to go ahead with this as an option to give sites a lever to throw if they notice that they are having problems. |
The Grid Engine job name spec circa 2007 from http://gridscheduler.sourceforge.net/htmlman/htmlman1/sge_types.html?pathrev=V62u5_TAG:
|
PBSPro's job name spec from https://www.pbsworks.com/pdfs/PBSUserGuide18.2.pdf
|
Regex for legal GE job names: PBSPro: using negative look ahead to match all ASCII except for a character blacklist. |
An |
@ericfranz |
We opt for a simpler solution for now in #183. For sites that have a problem with this they can set |
In some deployments of Grid Engine, special characters such as slash are not allowed in job names. This causes problems when submitting interactive apps, where we use slashes in the job name.
See OSC/ondemand#341 and in particular OSC/ondemand#341 (comment).
Suggested solution OSC/ondemand#341 (comment)
The text was updated successfully, but these errors were encountered: