Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions specs/default/chef/site-cookbooks/slurm/recipes/execute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@
defer_block "Defer starting slurmd until end of converge" do
slurmd_sysconfig="SLURMD_OPTIONS=-N #{nodename}"
if node[:slurm][:use_nodename_as_hostname] then
cmd_str = "getent hosts #{node[:cyclecloud][:instance][:ipv4]} | grep -q #{nodename}"
cmd_str = "getent hosts #{node[:cyclecloud][:instance][:ipv4]} | grep -qi #{nodename}"
cmd = Mixlib::ShellOut.new(cmd_str)
cmd.run_command
if !cmd.exitstatus.zero?
raise "Hostname has not registered in DNS yet."
end

cmd_str = "hostname | grep -q #{nodename}"
cmd_str = "hostname | grep -qi #{nodename}"
cmd = Mixlib::ShellOut.new(cmd_str)
cmd.run_command
if !cmd.exitstatus.zero?
Expand Down