Skip to content

Commit 96a5207

Browse files
Change fqdn in file /etc/hosts to be stripped of the trailing dot
Signed-off-by: Francesco Giordano <giordafr@amazon.it>
1 parent dff0c69 commit 96a5207

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste
4646
- yum-epel-4.5.0 (from yum-epel-4.1.2)
4747
- Disable `aws-ubuntu-eni-helper` service, available in Deep Learning AMIs, to avoid conflicts with `configure_nw_interface.sh` when configuring instances with multiple network cards.
4848
- Set MTU to 9001 for all the network interfaces when configuring instances with multiple network cards.
49+
- Remove the trailing dot when configuring the compute node FQDN.
4950

5051
3.1.4
5152
------

cookbooks/aws-parallelcluster-slurm/recipes/init_dns.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@
9797
replace_or_add "set fqdn in the /etc/hosts" do
9898
path "/etc/hosts"
9999
pattern "^#{node['ec2']['local_ipv4']}\s+"
100-
line(lazy { "#{node['ec2']['local_ipv4']} #{node['cluster']['assigned_hostname']} #{node['cluster']['assigned_short_hostname']}" })
100+
line(lazy { "#{node['ec2']['local_ipv4']} #{node['cluster']['assigned_hostname'].chomp('.')} #{node['cluster']['assigned_short_hostname']}" })
101101
notifies :reload, "ohai[reload_hostname]"
102102
end

0 commit comments

Comments
 (0)