bluetoothd does not notice udev-induced device name change
Bug #1645257 reported by
Tobias Wolter
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bluez (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Cheers,
using Ubuntu 16.10 and bluez 5.41-0ubuntu3 from yakkety, using Bluetooth NAP functionality to connect a device via the system's network connect fails because udev renames the device when it is registered and bluetoothd fails to realize that:
Nov 28 10:26:21 fenrir kernel: bluetooth hci0:256 enx340286443693: renamed from bnep0
Nov 28 10:26:21 fenrir bluetoothd[2224]: bnep: Can't add bnep0 to the bridge pan1: No such device(19)
Nov 28 10:26:21 fenrir bluetoothd[2224]: BNEP server cannot be added
Expected results would, of course, be "added enx340286443693 to the bridge pan1".
To post a comment you must log in.
I'm seeing the same (or at least a highly similar) problem on Ubuntu 22.10:
NetworkMana ger[1628] : <info> [1718657963.8557] device (CC:21: 19:DA:E8: EA): Activation: starting connection 'Gambit Network' (e2a0aeb8- c87f-4ac6- 8972-1e0bfac16e 91) ger[1628] : <info> [1718657963.8558] audit: op="connection- activate" uuid="e2a0aeb8- c87f-4ac6- 8972-1e0bfac16e 91" name="Gambit Network" pid=1359709 uid=1000 result="su
NetworkMana
NetworkMana ger[1628] : <info> [1718657963.8559] device (CC:21: 19:DA:E8: EA): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed') 1287905] : bnep0 connected ger[1628] : <warn> [1718657964.0945] device (CC:21: 19:DA:E8: EA): ip-ifindex: ifname bnep0 not found ger[1628] : <warn> [1718657964.0946] device (CC:21: 19:DA:E8: EA): Error connecting with bluez: cannot find device bnep0 ger[1628] : <info> [1718657964.0946] device (CC:21: 19:DA:E8: EA): state change: prepare -> failed (reason 'bluetooth-failed', sys-iface-state: 'managed') ger[1628] : <warn> [1718657964.0952] device (CC:21: 19:DA:E8: EA): Activation: failed for connection 'Gambit Network' ger[1628] : <info> [1718657964.0955] device (CC:21: 19:DA:E8: EA): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed') 1287905] : profiles/ network/ bnep.c: bnep_if_ down() bnep: Could not bring down bnep0: No such device(19)
bluetoothd[
kernel: bluetooth hci0:256 enxc403a8869e89: renamed from bnep0 (while UP)
NetworkMana
NetworkMana
NetworkMana
NetworkMana
NetworkMana
bluetoothd[
This happens when NetworkManager/ Modemmanager connects to my phone for tethering via bluetooth.
This started happening somewhere in the last couple of weeks, while it worked fine before that. However, the connection now fails most of the the time, but if I retry a few (sometimes a dozen) times, it usually connects eventually. So maybe there is a race condition that has been present for a long time, but just became a lot more likely due some (possibly otherwise unrelated) change in timing or otherwise.
Here's what it looks like when it does work:
NetworkMana ger[1628] : <info> [1718658216.0757] device (CC:21: 19:DA:E8: EA): Activation: starting connection 'Gambit Network' (e2a0aeb8- c87f-4ac6- 8972-1e0bfac16e 91) ger[1628] : <info> [1718658216.0758] audit: op="connection- activate" uuid="e2a0aeb8- c87f-4ac6- 8972-1e0bfac16e 91" name="Gambit Network" pid=1359709 uid=1000 result="s> ger[1628] : <info> [1718658216.0759] device (CC:21: 19:DA:E8: EA): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed') 1287905] : bnep0 connected ger[1628] : <info> [1718658217.3531] device (CC:21: 19:DA:E8: EA): ip-ifname: interface index 0 renamed ip_iface (15295) from 'bnep0' to 'enxc403a8869e89' ger[1628] : <info> [1718658217.3531] device (CC:21: 19:DA:E8: EA): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') ger[1628] : <info> [1718658217.3589] device (CC:21: 19:DA:E8: EA): state change: config -> ip-config (reason 'none', sys-iface-state: 'mana...
NetworkMana
NetworkMana
bluetoothd[
kernel: bluetooth hci0:256 enxc403a8869e89: renamed from bnep0 (while UP)
NetworkMana
NetworkMana
NetworkMana