Skip to content

Commit

Permalink
Do not print warning messages for reserved nodes
Browse files Browse the repository at this point in the history
In the log there was an entry for reserved instances saying:
```
WARNING - Node state check: static node without nodeaddr set, node queue1-st-p5-1(queue1-st-p5-1),
node state IDLE+CLOUD+MAINTENANCE+POWERED_DOWN+RESERVED
```

I'm removing the print for the reserved nodes.

Signed-off-by: Enrico Usai <[email protected]>
  • Loading branch information
enrico-usai committed Nov 8, 2023
1 parent c075f52 commit a7099ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/slurm_plugin/clustermgtd.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,7 @@ def _find_unhealthy_slurm_nodes(self, slurm_nodes):
if not node.is_healthy(
consider_drain_as_unhealthy=self._config.terminate_drain_nodes,
consider_down_as_unhealthy=self._config.terminate_down_nodes,
log_warn_if_unhealthy=node.name not in reserved_nodenames,
):
if not self._config.disable_capacity_blocks_management and node.name in reserved_nodenames:
# do not consider as unhealthy the nodes reserved for capacity blocks
Expand Down

0 comments on commit a7099ee

Please sign in to comment.