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
32
32
- Fix issue with slurmd daemon not being restarted correctly when a compute node is rebooted
33
33
- Fix errors causing Torque not able to locate jobs, setting server_name to fqdn on master node
34
34
- 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
35
36
36
37
2.5.1
37
38
-----
Original file line number Diff line number Diff line change 15
15
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
16
16
# limitations under the License.
17
17
18
+ # Create directory configured as SlurmdSpoolDir
19
+ directory '/var/spool/slurmd' do
20
+ user 'slurm'
21
+ group 'slurm'
22
+ mode '0700'
23
+ end
24
+
18
25
# Mount /opt/slurm over NFS
19
26
nfs_master = node [ 'cfncluster' ] [ 'cfn_master' ]
20
27
mount '/opt/slurm' do
Original file line number Diff line number Diff line change 29
29
mode '0755'
30
30
end
31
31
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
+
32
39
template '/opt/slurm/etc/slurm.conf' do
33
40
source 'slurm.conf.erb'
34
41
owner 'root'
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ SlurmdPort=6818
21
21
AuthType=auth/munge
22
22
#JobCredentialPrivateKey=
23
23
#JobCredentialPublicCertificate=
24
- StateSaveLocation=/tmp
25
- SlurmdSpoolDir=/tmp /slurmd
24
+ StateSaveLocation=/var/spool/slurm.state
25
+ SlurmdSpoolDir=/var/spool /slurmd
26
26
SwitchType=switch/none
27
27
MpiDefault=none
28
28
SlurmctldPidFile=/var/run/slurmctld.pid
You can’t perform that action at this time.
0 commit comments