Skip to content

Commit c1479b9

Browse files
Revert "Add kitchen tests to check Neuron driver and repository"
This reverts commit c158fe0.
1 parent 3519f53 commit c1479b9

File tree

3 files changed

+0
-63
lines changed

3 files changed

+0
-63
lines changed

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

Lines changed: 0 additions & 42 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
include_recipe 'aws-parallelcluster-test::test_sudoers'
2323
include_recipe 'aws-parallelcluster-test::test_openssh'
2424
include_recipe 'aws-parallelcluster-test::test_nvidia'
25-
include_recipe 'aws-parallelcluster-test::test_neuron'
2625
include_recipe 'aws-parallelcluster-test::test_dcv'
2726

2827
###################

libraries/helpers.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -397,21 +397,6 @@ def remove_package_repository(repo_name)
397397
end
398398
end
399399

400-
# Check if package repository is enabled
401-
# NOTE: This helper function defines a Chef resource function to be executed at Converge time
402-
def is_repository_enabled?(repo_name, base_url)
403-
command = value_for_platform(
404-
%w(ubuntu debian) => {
405-
'default' => "grep -r -E '^deb +#{base_url}' /etc/apt/sources.list*",
406-
},
407-
'default' => "yum -v repolist #{repo_name} | grep 'Repo-status : enabled' || exit 1 && yum -v repolist #{repo_name} | grep 'Repo-baseurl : #{base_url}'")
408-
409-
cmd = Mixlib::ShellOut.new(command, timeout: 60)
410-
cmd.run_command
411-
# Return false if the repository is not installed
412-
cmd.exitstatus.to_i.zero?
413-
end
414-
415400
# Get number of nv switches
416401
def get_nvswitches
417402
# NVSwitch device id is 10de:1af1
@@ -562,11 +547,6 @@ def neuron_installed?
562547
!(cmd.exitstatus != 0)
563548
end
564549

565-
def is_neuron_instance?
566-
neuron_filter = ["trn1."]
567-
node['ec2']['instance_type'].start_with?(*neuron_filter)
568-
end
569-
570550
# load cluster configuration file into node object
571551
def load_cluster_config
572552
ruby_block "load cluster configuration" do

0 commit comments

Comments
 (0)