MISC-10: KDE: Cannot use interface after clicking 'Disconnect' in Network manager applet



Issue Information

Issue Type: Bug
 
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: Miscellaneous (MISC)
Resolution: Fixed (2015-07-24 15:07:00)

Created: 2015-07-24 14:50:25
Time Spent Working


Description
Edited IPv6 settings for 'Wired Connection' to enabled dhcpv6. Address was acquired but system was trying to route ipv6 via dev lo .

To try and make sure routes got refreshed, clicked 'Disconnect' in the Network manager tray applet, click 'Connect' then didn't do anything.

Rebooted and the interface doesn't even appear in the tray applet at all now. Can see it in the NM settings and all looks fine.
Tried removing the ethernet cable and then reconnecting, got
Jul 24 14:34:09 milleniumfalcon NetworkManager[1612]: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)


Bringing up manually works

root@milleniumfalcon:~# ifconfig eth0 up
root@milleniumfalcon:~# dhclient eth0


So should at least be able to use some google-fu



Toggle State Changes

Activity


The title of the bug linked in Dmesg is "Offline Mode" feature fails to detect proper online state for networks that are managed outside of network manager don't think it's related

Looking in the syslog
Jul 24 14:34:04 milleniumfalcon avahi-daemon[1497]: Network interface enumeration completed.
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]: <info> NetworkManager (version 0.9.8.8) is starting...
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]: <info> WEXT support is enabled
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]: <info> VPN: loaded org.freedesktop.NetworkManager.pptp
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: init!
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: update_system_hostname
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:       interface-parser: parsing file /etc/network/interfaces
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:       interface-parser: finished parsing file /etc/network/interfaces
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPluginIfupdown: guessed connection type (eth0) = 802-3-ethernet
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:eth0, type:802-3-ethernet, id:Ifupdown (eth0), uuid: 681b428f-beaf-8932-dce4-687ed5bae28e
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: adding eth0 to connections
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: adding iface eth0 to eni_ifaces
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPluginIfupdown: management mode: unmanaged
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0/net/eth0, iface: eth0)
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPluginIfupdown: locking wired connection setting
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: end _init.
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]: <info> Loaded plugin ifupdown: (C) 2008 Canonical Ltd.  To report bugs please use the NetworkManager mailing list.
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    Ifupdown: get unmanaged devices count: 1
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: (164882320) ... get_connections.
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    SCPlugin-Ifupdown: (164882320) ... get_connections (managed=false): return empty list.
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    keyfile: parsing Wired connection 1 ... 
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    keyfile:     read connection 'Wired connection 1'
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]:    Ifupdown: get unmanaged devices count: 1
Jul 24 14:34:05 milleniumfalcon NetworkManager[1612]: <info> monitoring kernel firmware directory '/lib/firmware'.
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <info> WiFi enabled by radio killswitch; disabled by state file
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <info> WWAN enabled by radio killswitch; disabled by state file
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <info> WiMAX enabled by radio killswitch; enabled by state file
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <info> Networking is enabled by state file
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <warn> failed to allocate link cache: (-12) Object not found
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <info> (eth0): carrier is OFF
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <info> (eth0): new Ethernet device (driver: 'tg3' ifindex: 2)
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <warn> /sys/devices/virtual/net/lo: couldn't determine device driver; ignoring...
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <warn> /sys/devices/virtual/net/lo: couldn't determine device driver; ignoring...
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <info> urfkill disappeared from the bus
Jul 24 14:34:06 milleniumfalcon NetworkManager[1612]: <info> ModemManager available in the bus
Jul 24 14:34:06 milleniumfalcon kernel: [   34.536067] type=1400 audit(1437744846.181:17): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1743 comm="apparmor_parser"
Jul 24 14:34:06 milleniumfalcon kernel: [   34.536761] type=1400 audit(1437744846.181:19): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=1743 comm="apparmor_parser"
Jul 24 14:34:09 milleniumfalcon NetworkManager[1612]: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Jul 24 14:34:09 milleniumfalcon NetworkManager[1612]: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Jul 24 14:34:09 milleniumfalcon NetworkManager[1612]: <info> NetworkManager state is now CONNECTED_GLOBAL
Jul 24 14:34:09 milleniumfalcon NetworkManager[1612]: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
Jul 24 14:34:16 milleniumfalcon NetworkManager[1612]: <info> WiFi hardware radio set disabled


Looks to me like clicking Disconnect lead to NM deciding it wasn't to manage the device anymore.

As there isn't actually anything for that device in /etc/network/interfaces it doesn't get brought up unless NM opts to do so
Hmmm
root@milleniumfalcon:~# cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
#dns=dnsmasq

no-auto-default=00:1A:A0:CF:87:18,

[ifupdown]
managed=false

Commented out the no-auto-default line and restarted network-manager
root@milleniumfalcon:~# service network-manager restart

Got my connection back.

Not sure that no-auto-default should have broken things though. I also can't seem to replicate the original break, so may not be fixed
btasker changed status from 'Open' to 'Resolved'
btasker added 'Fixed' to resolution
btasker changed status from 'Resolved' to 'Closed'