[Bug 2068572] [NEW] Inoperable NetworkMonitor for non-standard configuration

Dariusz Gadomski 2068572 at bugs.launchpad.net
Thu Jun 6 07:44:18 UTC 2024


Public bug reported:

There is an issue with the API of Gio NetworkMonitor - it is only
possible to get the "default" with g_network_monitor_get_default.

Which one is the default is based on hardcoded "priorities" which by
default are set to e.g. 30 for NetworkManager, 20 for netlink.

This means that in a scenario when e.g. NetworkManager is running, but
not used for network management (for instance networkd is used for that
purpose) Gio API will return a useless NetworkMonitor without any
available function to get the next one in the list (with lower
priority).

I believe it would make sense to extend the API to get next
NetworkMonitor if the first one is inoperable.

There are some cloud use cases where the NetworkManager is installed as
a dependency of the ubuntu-desktop metapackage, but the administrator
has chosen to use networkd instead.

** Affects: glib2.0 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/2068572

Title:
  Inoperable NetworkMonitor for non-standard configuration

Status in glib2.0 package in Ubuntu:
  New

Bug description:
  There is an issue with the API of Gio NetworkMonitor - it is only
  possible to get the "default" with g_network_monitor_get_default.

  Which one is the default is based on hardcoded "priorities" which by
  default are set to e.g. 30 for NetworkManager, 20 for netlink.

  This means that in a scenario when e.g. NetworkManager is running, but
  not used for network management (for instance networkd is used for
  that purpose) Gio API will return a useless NetworkMonitor without any
  available function to get the next one in the list (with lower
  priority).

  I believe it would make sense to extend the API to get next
  NetworkMonitor if the first one is inoperable.

  There are some cloud use cases where the NetworkManager is installed
  as a dependency of the ubuntu-desktop metapackage, but the
  administrator has chosen to use networkd instead.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/2068572/+subscriptions




More information about the foundations-bugs mailing list