Skip to content
Snippets Groups Projects
Commit f703c9de authored by Moe Jette's avatar Moe Jette
Browse files

Fix the logging of partition MinNodes and MaxNodes configuration changes

with respect to BlueGene systems. Formerly logged bogus inconsistencies.
parent bd870a1f
No related branches found
No related tags found
No related merge requests found
......@@ -1087,10 +1087,14 @@ static int _restore_part_state(List old_part_list, char *old_def_part_name)
else
part_ptr->flags &= (~PART_FLAG_ROOT_ONLY);
}
if (part_ptr->max_nodes != old_part_ptr->max_nodes) {
if (part_ptr->max_nodes_orig !=
old_part_ptr->max_nodes_orig) {
error("Partition %s MaxNodes differs from "
"slurm.conf", part_ptr->name);
part_ptr->max_nodes = old_part_ptr->max_nodes;
"slurm.conf (%u != %u)", part_ptr->name,
part_ptr->max_nodes_orig,
old_part_ptr->max_nodes_orig);
part_ptr->max_nodes = old_part_ptr->
max_nodes_orig;
part_ptr->max_nodes_orig = old_part_ptr->
max_nodes_orig;
}
......@@ -1104,10 +1108,14 @@ static int _restore_part_state(List old_part_list, char *old_def_part_name)
"slurm.conf", part_ptr->name);
part_ptr->max_time = old_part_ptr->max_time;
}
if (part_ptr->min_nodes != old_part_ptr->min_nodes) {
if (part_ptr->min_nodes_orig !=
old_part_ptr->min_nodes_orig) {
error("Partition %s MinNodes differs from "
"slurm.conf", part_ptr->name);
part_ptr->min_nodes = old_part_ptr->min_nodes;
"slurm.conf (%u != %u)", part_ptr->name,
part_ptr->min_nodes_orig,
old_part_ptr->min_nodes_orig);
part_ptr->min_nodes = old_part_ptr->
min_nodes_orig;
part_ptr->min_nodes_orig = old_part_ptr->
min_nodes_orig;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment