After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 762331 - revert behavioral change for NM_UNMANAGED_USER_CONFIG being overwritable by USER_EXPLICIT
revert behavioral change for NM_UNMANAGED_USER_CONFIG being overwritable by U...
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks: nm-1-2
 
 
Reported: 2016-02-19 15:38 UTC by Thomas Haller
Modified: 2016-02-22 15:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Haller 2016-02-19 15:38:31 UTC
There are different ways to make a device managed/unmanaged in NetworkManager.

by configuration:
  (1) NM_CONTROLLED=yes|no in ifcfg-rh file
  (2) keyfile.unmanaged-devices=spec in NetworkManager.conf
  (3) ENV{NM_UNMANAGED}="0|1" in udev

by explicit user decision via D-Bus
  - nmcli device set $DEV managed yes|no




Previously, a configuration from file/udev could not be overturned and the device was always unmanaged.

Since https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=87a3df2e572ed47b5f76f6d1cad63ce622296e21 , the user decision overwrites configuration.


Which means, for example you can have a device unmanaged in NetworkManager.conf, but if you choose, you can still explicitly activate a connection.
Once a connection is explicitly managed by the user, the other configuration means are ignored: https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/devices/nm-device.c?id=89d6fa6aa93cdc982992c137f0b694cd339c315c#n9086


This is neat, but it's a change in behavior on which users might rely.

Let's revert that for ifcfg-rh (1) and keyfile/NM.conf (2) and make those settings authoritative again.




Eventually, we should add per-device configuration via NetworkManager.conf and thereby allow to specify which devices do manage/unmanage. This configuration should deprecate keyfile.default-unmanaged and NM_CONTROLLED as per-device configuration should not be handled by settings-plugins.