network-manager doesn't work with renamed eth devices

Bug #35726 reported by Bas Zoetekouw
14
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

network-manager doesn't seem to work correctly with renamed eth devices.

To distingish more easily between lan and wlan device, my eth devices were renamed using udev like this:
KERNEL=="eth*", SYSFS{device}=="0x165e", NAME="eth-lan"
KERNEL=="eth*", SYSFS{device}=="0x4220", NAME="eth-wlan"

However, this caused network-manager not to recognize them: the nm-applet simply said that there were no network connections available. I had to reset the names to the original eth0/eth1 to get network-manager to work.

I've been looking through the network-manager souce to see if it maybe filters on ethN or so, but I haven't been able to find anything.

(this is on Dapper btw, using network-manager 0.5.1-0ubuntu19 and dbus 0.60-6ubuntu4).

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Could you please test with the last version :
https://wiki.ubuntu.com/DapperNetworkManager

Please follow instructions (nothing in /etc/network/interface ) and confirm that this bug happens.

Thank you :-)

Changed in network-manager:
status: Unconfirmed → Needs Info
Revision history for this message
Bas Zoetekouw (baszoetekouw) wrote :
Download full text (4.5 KiB)

Yes, I can also reproduce this with the latest network-manager/network-manager-gnome (version 0.6.1-0ubuntu1).

On dbus restart, network-manager writes the following to syslog:

Mar 22 19:54:39 ophelia NetworkManager: <information>^Istarting...
Mar 22 19:54:39 ophelia NetworkManager: <information>^Ieth-wlan: Device is fully-supported using driver 'ipw2200'.
Mar 22 19:54:39 ophelia NetworkManager: <information>^Inm_device_init(): waiting for devi
ce's worker thread to start
Mar 22 19:54:39 ophelia NetworkManager: <information>^Inm_device_init(): device's worker thread started, continuing.
Mar 22 19:54:39 ophelia NetworkManager: <information>^INow managing wireless (802.11) device 'eth-wlan'.
Mar 22 19:54:39 ophelia NetworkManager: <information>^Ieth-lan: Device is fully-supported using driver 'tg3'.
Mar 22 19:54:39 ophelia NetworkManager: <information>^Inm_device_init(): waiting for device's worker thread to start
Mar 22 19:54:39 ophelia NetworkManager: <information>^Inm_device_init(): device's worker thread started, continuing.
Mar 22 19:54:39 ophelia NetworkManager: <information>^INow managing wired Ethernet (802.3) device 'eth-lan'.
Mar 22 19:54:39 ophelia NetworkManager: <WARNING>^I nm_dhcp_manager_get_state_for_device (): nm_dhcp_manager_get_state_for_device(): Couldn't allocate the dbus message
Mar 22 19:54:39 ophelia NetworkManager: <information>^IWill activate wired connection 'eth-lan' because it now has a link.
Mar 22 19:54:39 ophelia NetworkManager: <information>^ISWITCH: no current connection, found better connection 'eth-lan'.
Mar 22 19:54:39 ophelia NetworkManager: <WARNING>^I nm_dhcp_manager_get_state_for_device (): nm_dhcp_manager_get_state_for_device(): Couldn't allocate the dbus message
Mar 22 19:54:39 ophelia NetworkManager: <information>^IWill activate connection 'eth-lan'.
Mar 22 19:54:39 ophelia NetworkManager: <information>^IDevice eth-lan activation scheduled...
Mar 22 19:54:39 ophelia NetworkManager: <information>^IActivation (eth-lan) started...
Mar 22 19:54:39 ophelia NetworkManager: <information>^IActivation (eth-lan) Stage 1 of 5 (Device Prepare) scheduled...
Mar 22 19:54:39 ophelia NetworkManager: <information>^IActivation (eth-lan) Stage 1 of 5 (Device Prepare) started...
Mar 22 19:54:39 ophelia NetworkManager: <information>^IActivation (eth-lan) Stage 2 of 5 (Device Configure) scheduled...
Mar 22 19:54:39 ophelia NetworkManager: <information>^IActivation (eth-lan) Stage 1 of 5 (Device Prepare) complete.
Mar 22 19:54:39 ophelia NetworkManager: <information>^IActivation (eth-lan) Stage 2 of 5 (Device Configure) starting...
Mar 22 19:54:39 ophelia NetworkManager: <information>^IActivation (eth-lan) Stage 2 of 5 (Device Configure) successful.
Mar 22 19:54:39 ophelia NetworkManager: <information>^IActivation (eth-lan) Stage 3 of 5 (IP Configure Start) scheduled.
Mar 22 19:54:39 ophelia NetworkManager: <information>^IActivation (eth-lan) Stage 2 of 5 (Device Configure) complete.
Mar 22 19:54:39 ophelia NetworkManager: <information>^IActivation (eth-lan) Stage 3 of 5 (IP Configure Start) started...
Mar 22 19:54:39 ophelia NetworkManager: <information>^IOld device 'eth-lan' activating, won't change.
Mar 22 19:54:40 op...

Read more...

Changed in network-manager:
status: Needs Info → Unconfirmed
Revision history for this message
j^ (j) wrote :

/etc/iftab entires also cause problems

Changed in network-manager:
status: Unconfirmed → Confirmed
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.