dispatcher script 01ifupdown never emits net-device-down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
NM runs /etc/NetworkMan
If a connection is made, the dispatcher script runs:
exec run-parts /etc/network/
However, when a connection goes down, the dispatcher script runs:
exec run-parts /etc/network/
Crucially, it does not currently run:
exec run-parts /etc/network/
The problem here is that since it runs the post-down scripts, the net-device-down Upstart event is never emitted. This is emitted though by /etc/network/
Should the dispatcher run the if-down.d scripts rather than the if-post-down.d scripts? Or maybe it should run both?
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: network-manager 0.9.2.0+
ProcVersionSign
Uname: Linux 3.2.0-12-
NonfreeKernelMo
ApportVersion: 1.91-0ubuntu1
Architecture: i386
Date: Thu Feb 2 11:06:29 2012
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
IpRoute:
default via 192.168.1.1 dev wlan0 proto static
10.0.3.0/24 dev lxcbr0 proto kernel scope link src 10.0.3.1
169.254.0.0/16 dev wlan0 scope link metric 1000
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.2 metric 2
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
NetworkManager.
[main]
NetworkingEnab
WirelessEnable
WWANEnabled=true
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: network-manager
UpgradeStatus: Upgraded to precise on 2012-01-12 (20 days ago)
WifiSyslog:
modified.
mtime.conffile.
nmcli-dev:
DEVICE TYPE STATE DBUS-PATH
eth0 802-3-ethernet unavailable /org/freedeskto
wlan0 802-11-wireless connected /org/freedeskto
nmcli-nm:
RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
running 0.9.3.0 connected enabled enabled enabled enabled disabled
James,
This has been the case for a long while. Any reason why net-device-down should really get emitted by NetworkManager in these cases? I mean, practically, what uses this right now, just so we can have a sense of scale and purpose?
I'm not at all against having the /etc/network/ if-down. d scripts, I'll just need to discuss this with upstream and the Debian NM maintainers and see if there's a reason why only if-post-down scripts were being run.