Bug 516496

Summary: system-config-network lets you save data that crash it while parsing
Product: Red Hat Enterprise Linux 5 Reporter: Tilman Baumann <tbaumann>
Component: system-config-networkAssignee: Harald Hoyer <harald>
Status: CLOSED ERRATA QA Contact: Branislav Blaškovič <bblaskov>
Severity: low Docs Contact:
Priority: low    
Version: 5.3CC: lmiksik, pknirsch, psklenar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the system-config-network service did not handle correctly those entries in the /etc/hosts/ directory that were specified only with an IP address and with no host name, which caused system-config-network to fail. This bug has been fixed and system-config-network now works properly in the described scenario.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-16 00:17:43 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:    
Bug Blocks: 1049888    

Description Tilman Baumann 2009-08-10 08:55:51 UTC
Description of problem:
system-config-network-gui allows you to save host entries with no ip, hostname or alias.
A entry with for example only a ip will cause system-config-network-gui to fail at next startup.

This entry will for crash system-config-network-gui
cat /etc/sysconfig/networking/profiles/default/hosts
10.33.1.83              # Crashme
10.33.1.84      foo     bar


This problem is fixed in Fedora 11 (and maybe earlier).
It not only does not allow you to save broken entries. It can parse them again and tell you that there is a error without crashing.


Can you please make sure this fix goes into RHEL6 and possibly RHEL5.4.



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

system-config-network-1.3.99.12-1.el5
RHEL5.3

How reproducible:

create the following file with these 
/etc/sysconfig/networking/profiles/default/hosts
10.33.1.83
10.33.1.84      foo     bar

Or save a entry with only a IP no hostname and alias.

Comment 2 RHEL Program Management 2009-11-06 19:06:31 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 5 Branislav Blaškovič 2014-05-15 12:51:49 UTC
I can reproduce it with system-config-network-1.3.99.12-1.el5.

Fixed in system-config-network-1.3.99.22-1.el5.
Popup showup:

  Error while parsing /etc/hosts:
  Wrong Hostname on line 3

Comment 7 errata-xmlrpc 2014-09-16 00:17:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1195.html