File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste
3232- Fix issue with slurmd daemon not being restarted correctly when a compute node is rebooted
3333- Fix errors causing Torque not able to locate jobs, setting server_name to fqdn on master node
3434- Fix Torque issue that was limiting the max number of running jobs to the max size of the cluster
35+ - Slurm: configured StateSaveLocation and SlurmdSpoolDir directories to be writable only to slurm user
3536
36372.5.1
3738-----
Original file line number Diff line number Diff line change 1515# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
1616# limitations under the License.
1717
18+ # Create directory configured as SlurmdSpoolDir
19+ directory '/var/spool/slurmd' do
20+ user 'slurm'
21+ group 'slurm'
22+ mode '0700'
23+ end
24+
1825# Mount /opt/slurm over NFS
1926nfs_master = node [ 'cfncluster' ] [ 'cfn_master' ]
2027mount '/opt/slurm' do
Original file line number Diff line number Diff line change 2929 mode '0755'
3030end
3131
32+ # Create directory configured as StateSaveLocation
33+ directory '/var/spool/slurm.state' do
34+ user 'slurm'
35+ group 'slurm'
36+ mode '0700'
37+ end
38+
3239template '/opt/slurm/etc/slurm.conf' do
3340 source 'slurm.conf.erb'
3441 owner 'root'
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ SlurmdPort=6818
2121AuthType=auth/munge
2222#JobCredentialPrivateKey=
2323#JobCredentialPublicCertificate=
24- StateSaveLocation=/tmp
25- SlurmdSpoolDir=/tmp /slurmd
24+ StateSaveLocation=/var/spool/slurm.state
25+ SlurmdSpoolDir=/var/spool /slurmd
2626SwitchType=switch/none
2727MpiDefault=none
2828SlurmctldPidFile=/var/run/slurmctld.pid
You can’t perform that action at this time.
0 commit comments