Commit cc4dc6ac authored by Moe Jette's avatar Moe Jette
Browse files

select/cray: do not override the node reason field

With the current configuration, setting DownNodes in slurm.conf was not possible,
since node_ptr->reason gets overwritten by basil_get_initial_state().

The patch updates setting the initial state so that
 * initial 'reason' fields remain untouched;
 * a new 'reason' is set only if 
   - the node is not already recognized as down or
   - no reason has been set so far;
 * it frees any previously set 'reason' if the node is allocated or idle.

This code has been tested to work while we were waiting for a missing replacement
blade (marked as 'DownNodes' in slurm.conf).
parent dd03bb07
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment