Bug 863515

Summary: RFE: "run once" mode for static configuration
Product: [Fedora] Fedora Reporter: Matthew Miller <mattdm>
Component: NetworkManagerAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: amessina, danw, dcbw, herrold, jdorff, samuel-rhbugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1083683 (view as bug list) Environment:
Last Closed: 2015-08-18 15:28:01 UTC Type: Bug
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: 1083683    

Description Matthew Miller 2012-10-05 17:15:23 UTC
Background:

* It's desirable to have just once nice, new, modern codepath for network configuration.

* many enterprise and cloud configurations do not need the features that a running network manager daemon provide

* regardless of whether there is really a practical impact, many professional sysadmins have a strong aversion to the idea of a daemon running to control the network (especially when it's perceived as adding no value).

Request:

Please add a "oneshot" mode, where NetworkManager starts, reads the on-disk configuration files, applies any needed changes, and then exits.

This will make it much less painful to replace the legacy network configuration scripts, and will make our sysadmin constituents happy. They may even grow to love NetworkManager.

Comment 1 Matthew Miller 2012-10-11 16:37:53 UTC
In the Fedora Cloud images, NetworkManager is the second-largest single thing running by default -- the largest being dhclient. It has an RSS of 6.6M, and a unique (not shared libs) footprint of about 3.4M. That's pretty small, but if we're trying to squeeze into a very small instance, every bit counts — and, if we multiply by a large number of running instances, it adds up.

Comment 2 Matthew Miller 2013-06-20 14:56:05 UTC
We also need to cover the simple dhcp-on-one-network case -- nothing fancy, but something needs to renew the DHCP leases. The run-once mode should also be able to configure that, just as initscripts networking does now. (I can make that a separate RFE if that's easier.)

Comment 3 Dan Williams 2014-04-02 17:48:41 UTC
Untested code for the static use-case is in dcbw/rh863515-rh1083683-config-then-quit

Comment 4 Fedora Admin XMLRPC Client 2015-08-18 14:56:45 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Dan Winship 2015-08-18 15:28:01 UTC
This was implemented in NM 1.0, which is in F22. 'man NetworkManager.conf' and search for configure-and-quit.