Skip to content

Commit

Permalink
Use Slurm install dir variable in update_slurm_database_password.sh
Browse files Browse the repository at this point in the history
Fix small bug that would make the configuration of Slurm Accounting
fail in case the Slurm install directory is not set as default
(`/opt/slurm`).

Signed-off-by: Jacopo De Amicis <[email protected]>
  • Loading branch information
jdeamicis committed Dec 6, 2023
1 parent c64cc45 commit e2debb1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ This file is used to list changes made in each version of the AWS ParallelCluste
**BUG FIXES**
- Fix inconsistent scaling configuration after cluster update rollback when modifying the list of instance types declared in the Compute Resources.
- Fix users SSH keys generation when switching users without root privilege in clusters integrated with an external LDAP server through cluster configuration files.
- Fix disabling Slurm power save mode when setting ScaledownIdletime = -1
- Fix disabling Slurm power save mode when setting ScaledownIdletime = -1
- Fix hard-coded path to Slurm installation dir in `update_slurm_database_password.sh` script for Slurm Accounting.

3.7.2
------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
mode '0700'
variables(
secret_arn: lazy { node['cluster']['config'].dig(:Scheduling, :SlurmSettings, :Database, :PasswordSecretArn) },
region: node['cluster']['region']
region: node['cluster']['region'],
slurm_install_dir: node['cluster']['slurm']['install_dir']
)
sensitive true
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

set -e

SLURMDBD_CONFIG_FILE="/opt/slurm/etc/slurm_parallelcluster_slurmdbd.conf"
SLURMDBD_CONFIG_FILE="<%= @slurm_install_dir %>/etc/slurm_parallelcluster_slurmdbd.conf"
SLURMDBD_PROPERTY="StoragePass"
SECRET_ARN="<%= @secret_arn %>"
REGION="<%= @region %>"
Expand Down

0 comments on commit e2debb1

Please sign in to comment.