Skip to content

Conversation

rkdarst
Copy link
Contributor

@rkdarst rkdarst commented Jun 18, 2018

  • To properly run in slurm, one is supposed to use "srun" for each job
    step (though this isn't required). dff4482 added the srun, but this
    has some side-effects, mainly (for me at least) that environment is
    actually handled the way it should be. But this broke some
    functionality that depended on environment. Since this caused
    problems, and may cause problems for others, "srun" should be made
    optional. This does that.
  • The root problem is that the batch script reads .bashrc /
    .bash_profile, but when the notebook server is run using 'srun', it
    clears these environment variables and uses only the keepvars
    setting. (Of course, this itself is a security risk and the initial
    purpose of limiting the environment).
  • To disable srun, set SlurmSpawner.req_srun=''.
  • If, upon upgrading, your environment goes crazy and you aren't
    seeing environment variables you expected, try setting this to ''.

- To properly run in slurm, one is supposed to use "srun" for each job
  step (though this isn't required).  dff4482 added the srun, but this
  has some side-effects, mainly (for me at least) that environment is
  *actually* handled the way it should be.  But this broke some
  functionality that depended on environment.  Since this caused
  problems, and may cause problems for others, "srun" should be made
  optional.  This does that.
- The root problem is that the batch script reads .bashrc /
  .bash_profile, but when the notebook server is run using 'srun', it
  clears these environment variables and uses only the keepvars
  setting.  (Of course, this itself is a security risk and the initial
  purpose of limiting the environment).
- To disable srun, set SlurmSpawner.req_srun=''.
- If, upon upgrading, your environment goes crazy and you aren't
  seeing environment variables you expected, try setting this to ''.
@minrk minrk merged commit ecc8dd8 into jupyterhub:master Jun 19, 2018
@rkdarst rkdarst deleted the srun_optional branch June 21, 2018 06:44
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

Successfully merging this pull request may close these issues.

2 participants