Maybe something like this pseudo-code in network-manager preinst
maintainer script:

foreach UUID in $(cat /etc/NetworkManager/system-connections/* | grep "^uuid=")
  ORIG_ID=$(nmcli --get-values connection.id con show $UUID)
  nmcli con mod $UUID con-name $ORIG_ID".NETPLAN"
  nmcli con reload
  nmcli con mod $UUID con-name $ORIG_ID


While on it, we should probably also make the network-manager package install a 
/etc/NetworkManager/system-connections/README file after migration, which 
states that the existing connection profiles have been migrated to /etc/netplan 
(and where a backup can be found).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2010561

Title:
  The Netplan Everywhere NetworkManager fails to supply Netplan with
  networking information until a connection is deleted and re-created

Status in netplan:
  Triaged
Status in network-manager package in Ubuntu:
  New

Bug description:
  Steps to reproduce:

  1. Install Ubuntu Lunar or a flavor thereof onto physical hardware with a 
WiFi adapter. (I used Lubuntu Lunar.)
  2. Connect to WiFi and install all updates.
  3. Enable the Netplan Everywhere PPA and install the updated NetworkManager 
from it (further details at 
https://discourse.ubuntu.com/t/call-for-testing-networkmanager-yaml-settings/32420?u=arraybolt3)
  4. When the installation finishes, run "sudo netplan get".

  Expected result: Networking information related to the WiFi connection
  should appear in the "sudo netplan get" output.

  Actual result: "sudo netplan get" returns the following:

      ** (process:4088): WARNING **: 12:41:41.394; Permissions for 
/etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration 
should NOT be accessible by others.
      network:
        version: 2
        renderer: NetworkManager

  End of output. Additionally, the /etc/netplan folder does not contain
  files that I would expect to be there that would contain the
  networking info.

  Additional information:

  If I disconnect from WiFi, then delete my WiFi connection entirely in
  nmtui, and *then* reconnect to the same WiFi network, "sudo netplan
  get" returns the expected networking information. /etc/netplan is also
  properly populated after doing this.

  This bug seems like it will probably cause unintended behavior after
  an upgrade from 23.04 (which uses normal NetworkManager) to 23.10
  (which is supposed to be using the Netplan Everywhere NetworkManager).
  People probably won't know to entirely delete the WiFi and other
  connections and then reconnect them in order for the netplan output to
  be usable.

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2010561/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to