[fuel-library] Incorrect /etc/hosts file format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Low
|
Oleksiy Molchanov |
Bug Description
Description of the environment:
All configurations
Steps to reproduce:
Complete netconfig stage of the deployment
Expected result:
Hosts table conforms the RFC 952 original format
IP_address canonical_hostname [aliases...]
Actual result:
Mixed up hosts fqdn/aliases records
192.168.0.2 node-6 node-6.domain.tld
192.168.0.3 node-7 node-7.domain.tld
Workaround:
Swap the fqdn and aliases records
--- a/deployment/
+++ b/deployment/
@@ -11,7 +11,7 @@ module Puppet:
hosts=Hash.new
nodes=args[0]
nodes.each do |node|
- hosts[node[
+ hosts[node['fqdn']] = {:ip => node['internal_
end
return hosts
Impact:
The facter 'fqdn' relies on the following search order (actually it's domain facter):
hostname -f (empty in case of invalid mixed up fqdn and aliases)
dnsdomainname (the same as above)
/etc/resolv.conf (the last chance to get domain/search data)
If /etc/resolv.conf have no domain/search data we get an empty fqdn facter that could affect the deployment process.
Valid FQDN is required for certain network tools to operate correctly.
Changed in fuel: | |
assignee: | nobody → Oleksiy Molchanov (omolchanov) |
importance: | Undecided → Low |
no longer affects: | fuel/5.1.x |
Changed in fuel: | |
milestone: | none → 6.0 |
Fix proposed to branch: master /review. openstack. org/132078
Review: https:/