Occasionally no network on resume

Bug #1422096 reported by Iain Lane on 2015-02-15
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Undecided
Unassigned

Bug Description

Sometimes I resume and n-m thinks that lxcbr0 is a connected wired network, so doesn't connect to the wireless network that I actually want to use until I restart it.

laney@iota> nmcli d
DEVICE TYPE STATE CONNECTION
lxcbr0 bridge connected lxcbr0
virbr0 bridge connected virbr0
50:46:5D:18:E7:06 bt disconnected --
wlan0 wifi disconnected --
eth0 ethernet unavailable --
lo loopback unmanaged --
virbr0-nic tap unmanaged --
laney@iota> nmcli d w l ifname wlan0
* SSID MODE CHAN RATE SIGNAL BARS SECURITY
laney@iota> cat /etc/network/interfaces
auto lo
iface lo inet loopback

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: network-manager 0.9.10.0-4ubuntu6
ProcVersionSignature: Ubuntu 3.18.0-13.14-generic 3.18.5
Uname: Linux 3.18.0-13-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 2.16.1-0ubuntu2
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun Feb 15 10:37:28 2015
IfupdownConfig:
 auto lo
 iface lo inet loopback
InstallationDate: Installed on 2012-10-18 (850 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
IpRoute:
 default via 192.168.1.1 dev wlan0 proto static metric 1024
 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.134
SourcePackage: network-manager
UpgradeStatus: Upgraded to vivid on 2014-07-30 (200 days ago)
nmcli-nm: Error: command ['nmcli', '-f', 'all', 'nm'] failed with exit code 2: Error: Object 'nm' is unknown, try 'nmcli help'.

Iain Lane (laney) wrote :
Iain Lane (laney) wrote :

In the attached syslog, Feb 15 10:36 is when n-m was in the bad state, and :37 was when I restarted it.

Also FWIW I'm using systemd.

Martin Pitt (pitti) wrote :

same syslog structure as in bug 1270257, so most probably a duplicate.

Iain Lane (laney) wrote :

Ah, I'm on upstart now and it's still happening.

I think for me this started around the time the new NM upstream release was uploaded, so I'd start investigating what changed there. Even if it did happen sometimes before (e.g. if bug #1270257 is a dupe), it seems way more frequent now. I personally never had this issue up until quite recently.

Iain Lane (laney) wrote :

It's happening very frequently now. I tried to get some state this morning. The network would intermittently work when it was in the bad state, and only started working when I disconnected wlan0 *and* reconnected eth0.

-- bad state --

laney@iota> netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
laney@iota> ping orangesquash.org.uk
PING orangesquash.org.uk (85.119.82.37) 56(84) bytes of data.

^C
--- orangesquash.org.uk ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2016ms

laney@iota> ip route show
default via 192.168.1.1 dev eth0 proto static metric 1024
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.134
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.106

-- good state --

laney@iota> ip ro show
default via 192.168.1.1 dev eth0 proto static metric 1024
169.254.0.0/16 dev eth0 scope link metric 1000
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.106
laney@iota> netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

Can someone please tell me what other debugging information will be useful?

Attaching another syslog.

Iain Lane (laney) wrote :

Oh, in today's case lxcbr0 and virbr0 weren't listed.

Iain Lane (laney) wrote :

I was in the same state as comment #6, then...

laney@iota> nmcli d status
DEVICE TYPE STATE CONNECTION
lxcbr0 bridge connected lxcbr0
virbr0 bridge connected virbr0
virbr0-nic tap connected virbr0-nic
50:46:5D:18:E7:06 bt disconnected --
wlan0 wifi disconnected --
eth0 ethernet unavailable --
lo loopback unmanaged --
laney@iota> sudo service network-manager restart
[sudo] password for laney:
laney@iota> nmcli d status
DEVICE TYPE STATE CONNECTION
wlan0 wifi connected bobby
50:46:5D:18:E7:06 bt disconnected --
lxcbr0 bridge unavailable --
virbr0 bridge unavailable --
eth0 ethernet unavailable --
lo loopback unmanaged --
virbr0-nic tap unmanaged --

so I guess them not being listed isn't relevant to this bug.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers