Systems with 3G devices may cause false failure in networking/detect

Bug #1194170 reported by Jeff Lane 
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
High
Sylvain Pineau

Bug Description

If a 3G modem appears as a USB device, the networking detect script may falsely fail because network manager may not know about it... See this output:

---------------------------[ Devices found by udev ]----------------------------
Category: WIRELESS
Interface: wlan0
Product: Centrino Wireless-N 2230
Vendor: Intel Corporation
Driver: iwlwifi (ver: 3.5.0-34-generic)
Path: /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/net/wlan0

Category: NETWORK
Interface: eth0
Product: AR8161 Gigabit Ethernet
Vendor: Atheros Communications Inc.
Driver: alx (ver: 1.2.3)
Path: /devices/pci0000:00/0000:00:1c.4/0000:02:00.0/net/eth0

Category: NETWORK
Interface: usb0
Vendor: Dell Computer Corp.
Driver: cdc_ncm (ver: 3.5.0-34-generic)
Path: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.6/net/usb0

----------------------[ Devices found by Network Manager ]----------------------
Category: WiFi
Interface: wlan0
IP: 10.101.46.252
Driver: iwlwifi (ver: 3.5.0-34-generic)
State: Disconnected

Category: Ethernet
Interface: eth0
IP: 0.0.0.0
Driver: alx (ver: 1.2.3)
State: Unavailable

ERROR: Ethernet devices missing: udev showed 2 devices, but NetworkManager saw 1 devices

It appears that udev's "NETWORK" category is the same as the "Ethernet" category for NM, however, NM is not showing the 3G modem. This causes a count mismatch and forces the test to fail.

This will cause several other networking related tests to be skipped, because they depend on this test to pass:

REQUIRED: networking/internet
REQUIRED: suspend/network_before_suspend
REQUIRED: suspend/network_after_suspend (depends on network_before_suspend_)
software/update_manager_finds_updates

Related branches

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

As some wwan devices appear as USB devices, the udev parser can't set a different category, e.g MODEM. So they'll stay identified as just NETWORK devices.
NM reports Modem devices but the network_device_info script omitted such devices so far.

The fix will be to properly map NM modem devices to the udev NETWORK category

Changed in checkbox:
importance: Undecided → High
assignee: nobody → Sylvain Pineau (sylvain-pineau)
status: New → Triaged
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Another sample from 201208-11537 Dell Latitude 6430u

The HSPA Modem does not work until the v3.10-rc7 kernel was installed

The following result was generated with:
if devtype == "WiFi" or devtype == "Ethernet" or devtype == "Modem" :
modification within the network_detect_device script

---------------------------[ Devices found by udev ]----------------------------
Category: NETWORK
Interface: eth0
Product: 82579LM Gigabit Network Connection
Vendor: Intel Corporation
Driver: e1000e (ver: 2.3.2-k)
Path: /devices/pci0000:00/0000:00:19.0/net/eth0

Category: WIRELESS
Interface: wlan0
Product: Centrino Advanced-N 6205
Vendor: Intel Corporation
Driver: iwlwifi (ver: 3.10.0-031000rc7-generic)
Path: /devices/pci0000:00/0000:00:1c.1/0000:02:00.0/net/wlan0

Category: NETWORK
Interface: wwan0
Vendor: Dell Computer Corp.
Driver: qmi_wwan (ver: 3.10.0-031000rc7-generic)
Path: /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.6/net/wwan0

Error running /sbin/modinfo option1:
ERROR: modinfo: could not find module option1

----------------------[ Devices found by Network Manager ]----------------------
Category: Ethernet
Interface: eth0
IP: 0.0.0.0
Driver: e1000e (ver: 2.3.2-k)
State: Unavailable

Category: WiFi
Interface: wlan0
IP: 10.101.46.151
Driver: iwlwifi (ver: 3.10.0-031000rc7-generic)
State: Activated

Category: Modem
Interface: ttyUSB3
IP: 0.0.0.0
Driver: option1 (ver: Unknown)
State: Disconnected

Daniel Manrique (roadmr)
Changed in checkbox:
status: Triaged → Fix Committed
Daniel Manrique (roadmr)
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.