Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NHC Helpers vs. Unknown Slurm States #126

Open
mej opened this issue Feb 27, 2023 · 2 comments
Open

NHC Helpers vs. Unknown Slurm States #126

mej opened this issue Feb 27, 2023 · 2 comments
Assignees
Labels
dev-onboarding? Identifies Issues that might make a good starting point for new devs (quick/simple/self-contained) enhancement usability Confusing, strange, misleading, or otherwise problematic UX
Milestone

Comments

@mej
Copy link
Owner

mej commented Feb 27, 2023

*) echo "$0: Not sure how to handle node state \"$STATUS\" on $HOSTNAME" ;;

*) echo "$0: Not sure how to handle node state \"$STATUS\" on $HOSTNAME" ;;

At present, the handling of unknown node states in Slurm is somewhat undefined/unspecified, but it shouldn't be. (It just echos a message and continues with whatever comes next.) The user should be able to control whether NHC considers unknown states to be errors or if they should be ignored.

What to do? Add either NHC_IGNORE_UNKNOWN_STATE or NHC_FAIL_UNKNOWN_STATE as a new config variable (preferably one or the other, not both) to allow the helpers to online/offline a node even if the node's state isn't recognized as valid.

For a solid, production-quality, commercially supported product, Slurm is still innovating at a fairly rapid pace. And as frequently as this involves adding new node states, I think being more explicit and giving the user control over this behavior would improve usability.

@mej mej added enhancement usability Confusing, strange, misleading, or otherwise problematic UX labels Feb 27, 2023
@mej mej added this to the 1.4.4 Release milestone Feb 27, 2023
@mej mej self-assigned this Feb 27, 2023
@mej mej added the dev-onboarding? Identifies Issues that might make a good starting point for new devs (quick/simple/self-contained) label Feb 27, 2023
@basvandervlies
Copy link
Contributor

@mej I agree to add the control to the user via env variables as Slurm innovates rapidly and new states are added

@mej
Copy link
Owner Author

mej commented Mar 4, 2023

Thanks Bas! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-onboarding? Identifies Issues that might make a good starting point for new devs (quick/simple/self-contained) enhancement usability Confusing, strange, misleading, or otherwise problematic UX
Projects
None yet
Development

No branches or pull requests

2 participants