Skip to content

Slurm accounting should not be case sensitive#3159

Open
Timothy-Wang-Arctos wants to merge 1 commit intoaws:developfrom
Timothy-Wang-Arctos:patch-1
Open

Slurm accounting should not be case sensitive#3159
Timothy-Wang-Arctos wants to merge 1 commit intoaws:developfrom
Timothy-Wang-Arctos:patch-1

Conversation

@Timothy-Wang-Arctos
Copy link
Copy Markdown

Description of changes

Prior to 3.15.0 the slurm accounting bootstrap was not case sensitive. The split from #3132 made it case sensitive causing the bootstrap to fail when the stack has capital letters in it.

Bootstrap would fail with

"Mixlib::ShellOut::ShellCommandFailed: execute[wait for cluster registration] (aws-parallelcluster-slurm::bootstrap_slurm_accounting line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'"

with the change to the grep command the return is the expected [0]

/opt/slurm/bin/sacctmgr show clusters -Pn cluster=AL2023-Arctos format=cluster | grep -Fx AL2023-Arctos echo $?
1

/opt/slurm/bin/sacctmgr show clusters -Pn cluster=AL2023-Arctos format=cluster | grep -Fxi AL2023-Arctos al2023-arctos
echo $?
0

Tests

attempting to deploy with a stackname with uppercase letters caused fail. Rerunning with all lowercase stackname was successful

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Prior to 3.15.0 the slurm accounting bootstrap was not case sensitive. The split from aws#3132 made it case sensitive causing the bootstrap to fail when the stack has capital letters in it. 

Bootstrap would fail with 

"Mixlib::ShellOut::ShellCommandFailed: execute[wait for cluster registration] (aws-parallelcluster-slurm::bootstrap_slurm_accounting line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'"

with the change to the grep command the return is the expected [0]

/opt/slurm/bin/sacctmgr show clusters -Pn cluster=AL2023-Arctos format=cluster | grep -Fx AL2023-Arctos
echo $?
1

/opt/slurm/bin/sacctmgr show clusters -Pn cluster=AL2023-Arctos format=cluster | grep -Fxi AL2023-Arctos
al2023-arctos
echo $?
0
@Timothy-Wang-Arctos Timothy-Wang-Arctos requested review from a team as code owners April 9, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant