Skip to content
Snippets Groups Projects
Commit 6b08e17f authored by Danny Auble's avatar Danny Auble
Browse files

fix for bg naming removed from plugin and smap

parent 17670407
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ documents those changes that are of interest to users and admins. ...@@ -20,6 +20,7 @@ documents those changes that are of interest to users and admins.
-- JobAcct plugin renamed from "log" to "linux" in preparation for support of -- JobAcct plugin renamed from "log" to "linux" in preparation for support of
new system types. new system types.
WARNING: "JobAcctType=jobacct/log" is no longer supported. WARNING: "JobAcctType=jobacct/log" is no longer supported.
-- removed vestigal 'bg' names from bluegene plugin and smap
* Changes in SLURM 1.1.0-pre2 * Changes in SLURM 1.1.0-pre2
============================= =============================
......
...@@ -125,8 +125,12 @@ static void _configure_node_down(rm_bp_id_t bp_id, rm_BGL_t *bg) ...@@ -125,8 +125,12 @@ static void _configure_node_down(rm_bp_id_t bp_id, rm_BGL_t *bg)
error("rm_get_data(RM_BPLoc): %s", bg_err_str(rc)); error("rm_get_data(RM_BPLoc): %s", bg_err_str(rc));
continue; continue;
} }
snprintf(bg_down_node, sizeof(bg_down_node), "bg%d%d%d", slurm_conf_lock();
snprintf(bg_down_node, sizeof(bg_down_node), "%s%d%d%d",
slurmctld_conf.node_prefix,
bp_loc.X, bp_loc.Y, bp_loc.Z); bp_loc.X, bp_loc.Y, bp_loc.Z);
slurm_conf_unlock();
if (node_already_down(bg_down_node)) if (node_already_down(bg_down_node))
break; break;
...@@ -213,9 +217,12 @@ static void _test_down_nodes(rm_BGL_t *bg) ...@@ -213,9 +217,12 @@ static void _test_down_nodes(rm_BGL_t *bg)
continue; continue;
} }
snprintf(bg_down_node, sizeof(bg_down_node), "bg%d%d%d", slurm_conf_lock();
snprintf(bg_down_node, sizeof(bg_down_node), "%s%d%d%d",
slurmctld_conf.node_prefix,
bp_loc.X, bp_loc.Y, bp_loc.Z); bp_loc.X, bp_loc.Y, bp_loc.Z);
slurm_conf_unlock();
if (node_already_down(bg_down_node)) if (node_already_down(bg_down_node))
continue; continue;
......
...@@ -252,6 +252,7 @@ static int _init_all_slurm_conf(void) ...@@ -252,6 +252,7 @@ static int _init_all_slurm_conf(void)
char *conf_name = xstrdup(slurmctld_conf.slurm_conf); char *conf_name = xstrdup(slurmctld_conf.slurm_conf);
slurm_conf_reinit(conf_name); slurm_conf_reinit(conf_name);
xfree(conf_name);
if ((error_code = init_node_conf())) if ((error_code = init_node_conf()))
return error_code; return error_code;
......
...@@ -433,9 +433,8 @@ static int _resolve(char *com) ...@@ -433,9 +433,8 @@ static int _resolve(char *com)
if(coord) if(coord)
sprintf(error_string, sprintf(error_string,
"%s resolves to X=%d Y=%d Z=%d or bg%d%d%d\n", "%s resolves to X=%d Y=%d Z=%d\n",
com+i,coord[X],coord[Y],coord[Z], com+i,coord[X],coord[Y],coord[Z]);
coord[X],coord[Y],coord[Z]);
else else
sprintf(error_string, "%s has no resolve.\n", sprintf(error_string, "%s has no resolve.\n",
com+i); com+i);
......
...@@ -73,7 +73,7 @@ int main(int argc, char *argv[]) ...@@ -73,7 +73,7 @@ int main(int argc, char *argv[])
int mapset = 0; int mapset = 0;
#endif #endif
//char *name; //char *name;
log_init(xbasename(argv[0]), opts, SYSLOG_FACILITY_DAEMON, NULL); log_init(xbasename(argv[0]), opts, SYSLOG_FACILITY_DAEMON, NULL);
parse_command_line(argc, argv); parse_command_line(argc, argv);
while (slurm_load_node((time_t) NULL, &new_node_ptr, SHOW_ALL)) { while (slurm_load_node((time_t) NULL, &new_node_ptr, SHOW_ALL)) {
...@@ -88,10 +88,8 @@ int main(int argc, char *argv[]) ...@@ -88,10 +88,8 @@ int main(int argc, char *argv[])
sleep(10); /* keep trying to reconnect */ sleep(10); /* keep trying to reconnect */
} }
printf("starting\n");
ba_init(new_node_ptr); ba_init(new_node_ptr);
printf("done hey\n");
if(params.partition) { if(params.partition) {
#ifdef HAVE_BG_FILES #ifdef HAVE_BG_FILES
...@@ -127,9 +125,10 @@ int main(int argc, char *argv[]) ...@@ -127,9 +125,10 @@ int main(int argc, char *argv[])
} else { } else {
int *coord = find_bp_loc(params.partition); int *coord = find_bp_loc(params.partition);
if(coord) if(coord)
printf("%s resolves to X=%d Y=%d Z=%d or bg%d%d%d\n", printf("%s resolves to X=%d Y=%d Z=%d\n",
params.partition, params.partition,
coord[X], coord[Y], coord[Z], coord[X], coord[Y], coord[Z],
slurmctld_conf.node_prefix,
coord[X], coord[Y], coord[Z]); coord[X], coord[Y], coord[Z]);
else else
printf("%s has no resolve.\n", printf("%s has no resolve.\n",
......
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