Bug 354921

Summary: system-network-config cannot handle multi-homed host in /etc/hosts
Product: Red Hat Enterprise Linux 4 Reporter: Jeff Morriss <jeff.morriss>
Component: system-config-networkAssignee: Harald Hoyer <harald>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 4.2CC: pknirsch
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: 2008-08-18 14:32:00 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:
Bug Depends On: 198898    
Bug Blocks:    

Description Jeff Morriss 2007-10-26 21:14:49 UTC
Description of problem:

In my world (telecom) all systems are multi-homed and /etc/hosts is used a lot.
 The problem is that s-c-n can't seem to handle multi-homed hosts with
/etc/hosts entries.  For example I want:

172.16.3.4 myhost myhost-corp
10.1.2.3   myhost myhost-cluster0
10.1.3.3   myhost myhost-cluster1

(which is the correct format for /etc/hosts for a multi-homed system)

My problems are:

1) I can't create it using the GUI
2) (worse) if I manually edit /etc/hosts and set it like this, opening s-c-n and
then Saving corrupts what I created, writing out only the last IP address I had
defined for each host (e.g., 10.1.3.3 in the above example).

This bug is almost certainly blocked by bug 198898.

Version-Release number of selected component (if applicable):

system-config-network-tui-1.3.22.0.EL.4.2-1

How reproducible:

Problem 1 (can't put multiple IPs per host via the GUI):
Steps to Reproduce:
1. run system-config-network
2. create 2 or more entries with the same host name but different IP addresses
3. Save
  
Actual results:

/etc/hosts contains only the last-defined IP address

Expected results:

/etc/hosts contains all the entries I created.


Problem 2 (GUI corrupts manually created /etc/hosts):
Steps to Reproduce:
1. vi /etc/hosts and associate 3 IPs with your host (like in the description above)
2. run system-config-network
3. Save
  
Actual results:

/etc/hosts contains only the last-defined IP address (all my other hard work is
gone)

Expected results:

/etc/hosts contains all the entries that were there before.

Additional info:

Comment 1 Fabio Olive Leite 2007-11-12 20:24:21 UTC
Sorry, I'm not the owner for this package.

Comment 2 Phil Knirsch 2008-08-18 14:32:00 UTC

*** This bug has been marked as a duplicate of bug 442458 ***