The Arch, OS, BootTime and SlurmdStartTime information for a node, 
reported by scontrol show node, is lost after a scontrol reconfigure.

The following patch fixes the problem for 2.2.6, although I'm not sure 
this is the best way to fix it.

Regards,
Martin

Index: src/slurmctld/read_config.c
===================================================================
RCS file: /cvsroot/slurm/slurm/src/slurmctld/read_config.c,v
retrieving revision 1.1.1.53.2.1
diff -u -r1.1.1.53.2.1 read_config.c
--- src/slurmctld/read_config.c 2 Jun 2011 20:44:42 -0000 1.1.1.53.2.1
+++ src/slurmctld/read_config.c 8 Jun 2011 21:11:17 -0000
@@ -660,9 +660,7 @@
                old_node_table_ptr    = node_record_table_ptr;
                for (i=0, node_ptr=old_node_table_ptr; 
i<node_record_count;
                     i++, node_ptr++) {
-                       xfree(node_ptr->arch);
                        xfree(node_ptr->features);
-                       xfree(node_ptr->os);
                        node_ptr->features = xstrdup(
                                node_ptr->config_ptr->feature);
                        /* Store the original configured CPU count 
somewhere
@@ -928,6 +926,8 @@
                node_ptr->real_memory   = old_node_ptr->real_memory;
                node_ptr->tmp_disk      = old_node_ptr->tmp_disk;
                node_ptr->weight        = old_node_ptr->weight;
+               node_ptr->boot_time     = old_node_ptr->boot_time;
+               node_ptr->slurmd_start_time = 
old_node_ptr->slurmd_start_time;
 
                if (node_ptr->gres_list)
                        list_destroy(node_ptr->gres_list)



Reply via email to