Skip to content

Commit b96372a

Browse files
authored
Revert "Prevent mountpoint collision between ephemeral drive and shared drives (#1589)" (#1593)
This reverts commit fe7d847.
1 parent fe7d847 commit b96372a

File tree

2 files changed

+17
-40
lines changed
  • cookbooks
    • aws-parallelcluster-config/recipes
    • aws-parallelcluster-test/recipes

2 files changed

+17
-40
lines changed

cookbooks/aws-parallelcluster-config/recipes/base.rb

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,16 @@
2727

2828
include_recipe 'aws-parallelcluster-config::nfs' unless virtualized?
2929

30-
# Mount the ephemeral drive unless there is a mountpoint collision with shared drives
31-
shared_dir_array = node['cluster']['ebs_shared_dirs'].split(',') + \
32-
node['cluster']['efs_shared_dirs'].split(',') + \
33-
node['cluster']['fsx_shared_dirs'].split(',') + \
34-
[ node['cluster']['raid_shared_dir'] ]
35-
unless shared_dir_array.include? node['cluster']['ephemeral_dir']
36-
service "setup-ephemeral" do
37-
supports restart: false
38-
action :enable
39-
end
30+
service "setup-ephemeral" do
31+
supports restart: false
32+
action :enable
33+
end
4034

41-
# Execution timeout 3600 seconds
42-
unless virtualized?
43-
execute "Setup of ephemeral drives" do
44-
user "root"
45-
command "/usr/local/sbin/setup-ephemeral-drives.sh"
46-
end
35+
# Execution timeout 3600 seconds
36+
unless virtualized?
37+
execute "Setup of ephemeral drivers" do
38+
user "root"
39+
command "/usr/local/sbin/setup-ephemeral-drives.sh"
4740
end
4841
end
4942

cookbooks/aws-parallelcluster-test/recipes/tests.rb

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -334,25 +334,9 @@ module load intelmpi && mpirun --help | grep '#{node['cluster']['intelmpi']['kit
334334
###################
335335
# instance store
336336
###################
337-
338-
ebs_shared_dirs_array = node['cluster']['ebs_shared_dirs'].split(',')
339-
340-
if ebs_shared_dirs_array.include? node['cluster']['ephemeral_dir']
341-
# In this case the ephemeral storage should not be mounted because the mountpoint
342-
# clashes with the mountpoint coming from t
343-
bash 'test instance store mountpoint collision' do
344-
cwd Chef::Config[:file_cache_path]
345-
user node['cluster']['cluster_user']
346-
code <<-COLLISION
347-
systemctl show setup-ephemeral.service -p ActiveState | grep "=inactive"
348-
systemctl show setup-ephemeral.service -p UnitFileState | grep "=disabled"
349-
COLLISION
350-
end
351-
else
352-
bash 'test instance store' do
353-
cwd Chef::Config[:file_cache_path]
354-
user node['cluster']['cluster_user']
355-
code <<-EPHEMERAL
337+
bash 'test instance store' do
338+
cwd Chef::Config[:file_cache_path]
339+
code <<-EPHEMERAL
356340
set -xe
357341
EPHEMERAL_DIR="#{node['cluster']['ephemeral_dir']}"
358342
@@ -405,11 +389,11 @@ module load intelmpi && mpirun --help | grep '#{node['cluster']['intelmpi']['kit
405389
mkdir -p ${EPHEMERAL_DIR}/test_dir
406390
touch ${EPHEMERAL_DIR}/test_dir/test_file
407391
fi
408-
EPHEMERAL
409-
end
410-
execute 'check setup-ephemeral service is enabled' do
411-
command "systemctl is-enabled setup-ephemeral"
412-
end
392+
EPHEMERAL
393+
user node['cluster']['cluster_user']
394+
end
395+
execute 'check setup-ephemeral service is enabled' do
396+
command "systemctl is-enabled setup-ephemeral"
413397
end
414398

415399
###################

0 commit comments

Comments
 (0)