Bug 447308

Summary: Network manager doesn't init network on boot properly and trouble with service restart
Product: [Fedora] Fedora Reporter: Andrey Gusev <ronne>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 9CC: dcbw, f14f21, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-14 21:23:15 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:
Attachments:
Description Flags
message log of boot none

Description Andrey Gusev 2008-05-19 13:34:19 UTC
Description of problem: After booting, ip address doesn't set for my network
card. I tried and dhcp and static ip address. After this, I do:
service network restart

If ip address is static all became good. If I use dhcp I see error, but eth0
reinit succefull:
[root@andrey_gusev tmp]# LANG=C service network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:
Determining IP information for eth0...dhclient(4904) is already running - exiting.

This version of ISC DHCP is based on the release available
on ftp.isc.org.  Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.

Please report for this software via the Red Hat Bugzilla site:
    http://bugzilla.redhat.com

exiting.
 failed.
                                                           [FAILED]




Version-Release number of selected component (if applicable):
[andrey@andrey_gusev ~]$ rpm -qi NetworkManager
Name        : NetworkManager               Relocations: (not relocatable)
Version     : 0.7.0                             Vendor: Fedora Project
Release     : 0.9.3.svn3623.fc9             Build Date: Чтв 01 Май 2008 00:27:32

Steps to Reproduce:
1. boot 
2. try to restart network, because ip adress doesn't set
3.
  
Actual results:
ip address doesn't set. Error message on service restarting.

Expected results:
Ip address set and no error message on restarting.

Additional info:
In attachment message log of boot.

Comment 1 Andrey Gusev 2008-05-19 13:34:19 UTC
Created attachment 305941 [details]
message log of boot

Comment 2 Andrey Gusev 2008-05-21 08:12:25 UTC
Workaround is disable NetworkManager

Comment 3 Dan Williams 2008-05-21 14:52:13 UTC
I assume you're using static IP configuration?  Could you attach your
/etc/sysconfig/network-scripts/ifcfg-eth0 file?

Also, could you update to the latest NM in f9-updates-testing (svn3675 I
believe) as this fixes a few issues with reading the configuration you've set up
in ifcfg-eth0.

Comment 4 Andrey Gusev 2008-05-22 09:44:18 UTC
I tried both variants. My current configuration:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
HWADDR=00:18:F3:77:8D:DC

I updated from fedora 7 and it was static ip. 
I'm trying package from testing.

Comment 5 Andrey Gusev 2008-05-22 10:10:03 UTC
I got  NetworkManager-glib-0.7.0-0.9.3.svn3675.fc9.i386.rpm  and
NetworkManager-0.7.0-0.9.3.svn3675.fc9.i386.rpm, upgraded and rebooted. Booting
is ok, eth0 was upped. But, I did "service network restart", I have seen message
about error below. 
I try static ip also.

Comment 6 Andrey Gusev 2008-05-22 10:31:03 UTC
I checked static ip, it works good on starting. On restarting, there is messages:
Shutting down interface eth0:  [OK]

Shutting down loopback interface:  [OK]

Bringing up loopback interface:  [OK]

Bringing up interface eth0:  RTNETLINK answers: File exists
Error adding address 192.168.1.103 for eth0.
[OK]


Comment 7 Dan Williams 2008-05-22 15:57:25 UTC
If you're allowing NetworkManager to control the interface, then you don't need
to use the 'network' service for that interface.  You can add:

NM_CONTROLLED=yes

or

NM_CONTROLLED=no

to the ifcfg file to indicate which service (either NetowrkManager or network)
should control the device.



Comment 8 Dan Williams 2009-02-14 21:23:15 UTC
Please reopen if the suggestions in comment #7 don't work for you.

Comment 9 f14f21 2009-06-11 07:42:22 UTC
if u want to config ur eth manually no need to use network manager :

   1) /sbin/chkconfig --level 0123456 NetworkManager off
   2) use NM_CONTROLLED=no in 
      /etc/sysconfig/network-scripts/ifcfg-eth0 (as Williams  said)
   3)i assumed ur network service start level is set in ur boot run-level .
   4)reboot linux