Bug 745653

Summary: systemd: NETWORKMANAGER="no" causes NetworkManager.service to *FAIL*
Product: [openSUSE] openSUSE 12.1 Reporter: Harald Koenig <koenig>
Component: NetworkAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fcrozat
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Harald Koenig 2012-02-07 17:50:28 UTC
I'm using systemd, but no NetworkManager.  this causes network "failures" 
which IMHO should not be labeled as failures as this is the way I decided to configure the system,
the network works ok (now, after fixing bug #744293 ;-)

# systemctl | grep failed
network.service           loaded failed failed        LSB: Configure the localfs depending network interfaces
NetworkManager.service    loaded failed failed        Network Manager


# systemctl  status NetworkManager.service network.service
NetworkManager.service - Network Manager
          Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled)
          Active: failed since Tue, 07 Feb 2012 17:20:36 +0100; 40min ago
         Process: 818 ExecStartPre=/usr/bin/test x${NETWORKMANAGER} = xyes (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/NetworkManager.service

network.service - LSB: Configure the localfs depending network interfaces
          Loaded: loaded (/etc/init.d/network)
          Active: failed since Tue, 07 Feb 2012 17:21:07 +0100; 40min ago
         Process: 866 ExecStart=/etc/init.d/network start (code=exited, status=7/NOTRUNNING)
          CGroup: name=systemd:/system/network.service
                  ? 5111 /sbin/dhcpcd --netconfig -L -E -HHH -c
/etc/sysconfig/network/scripts/dhcpcd-hook -t 0 -h t3 eth0


# grep -r NETWORKMANAGER /etc/sysconfig/
/etc/sysconfig/network/config:NETWORKMANAGER="no"



what's the idea in this FAILURE

         Process: 818 ExecStartPre=/usr/bin/test x${NETWORKMANAGER} = xyes (code=exited, status=1/FAILURE)

for NetworkManager.service  ???
Comment 1 Harald Koenig 2012-02-07 17:53:03 UTC
forgot to mention:  this "failure" causes IMHO wrong output for "rcnetwork status"


# rcnetwork status
redirecting to systemctl
network.service - LSB: Configure the localfs depending network interfaces
          Loaded: loaded (/etc/init.d/network)
          Active: failed since Tue, 07 Feb 2012 17:21:07 +0100; 1h 29min ago
         Process: 866 ExecStart=/etc/init.d/network start (code=exited, status=7/NOTRUNNING)
          CGroup: name=systemd:/system/network.service
                  ? 5111 /sbin/dhcpcd --netconfig -L -E -HHH -c /etc/sysconfig/network/scripts/dhcpcd-hook -t 0 -h t3 eth0


since the network did correctly startup and works fine and excactly as configured...
Comment 2 Frederic Crozat 2012-02-08 09:41:32 UTC
this is wanted, NM is handled by a separate service, network.service only handle "ifup" method.