Bug 725405

Summary: NetworkManager.service failed
Product: [openSUSE] openSUSE 12.1 Reporter: Andreas Jaeger <aj>
Component: NetworkAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: fcrozat, werner
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Product Management Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Jaeger 2011-10-20 10:03:39 UTC
I have NetworkManager=no in /etc/sysconfig...

and see with
systemctl --failed that NetworkManager.service failed.

systemctl status NetworkManager.service gives me:

NetworkManager.service - Network Manager
          Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled)
          Active: failed since Thu, 20 Oct 2011 11:54:52 +0200; 4min 32s ago
         Process: 548 ExecStartPre=/usr/bin/test x${NETWORKMANAGER} = xyes (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/NetworkManager.service


This looks ugly.

This is build 378 - RC1 Candidate
Comment 1 Frederic Crozat 2011-10-20 10:44:44 UTC
Unfortunately, I don't see another way to prevent NM to be started, since we rely on external configuration file ..
Comment 2 Andreas Jaeger 2011-10-20 11:13:05 UTC
Werner, any ideas?
Comment 3 Dr. Werner Fink 2011-10-20 12:17:52 UTC
Without using ugly generators there is no way in systemd and it seems that this
is wanted by upstream and therefore implemented by design (no /etc/sysconfig
support, no extended scripting in service units).

One could use something like

     /lib/systemd/system/network.target            (this one exists)
     /lib/systemd/system/network.target.wants/

and link in NetworkManager.service if NM is required by

     /etc/sysconfig/network/config

into the directory

     /lib/systemd/system/network.target.wants/

and otherwise the other way of enabling network.  But the link is the
configuration and not the variable NETWORKMANAGER
Comment 4 Marius Tomaschewski 2011-11-14 15:56:43 UTC
Frederic,
is this a wontfix?
Comment 5 Frederic Crozat 2011-11-17 14:03:37 UTC
yes, let's close it as wontfix