Bug 466553 - nm-system-settings ifcfg-fedora fails to parse ifcfg-ethX files for dhcp correctly
Summary: nm-system-settings ifcfg-fedora fails to parse ifcfg-ethX files for dhcp corr...
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager   
(Show other bugs)
Version: rawhide
Hardware: All Linux
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2008-10-10 21:18 UTC by David Cantrell
Modified: 2013-02-06 21:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-10-11 02:52:01 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description David Cantrell 2008-10-10 21:18:44 UTC
This is affecting installation.  loader writes out the following ifcfg-eth0 file:


NetworkManager does manage to connect and anaconda proceeds, but then it quickly disables the connection.  The following messages are from tty5 for installation (all output for NM goes to tty5 during installation):

nm-system-settings: ifcfg-fedora: removed /etc/sysconfig/network-scripts/ifcfg-eth0.
NetworkManager: <info> (eth0): device state changed: 8 -> 3
NetworkManager: <info> (eth0): deactivating device.
NetworkManager: <info> eth0: canceled DHCP transaction, dhcp client pid 1374
NetworkManager: <WARN> check_one_route(): (eth0) error -34 returned from rtnl_route_del(): Success

nm-system-settings: ifcfg-fedora: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ...
nm-system-settings: ifcfg-fedora: error: Invalid IP4 prefix '0'
nm-system-settings: ifcfg-fedora: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ...
nm-system-settings: ifcfg-fedora: error: Invalid IP4 prefix '0'

Time stamps are removed from those messages, as well as extra spaces.  Not sure what's going on.

Comment 1 David Cantrell 2008-10-10 22:26:21 UTC
I have modified loader to write the new ifcfg-DEVICE file in a temporary directory, then move it in to /etc/sysconfig/network-scripts, but that has not changed anything.  Just trying different ideas.

Comment 2 David Cantrell 2008-10-10 22:44:43 UTC
Also worth noting that if you choose manual network configuration in loader, NetworkManager runs along just fine and the interface is brought up.

Until we come up with a solution, this problem is preventing DHCP from being used during installation.

Comment 3 David Cantrell 2008-10-11 00:40:23 UTC
Correcting previous information, NetworkManager output goes to tty4 during installation.

I keep seeing device state change when I try a DHCP install.  Device state change goes from 8 to 3, which I think is from NM_DEVICE_STATE_ACTIVATED to NM_DEVICE_STATE_UNAVAILABLE.

Could this be the fault of dhclient or something else on the system?  As stated before, static IP configuration is working fine.

Comment 4 David Cantrell 2008-10-11 02:52:01 UTC
OK, now I'm completely confused.  After making more changes to anaconda, things appear to be working now.  I can't recreate the problem I was having, so I'm going to call this whole issue a problem on the anaconda side.

Comment 5 Dan Williams 2008-10-13 19:09:13 UTC
chris, were you able to reproduce this at all today?  I added some bits to NM svn4174 so NM will tell you why it's deactivating the interface, so in that case we were looking at on Friday we should be able to figure out why NM was doing what it was.

Note You need to log in before you can comment on or make changes to this bug.