slurm.conf.example: Filter out more Slurm node state flags by kcgthb · Pull Request #469 · clustershell/clustershell · GitHub
Skip to content

slurm.conf.example: Filter out more Slurm node state flags#469

Merged
thiell merged 1 commit into
clustershell:masterfrom
kcgthb:slurm_group
Jun 18, 2022
Merged

slurm.conf.example: Filter out more Slurm node state flags#469
thiell merged 1 commit into
clustershell:masterfrom
kcgthb:slurm_group

Conversation

@kcgthb

@kcgthb kcgthb commented Feb 9, 2022

Copy link
Copy Markdown
Collaborator

Slurm 21.08 introduced a new node state flag (^), and we missed a few before.
See https://slurm.schedmd.com/sinfo.html#SECTION_NODE-STATE-CODES for a complete list

@degremont

Copy link
Copy Markdown
Collaborator

Comment thread conf/groups.conf.d/slurm.conf.example Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope Slurm supports UTF-8, as it will eventually exhaust us-ascii special characters... ;)

Wondering if you should not have a different strategy, where you filter only keeping the standard characters and remove all the other ones?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't wait for emoji-based node states :)

But more seriously, I think the filtering should ideally not be based on what Slurm states strings could contain. but rather on what is considered acceptable characters in a group name, namely not those: https://github.com/cea-hpc/clustershell/blob/a1875cb78dc5f579e7053dae9bbcd848cc1c3a1f/lib/ClusterShell/NodeSet.py#L74

But I'm not sure we can get that illegal characters list in a group configuration file, can we?

@kcgthb kcgthb changed the title Filter more Slurm node state flags out slurm.conf.example: Filter out more Slurm node state flags Feb 9, 2022
* filter out the following characters from the node states returned by
  sinfo: *~#!%$@+^-

  Slurm 21.08 introduced a new node state flag (^), and we missed a few
  before. See https://slurm.schedmd.com/sinfo.html#SECTION_NODE-STATE-CODES
  for a complete list.
@kcgthb

kcgthb commented Feb 9, 2022

Copy link
Copy Markdown
Collaborator Author

@degremont degremont self-requested a review March 3, 2022 13:21

@degremont degremont left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the discussion, i'm ok with the current patch

@thiell thiell added this to the 1.8.5 milestone Mar 21, 2022
@thiell thiell merged commit 2af25d8 into clustershell:master Jun 18, 2022
@thiell thiell modified the milestones: 1.8.5, 1.9 Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants