From eb97c55be4b54f434d8bf496a9fed9909f16b6c9 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Wed, 19 May 2004 21:50:09 +0000 Subject: [PATCH] Fix handling of node state change requests being processed prior to node registration (in particular after changing state from UNKNOWN to DRAINING, an inactive node was not registering to reset its state to DRAINED) --- NEWS | 2 ++ src/slurmctld/ping_nodes.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 342a67fb3c5..6c140036c64 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,8 @@ documents those changes that are of interest to users and admins. -- Modify security_2_2 test to function with release 0.3 -- Fix broken rpm build when libslurm not already installed. -- New slurmd option -M to mlock() slurmd process into memory. + -- Fix node processing if state change requested via scontrol + prior to initial node registration. * Changes in SLURM 0.3.0 ======================== diff --git a/src/slurmctld/ping_nodes.c b/src/slurmctld/ping_nodes.c index 53f526dc439..8ab7d325363 100644 --- a/src/slurmctld/ping_nodes.c +++ b/src/slurmctld/ping_nodes.c @@ -174,8 +174,10 @@ void ping_nodes (void) continue; } - if (node_ptr->last_response == (time_t)0) + if (node_ptr->last_response == (time_t)0) { + no_resp_flag = 1; node_ptr->last_response = slurmctld_conf.last_update; + } /* Request a node registration if its state is UNKNOWN or * on a periodic basis (about every MAX_REG_FREQUENCY ping, -- GitLab