Skip to content

Commit 06fa7d8

Browse files
author
Himani Deshpande
committed
Creating pyxis conf in Config Phase gives no such file found error
* Changing Kitchen test for Enroot and Pyxis
1 parent 7fda651 commit 06fa7d8

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

cookbooks/aws-parallelcluster-platform/test/controls/enroot_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
expected_enroot_version = node['cluster']['enroot']['version']
1616

17-
describe "gdrcopy version is expected to be #{expected_enroot_version}" do
17+
describe "enroot version is expected to be #{expected_enroot_version}" do
1818
subject { command('enroot version').stdout.strip() }
1919
it { should eq expected_enroot_version }
2020
end

cookbooks/aws-parallelcluster-slurm/recipes/install/install_pyxis.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,21 @@
3737
cd /tmp/pyxis-#{pyxis_version}
3838
CPPFLAGS='-I /opt/slurm/include/' make
3939
CPPFLAGS='-I /opt/slurm/include/' make install
40-
mkdir -p /opt/slurm/etc/plugstack.conf.d
4140
PYXIS_INSTALL
4241
retries 3
4342
retry_delay 5
4443
end
44+
45+
directory "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf.d"
46+
47+
template "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf" do
48+
source 'pyxis/plugstack.conf.erb'
49+
cookbook 'aws-parallelcluster-platform'
50+
owner 'root'
51+
group 'root'
52+
mode '0644'
53+
end
54+
55+
link '/usr/local/share/pyxis/pyxis.conf' do
56+
to "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf.d/pyxis.conf"
57+
end

cookbooks/aws-parallelcluster-slurm/test/controls/pyxis_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
control 'tag:install_pyxis_installed' do
1313
only_if { ['yes', true].include?(node['cluster']['nvidia']['enabled']) }
1414

15-
title 'Checks Pyxis has been installed'
15+
title 'Checks plugstack directory has been installed'
16+
17+
describe directory('/opt/slurm/etc/plugstack.conf.d') do
18+
it { should exist }
19+
end
1620

1721
describe file("/opt/slurm/etc/plugstack.conf.d/pyxis.conf") do
1822
it { should exist }

0 commit comments

Comments
 (0)