Gotcha.  NetworkManagerDispatcher tries to get the interface name (e.g.
eth0) by querying the dbus device object, which no longer exists.

Hmm.  I thought of a couple of solutions but they're not that elegant.
I wonder if there's a general solution to the problem of object removal
events in dbus.

Example output from a plug-unplug cycle showing this problem:

[EMAIL PROTECTED]:/etc/network# NetworkManagerDispatcher --no-daemon
** Message: <info>  Device /org/freedesktop/NetworkManager/Devices/eth0 (eth0) 
is now going up.

** Message: <info>  Device /org/freedesktop/NetworkManager/Devices/eth0
(eth0) is now up.


** (process:5839): WARNING **: <WARN>  nmd_get_device_name(): 
org.freedesktop.NetworkManager.DeviceNotFound raised: The requested network 
device does not exist.


** (process:5839): WARNING **: <WARN>  nmd_get_device_name(): 
org.freedesktop.NetworkManager.DeviceNotFound raised: The requested network 
device does not exist.

-- 
/etc/network/if-down.d scripts not run when network device is removed
https://bugs.launchpad.net/bugs/214638
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to