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

Cray - fix to make nodes come back up in accounting if they were

previously marked down by alps.
parent 97f33359
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
*/ */
#include "basil_interface.h" #include "basil_interface.h"
#include "basil_alps.h" #include "basil_alps.h"
#include "src/common/slurm_accounting_storage.h"
#define _DEBUG 0 #define _DEBUG 0
...@@ -240,6 +241,14 @@ extern int basil_inventory(void) ...@@ -240,6 +241,14 @@ extern int basil_inventory(void)
node_ptr->node_state |= NODE_STATE_UNKNOWN; node_ptr->node_state |= NODE_STATE_UNKNOWN;
make_node_idle(node_ptr, NULL); make_node_idle(node_ptr, NULL);
if (!IS_NODE_DRAIN(node_ptr)
&& !IS_NODE_FAIL(node_ptr)) {
xfree(node_ptr->reason);
node_ptr->reason_time = 0;
node_ptr->reason_uid = NO_VAL;
clusteracct_storage_g_node_up(
acct_db_conn, node_ptr, time(NULL));
}
} }
} }
......
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