Bug 253903

Summary: [RFE] Warn about /etc/hosts being obviously wrong
Product: [Retired] Red Hat Cluster Suite Reporter: Lon Hohberger <lhh>
Component: congaAssignee: Jim Parsons <jparsons>
Status: CLOSED WONTFIX QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: low    
Version: 4CC: bstevens, cluster-maint, rmccabe, ttracy
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-13 01:57:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lon Hohberger 2007-08-22 19:48:35 UTC
Description of problem:

Sometimes, people do bad things in /etc/hosts, like:

127.0.0.1 my-test.redhat.com  my-test localhost.localdomain localhost


If you add 'my-test.redhat.com' to Luci, it will work fine, but there are some
side effects which will be hit later:

(a) If you fix /etc/hosts, the host must be deleted from Conga (Ryan noticed
this) and re-added in order to continue administration, despite the certificates
being available and "trusted".  (If part of a cluster, cluster.conf may need to
me manually updated as well.)

(b) If you don't fix /etc/hosts, CMAN will refuse to start, citing inability to
find broadcast (or multicast) matches.

The request is to minimally check /etc/hosts and make sure the hostname we're
talking to isn't listed on the same line as localhost and/or 127.x.x.x (or the
equivalent in ipv6 notation)