<div dir="ltr"><div>Hi,</div><div><br></div><div>We've recently upgraded to Slurm 17.11.7 from 16.05.8.</div><div><br></div><div>We noticed that the environment variable, HOSTNAME, does not refelct the compute node with an interactive job using the salloc/srun command.</div><div>Instead it still points to the submit hostname although .SLURMD_NODENAME reflects the correct  compute node name.</div><div><br></div><div>$ salloc --immediate -p manycore --constraint=xeon64c --exclusive -O -N 1 --qos=high  srun --pty bash -i</div><div>salloc: Granted job allocation 2291315</div><div>salloc: Waiting for resource configuration</div><div>salloc: Nodes mc-1 are ready for job</div><div><br></div><div>[user1@mc-1 test]$ echo $HOSTNAME</div><div>login-3</div><div><br></div><div>[user1@mc-1 test]$ echo $SLURMD_NODENAME</div><div>nc-1</div><div><br></div><div>Is this a bug introduced with 17.11.x version or something that has been there before?  According to our user, it used to point the compute node name.</div><div><br></div><div>BTW, if I test the environment variable with a batch job, HOSTNAME environment variable reflects the compute node name correctly.</div><div><br></div><div>Thanks,</div><div>- Chansup</div></div>