Public bug reported:

Binary package hint: network-manager

The built-in wired device is eth0, configured in /etc/network/interfaces
as follows:

auto eth0
iface eth0 inet dhcp

When a USB ethernet device is plugged in or unplugged, NetworkManager
erases /etc/resolv.conf, leaving it with only the following content:

# Generated by NetworkManager

This is disruptive and requires "sudo ifdown eth0; sudo ifup eth0" to
recover from.

Output of lsb_release -rd
Description:    Ubuntu 9.04
Release:        9.04

Output of dpkg -s network-manager:
dpkg -s network-manager
Package: network-manager
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 2204
Maintainer: Ubuntu Core Dev Team <ubuntu-devel-disc...@lists.ubuntu.com>
Architecture: amd64
Version: 0.7.1~rc4.1.cf199a964-0ubuntu2
Replaces: network-manager-pptp (<< 0.7~~)
Depends: libc6 (>= 2.4), libdbus-1-3 (>= 1.0.2), libdbus-glib-1-2 (>= 0.78), 
libglib2.0-0 (>= 2.16.0), libhal1 (>= 0.5.8.1), libnl1, libnm-glib0 (>= 
0.7.1~20090213+gitf142e15), libnm-util1 (>= 0.7.1~20090213+gitf142e15), 
libnspr4-0d (>= 4.7.0~1.9b1), libnss3-1d (>= 3.12.2~rc1), libpolkit-dbus2 (>= 
0.7), libpolkit2 (>= 0.7), libudev0, libuuid1 (>= 1.05), iproute, 
iputils-arping, lsb-base (>= 3.2-14), wpasupplicant (>= 0.6.1~), dbus (>= 
0.60), hal (>= 0.5.7.1), update-notifier-common, ppp
Recommends: network-manager-gnome | plasma-widget-network-manager, dnsmasq-base
Conflicts: network-manager-pptp (<< 0.7~~)

Contents of syslog, when a USB ethernet device is plugged in (my Samsung
Blackjack II):

Jul  7 17:25:41 polecat kernel: [23740.192107] usb 5-1: new full speed USB 
device using uhci_hcd and address 5
Jul  7 17:25:41 polecat kernel: [23740.365073] usb 5-1: configuration #1 chosen 
from 1 choice
Jul  7 17:25:41 polecat kernel: [23740.441995] rndis_host 5-1:1.0: 
RNDIS_MSG_QUERY(0x00010202) failed, -47
Jul  7 17:25:41 polecat kernel: [23740.449660] eth1: register 'rndis_host' at 
usb-0000:00:1d.0-1, RNDIS device, 80:00:60:0f:e8:00
Jul  7 17:25:41 polecat nm-system-settings:    SCPlugin-Ifupdown: device added 
(udi: /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00, iface: eth1): not 
well known
Jul  7 17:25:41 polecat NetworkManager: <info>  (eth1): new Ethernet device 
(driver: 'rndis_host')-
Jul  7 17:25:41 polecat NetworkManager: <info>  (eth1): exported as 
/org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00-
Jul  7 17:25:46 polecat nm-system-settings: Added default wired connection 
'Auto eth1' for /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00
Jul  7 17:25:46 polecat NetworkManager: <info>  (eth1): device state change: 1 
-> 2-
Jul  7 17:25:46 polecat NetworkManager: <info>  (eth1): bringing up device.-
Jul  7 17:25:46 polecat NetworkManager: <info>  (eth1): preparing device.-
Jul  7 17:25:46 polecat NetworkManager: <info>  (eth1): deactivating device 
(reason: 2).-
Jul  7 17:25:46 polecat NetworkManager: <info>  Unmanaged Device found; state 
CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)-
Jul  7 17:25:46 polecat NetworkManager: <info>  (eth1): carrier now ON (device 
state 2)-
Jul  7 17:25:46 polecat NetworkManager: <info>  (eth1): device state change: 2 
-> 3-
Jul  7 17:25:46 polecat NetworkManager: <info>  Unmanaged Device found; state 
CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) starting 
connection 'Auto eth1'-
Jul  7 17:25:46 polecat NetworkManager: <info>  (eth1): device state change: 3 
-> 4-
Jul  7 17:25:46 polecat NetworkManager: <info>  Unmanaged Device found; state 
CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Stage 1 of 5 
(Device Prepare) scheduled...-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Stage 1 of 5 
(Device Prepare) started...-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Stage 2 of 5 
(Device Configure) scheduled...-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Stage 1 of 5 
(Device Prepare) complete.-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Stage 2 of 5 
(Device Configure) starting...-
Jul  7 17:25:46 polecat NetworkManager: <info>  (eth1): device state change: 4 
-> 5-
Jul  7 17:25:46 polecat NetworkManager: <info>  Unmanaged Device found; state 
CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Stage 2 of 5 
(Device Configure) successful.-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Stage 3 of 5 
(IP Configure Start) scheduled.-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Stage 2 of 5 
(Device Configure) complete.-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Stage 3 of 5 
(IP Configure Start) started...-
Jul  7 17:25:46 polecat NetworkManager: <info>  (eth1): device state change: 5 
-> 7-
Jul  7 17:25:46 polecat NetworkManager: <info>  Unmanaged Device found; state 
CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Beginning 
DHCP transaction.-
Jul  7 17:25:46 polecat NetworkManager: <info>  dhclient started with pid 10975-
Jul  7 17:25:46 polecat NetworkManager: <info>  Activation (eth1) Stage 3 of 5 
(IP Configure Start) complete.-
Jul  7 17:25:46 polecat dhclient: Internet Systems Consortium DHCP Client V3.1.1
Jul  7 17:25:46 polecat dhclient: Copyright 2004-2008 Internet Systems 
Consortium.
Jul  7 17:25:46 polecat dhclient: All rights reserved.
Jul  7 17:25:46 polecat dhclient: For info, please visit 
http://www.isc.org/sw/dhcp/
Jul  7 17:25:46 polecat dhclient:-
Jul  7 17:25:46 polecat dhclient: wmaster0: unknown hardware address type 801
Jul  7 17:25:46 polecat NetworkManager: <info>  DHCP: device eth1 state changed 
normal exit -> preinit-
Jul  7 17:25:46 polecat dhclient: wmaster0: unknown hardware address type 801
Jul  7 17:25:46 polecat dhclient: Listening on LPF/eth1/80:00:60:0f:e8:00
Jul  7 17:25:46 polecat dhclient: Sending on   LPF/eth1/80:00:60:0f:e8:00
Jul  7 17:25:46 polecat dhclient: Sending on   Socket/fallback
Jul  7 17:25:47 polecat avahi-daemon[4163]: Registering new address record for 
fe80::8200:60ff:fe0f:e800 on eth1.*.
Jul  7 17:25:50 polecat dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 
67 interval 3
Jul  7 17:25:50 polecat dhclient: DHCPOFFER of 169.254.2.2 from 169.254.2.1
Jul  7 17:25:50 polecat dhclient: DHCPREQUEST of 169.254.2.2 on eth1 to 
255.255.255.255 port 67
Jul  7 17:25:50 polecat dhclient: DHCPACK of 169.254.2.2 from 169.254.2.1
Jul  7 17:25:50 polecat dhclient: bound to 169.254.2.2 -- renewal in 1132295 
seconds.
Jul  7 17:25:50 polecat NetworkManager: <info>  DHCP: device eth1 state changed 
preinit -> bound-
Jul  7 17:25:50 polecat NetworkManager: <info>  Activation (eth1) Stage 4 of 5 
(IP Configure Get) scheduled...-
Jul  7 17:25:50 polecat NetworkManager: <info>  Activation (eth1) Stage 4 of 5 
(IP Configure Get) started...-
Jul  7 17:25:50 polecat NetworkManager: <info>    address 169.254.2.2-
Jul  7 17:25:50 polecat NetworkManager: <info>    prefix 24 (255.255.255.0)-
Jul  7 17:25:50 polecat NetworkManager: <info>  Activation (eth1) Stage 5 of 5 
(IP Configure Commit) scheduled...-
Jul  7 17:25:50 polecat NetworkManager: <info>  Activation (eth1) Stage 4 of 5 
(IP Configure Get) complete.-
Jul  7 17:25:50 polecat NetworkManager: <info>  Activation (eth1) Stage 5 of 5 
(IP Configure Commit) started...-
Jul  7 17:25:50 polecat avahi-daemon[4163]: Joining mDNS multicast group on 
interface eth1.IPv4 with address 169.254.2.2.
Jul  7 17:25:50 polecat avahi-daemon[4163]: New relevant interface eth1.IPv4 
for mDNS.
Jul  7 17:25:50 polecat avahi-daemon[4163]: Registering new address record for 
169.254.2.2 on eth1.IPv4.
Jul  7 17:25:51 polecat NetworkManager: <info>  (eth1): device state change: 7 
-> 8-
Jul  7 17:25:51 polecat NetworkManager: <info>  Unmanaged Device found; state 
CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)-
Jul  7 17:25:51 polecat NetworkManager: <info>  Activation (eth1) successful, 
device activated.-
Jul  7 17:25:51 polecat NetworkManager: <info>  Activation (eth1) Stage 5 of 5 
(IP Configure Commit) complete.-
Jul  7 17:25:51 polecat ntpdate[11023]: can't find host ntp.ubuntu.com-
Jul  7 17:25:51 polecat ntpdate[11023]: no servers can be used, exiting
Jul  7 17:25:56 polecat kernel: [23755.016283] eth1: no IPv6 routers present

Contents of syslog, when the USB ethernet device is unplugged:

Jul  7 17:24:14 polecat kernel: [23652.904152] usb 5-1: USB disconnect, address 
4
Jul  7 17:24:14 polecat kernel: [23652.908799] eth1: unregister 'rndis_host' 
usb-0000:00:1d.0-1, RNDIS device
Jul  7 17:24:14 polecat avahi-daemon[4163]: Interface eth1.IPv4 no longer 
relevant for mDNS.
Jul  7 17:24:14 polecat avahi-daemon[4163]: Leaving mDNS multicast group on 
interface eth1.IPv4 with address 169.254.2.2.
Jul  7 17:24:14 polecat dhclient: receive_packet failed on eth1: Network is down
Jul  7 17:24:14 polecat nm-system-settings:    SCPlugin-Ifupdown: devices 
removed (udi: /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00)
Jul  7 17:24:14 polecat avahi-daemon[4163]: Withdrawing address record for 
fe80::8200:60ff:fe0f:e800 on eth1.
Jul  7 17:24:14 polecat avahi-daemon[4163]: Withdrawing address record for 
169.254.2.2 on eth1.
Jul  7 17:24:14 polecat NetworkManager: <info>  (eth1): now unmanaged-
Jul  7 17:24:14 polecat NetworkManager: <info>  (eth1): device state change: 8 
-> 1-
Jul  7 17:24:14 polecat NetworkManager: <info>  (eth1): deactivating device 
(reason: 36).-
Jul  7 17:24:14 polecat NetworkManager: <info>  eth1: canceled DHCP 
transaction, dhcp client pid 10178-
Jul  7 17:24:14 polecat NetworkManager: 
nm_system_device_flush_ip4_routes_with_iface: assertion `iface_idx >= 0' failed
Jul  7 17:24:14 polecat NetworkManager: 
nm_system_device_flush_ip4_addresses_with_iface: assertion `iface_idx >= 0' 
failed
Jul  7 17:24:14 polecat NetworkManager: <info>  (eth1): cleaning up...-
Jul  7 17:24:14 polecat NetworkManager: <info>  Unmanaged Device found; state 
CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)-
Jul  7 17:24:14 polecat nm-dispatcher.action: Error in get_property: Method 
"Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" 
doesn't exist--

** Affects: network-manager (Ubuntu)
     Importance: Undecided
         Status: New

-- 
NetworkManager erases resolv.conf when ethernet device connected
https://bugs.launchpad.net/bugs/396826
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to