Skip to content

Commit 9a67ec5

Browse files
authored
Merge branch 'develop' into wip/mgiacomo/fix-ad-reset-script-0602-1
2 parents 9f5643e + fcfe123 commit 9a67ec5

File tree

6 files changed

+24
-26
lines changed

6 files changed

+24
-26
lines changed

cookbooks/aws-parallelcluster-computefleet/recipes/install/parallelcluster_node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
if aws_region.start_with?("us-iso") && !is_custom_node?
3737
node_package = "aws-parallelcluster-node-#{node['cluster']['parallelcluster-node-version']}.tgz"
3838

39-
node.default['cluster']['custom_node_package'] = "#{node['cluster']['s3_url']}/parallelcluster/#{node['cluster']['parallelcluster-node-version']}/node/#{node_package}"
39+
node.override['cluster']['custom_node_package'] = "#{node['cluster']['s3_url']}/parallelcluster/#{node['cluster']['parallelcluster-node-version']}/node/#{node_package}"
4040
end
4141

4242
if is_custom_node?

cookbooks/aws-parallelcluster-environment/test/controls/nfs_spec.rb

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
control 'tag:install_nfs_installed_with_right_version' do
2-
title 'Check NFS process is running and installed version'
3-
4-
only_if { !os_properties.on_docker? }
5-
6-
# Check nfsd process is running
7-
describe command('ps aux') do
8-
its('stdout') { should match(/nfsd/) }
9-
end
10-
11-
# Check version of NFS
12-
describe "Verify installed NFS version is 4\n" do
13-
nfs_version = command("rpcinfo -p localhost | awk '{print $5$2}' | grep nfs4")
14-
describe nfs_version do
15-
its('stdout') { should match "nfs4" }
16-
end
17-
end
18-
end
1+
# FIXME: Re-enabled the following check and fix failures
2+
# control 'tag:install_nfs_installed_with_right_version' do
3+
# title 'Check NFS process is running and installed version'
4+
#
5+
# only_if { !os_properties.on_docker? }
6+
#
7+
# # Check nfsd process is running
8+
# describe command('ps aux') do
9+
# its('stdout') { should match(/nfsd/) }
10+
# end
11+
#
12+
# # Check version of NFS
13+
# describe "Verify installed NFS version is 4\n" do
14+
# nfs_version = command("rpcinfo -p localhost | awk '{print $5$2}' | grep nfs4")
15+
# describe nfs_version do
16+
# its('stdout') { should match "nfs4" }
17+
# end
18+
# end
19+
# end
1920

2021
control 'tag:config_nfs_configured_on_head_node' do
2122
title 'Check that nfs is configured correctly'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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-
return unless nvidia_installed?
18+
return unless nvidia_enabled? || nvidia_installed?
1919
return if pyxis_installed?
2020

2121
pyxis_version = node['cluster']['pyxis']['version']

cookbooks/aws-parallelcluster-slurm/spec/unit/recipes/install_pyxis_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
node.override['cluster']['pyxis']['version'] = pyxis_version
3434
node.override['cluster']['pyxis']['runtime_path'] = pyxis_runtime_dir
3535
end
36+
allow_any_instance_of(Object).to receive(:nvidia_enabled?).and_return(true)
3637
allow_any_instance_of(Object).to receive(:nvidia_installed?).and_return(true)
3738
allow_any_instance_of(Object).to receive(:pyxis_installed?).and_return(false)
3839
runner.converge(described_recipe)
@@ -93,6 +94,7 @@
9394
runner = runner(platform: platform, version: version) do |_node|
9495
RSpec::Mocks.configuration.allow_message_expectations_on_nil = true
9596
end
97+
allow_any_instance_of(Object).to receive(:nvidia_enabled?).and_return(true)
9698
allow_any_instance_of(Object).to receive(:nvidia_installed?).and_return(true)
9799
allow_any_instance_of(Object).to receive(:pyxis_installed?).and_return(true)
98100
runner.converge(described_recipe)

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@
4747
it { should exist }
4848
it { should be_directory }
4949
end
50-
51-
describe file('/var/run/munge') do
52-
it { should exist }
53-
it { should be_directory }
54-
end
5550
end unless os_properties.redhat_on_docker?
5651

5752
control 'tag:config_munge_service_enabled' do

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# See the License for the specific language governing permissions and limitations under the License.
1111

1212
control 'tag:install_pyxis_installed' do
13-
only_if { instance.nvidia_installed? }
13+
only_if { ['yes', true, 'true'].include?(node['cluster']['nvidia']['enabled']) || instance.nvidia_installed? }
1414

1515
title 'Checks Pyxis has been installed'
1616

0 commit comments

Comments
 (0)