10-globally-managed-devices.conf contained in wrong package

Bug #1673625 reported by Unit 193
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Won't Fix
Undecided
Unassigned
nplan (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

/usr/lib/NetworkManager/conf.d/10-globally-managed-devices.conf is installed from network-manager but without nplan it has no benefit, and breaks networking until you override it. Since the config is there to change how NetworkManager behaves in the presence of nplan, the configuration file itself should actually be contained in the nplan package.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

nplan is meant to be installed on all systems -- when both network-manager and nplan are installed, nplan also ships the right configuration to override the NetworkManager configuration and let it control all devices. This is required so that where appropriate, we can ship NetworkManager to handle just wireless devices but keep static configuration of the other interfaces, for example on servers.

nplan is shipping via ubuntu-standard. Is there a reason why it is not installed in your use case? Did this come up from an upgrade?

Changed in nplan (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Unit 193 (unit193) wrote :

Right, I gathered that part. But then again so are things like resolved and snap which I consider optional (and the former has been breaking DNS in my VMs, 10-dns-resolved.conf made it more fun.)

I considered, based on the logic of "this configuration 'comes' for another package and breaks this package" should be enough, but yes I've had to track down as to why I had no networking with NM installed.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Don't get me wrong, the upgrade issue this causes has to get fixed.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

I upgraded from 16.04 to 16.10 recently and ran into an issue where networking did not work until I created an empty file in /run/NetworkManager/conf.d/10-globally-managed-devices.conf.

nplan was installed after the upgrade:

 $ apt-cache policy nplan
nplan:
  Installed: 0.12
  Candidate: 0.12
  Version table:
 *** 0.12 500
        500 http://192.168.10.7/ubuntu yakkety/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Brian Murray (brian-murray) wrote :

I don't think many people are still upgrading from Xenial to Yakkety but this'll likely be important to fix for people upgrading from 16.04 to 18.04.

Revision history for this message
Brian Murray (brian-murray) wrote :

I reported a new bug about my issue - bug 1676547.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

The issue is that NM is shipping the file along with its override, but the override logic broke due to a backport of NM in xenial. I'm marking this bug here as duplicate of bug 1676547; since it has more of the necessary logs to debug this.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Reverting duplicate to make the conclusion for this bug clearer:

This file belongs in NM and NM is supposed to make sure that it doesn't break things (which is why there is a bug for upgrade as bug 1676547). It should not be seen as an override but as Ubuntu shipping a default configuration meant to work on the majority of systems (see below).

nplan is in standard and on all systems, whereas NM doesn't normally exist on servers. nplan should not leave unnecessary files around -- on servers, the file in /usr/lib would be unnecessary -- it only makes sense if NetworkManager is installed.

On a typical desktop new install, netplan and NM would be installed, netplan would start at boot and write an override file to /run/NetworkManager/conf.d (as per its default configuration) to tell NM to manage all files. The networking behavior expected by our users would be maintained (ie. they don't need to run netplan, but we want to make it available and start educating on its use).

On earlier installed desktop systems, netplan gets installed on upgrade but likely does not start at boot (and regardless should not break networking before a reboot happens) and NM should write its "default config" and override it via /etc/NetworkManager/conf.d/10-globally-managed-devices.conf by postinst on its own upgrade. This is done to ensure networking is not broken during upgrade, and that old behavior is maintained on upgraded systems.

On servers, netplan is installed but not NetworkManager. netplan should not add unnecessary files to the install. Default behavior should already be maintained because the empty configuration shipped by default will not affect ifupdown/networkd; but users can start using netplan to configure their systems instead of ifupdown immediately.

The intent here is to make sure that NM behaves the right way given that nplan is on all systems, and that it does so following whether netplan is in use or not (as much as possible). netplan is meant to replace ifupdown for static network configuration, and to configure NetworkManager or networkd (depending on what is available) appropriately to drive the networking story requested by the user.

Changed in network-manager (Ubuntu):
status: Confirmed → Won't Fix
Changed in nplan (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.