References device after it has been removed

Bug #1529085 reported by Janus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

First, removal of an USB WLAN adapter (wlan1):

Dec 24 00:45:10 zeus kernel: [19429.149039] usb 2-5: USB disconnect, device number 2
...
Dec 24 00:45:10 zeus NetworkManager[641]: <info> devices removed (path: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-5/2-5:1.0/net/wlan1, iface: wlan1)
Dec 24 00:45:10 zeus NetworkManager[641]: <info> radio killswitch /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-5/2-5:1.0/ieee80211/phy0/rfkill2 disappeared
Dec 24 00:45:10 zeus NetworkManager[641]: <info> (wlan1): supplicant interface state: completed -> disabled

After suspending:

Dec 24 04:22:28 zeus NetworkManager[641]: <info> sleep requested (sleeping: no enabled: yes)
...
Dec 24 04:22:28 zeus NetworkManager[641]: <info> sleeping...
Dec 24 04:22:28 zeus NetworkManager[641]: <info> (wlan1): device state change: activated -> unmanaged (reason 'sleeping') [100 10 37]
Dec 24 04:22:28 zeus NetworkManager[641]: <info> (wlan1): canceled DHCP transaction, DHCP client pid 20332
Dec 24 04:22:28 zeus NetworkManager[641]: <info> (wlan1): DHCPv4 state changed bound -> done
Dec 24 04:22:28 zeus NetworkManager[641]: <error> [1450927348.627824] [platform/nm-linux-platform.c:2782] do_change_link(): platform-linux: do-change-link: failure changing link 3: No such device (31)

After resuming:

Dec 24 11:45:33 zeus NetworkManager[641]: <info> wake requested (sleeping: yes enabled: yes)
...
Dec 24 11:45:33 zeus NetworkManager[641]: <info> waking up...
Dec 24 11:45:33 zeus NetworkManager[641]: <info> (eth0): device state change: unavailable -> unmanaged (reason 'sleeping') [20 10 37]
Dec 24 11:45:33 zeus NetworkManager[641]: <info> (eth0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Dec 24 11:45:33 zeus kernel: [32468.742777] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Dec 24 11:45:34 zeus NetworkManager[641]: <info> (wlan1): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Dec 24 11:45:34 zeus kernel: [32468.777806] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Dec 24 11:45:34 zeus NetworkManager[641]: <error> [1450953934.021095] [platform/nm-linux-platform.c:2782] do_change_link(): platform-linux: do-change-link: failure changing link 3: No such device (31)
Dec 24 11:45:34 zeus NetworkManager[641]: <warn> (wlan1): failed to enable userspace IPv6LL address handling
Dec 24 11:45:34 zeus NetworkManager[641]: <error> [1450953934.029979] [platform/nm-linux-platform.c:2782] do_change_link(): platform-linux: do-change-link: failure changing link 3: No such device (31)
Dec 24 11:45:34 zeus NetworkManager[641]: <error> [1450953934.030751] [platform/nm-linux-platform.c:2782] do_change_link(): platform-linux: do-change-link: failure changing link 3: No such device (31)
Dec 24 11:45:34 zeus NetworkManager[641]: <error> [1450953934.031323] [platform/nm-linux-platform.c:2782] do_change_link(): platform-linux: do-change-link: failure changing link 3: No such device (31)
Dec 24 11:45:34 zeus NetworkManager[641]: <info> NetworkManager state is now DISCONNECTED

At this point, not even eth0 works (it was there all the time). Network-manager works again if restarted using the script in init.d.
---
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: LXDE
DistroRelease: Ubuntu 15.10
IpRoute:
 default via 10.223.0.3 dev eth0 proto static metric 100
 10.223.0.0/16 dev eth0 proto kernel scope link src 10.223.35.120 metric 100
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.
NetworkManager.state:
 [main]
 NetworkingEnabled=true
 WirelessEnabled=true
 WWANEnabled=true
 WimaxEnabled=true
Package: network-manager 1.0.4-0ubuntu5.2
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 4.2.0-22.27-generic 4.2.6
RfKill: Error: [Errno 2] No such file or directory
Tags: wily
Uname: Linux 4.2.0-22-generic x86_64
UpgradeStatus: Upgraded to wily on 2015-10-27 (58 days ago)
UserGroups: adm audio cdrom dialout dip docker lpadmin netdev plugdev sambashare sbuild sudo vboxusers video wireshark www-data
_MarkForUpload: True
mtime.conffile..etc.NetworkManager.NetworkManager.conf: 2015-03-16T23:56:17.808964
nmcli-dev:
 DEVICE TYPE STATE DBUS-PATH CONNECTION CON-UUID CON-PATH
 eth0 ethernet connected /org/freedesktop/NetworkManager/Devices/1 Ethernet connection 1 a4c8b8d2-517e-4293-90fb-3559cb7f95ce /org/freedesktop/NetworkManager/ActiveConnection/0
 lo loopback unmanaged /org/freedesktop/NetworkManager/Devices/0 -- -- --
nmcli-nm: Error: command ['nmcli', '-f', 'all', 'nm'] failed with exit code 2: Error: Object 'nm' is unknown, try 'nmcli help'.

Revision history for this message
Janus (ysangkok+launchpad) wrote :
Revision history for this message
Janus (ysangkok+launchpad) wrote : CRDA.txt

apport information

tags: added: apport-collected wily
description: updated
Revision history for this message
Janus (ysangkok+launchpad) wrote : Dependencies.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : IfupdownConfig.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : IpAddr.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : JournalErrors.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : NetDevice.eth0.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : NetDevice.lo.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : NetworkManager.conf.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : PciNetwork.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : ProcEnviron.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : WifiSyslog.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : modified.conffile..etc.NetworkManager.NetworkManager.conf.txt

apport information

Revision history for this message
Janus (ysangkok+launchpad) wrote : nmcli-con.txt

apport information

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.