[Pkg-utopia-maintainers] Bug#642191: Bug#642191: network-manager: On upgrade/restart, resolv.conf is overwritten with empty file

Hilko Bengen bengen at debian.org
Thu Sep 22 17:12:38 UTC 2011


* Michael Biebl:

> Please also try the following:
>
> - Stop network-manager (service network-manager stop).

At this point, eth1 is down and resolv.conf is empty except for the
NetworkManager comment mentioned before.

> - ifup eth1
> (check if resolv.conf is properly setup)

resolv.conf is okay now.

I have figured out that the resolv.conf update on my machine is
triggered when /sbin/dhclient is run, probably through
/sbin/dhclient-script.

> - Start "NetworkManager --no-daemon --log-level=DEBUG"
> (check again if resolv.conf as overwritten)

resolv.conf is still okay; NetworkManager follows:

,----
| NetworkManager[27309]: <info> NetworkManager (version 0.9.0) is starting...
| NetworkManager[27309]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
| NetworkManager[27309]: <info> VPN: loaded org.freedesktop.NetworkManager.vpnc
| NetworkManager[27309]: <info> VPN: loaded org.freedesktop.NetworkManager.openvpn
| NetworkManager[27309]:    SCPlugin-Ifupdown: init!
| NetworkManager[27309]:    SCPlugin-Ifupdown: update_system_hostname
| NetworkManager[27309]:    SCPluginIfupdown: guessed connection type (eth1) = 802-3-ethernet
| NetworkManager[27309]:    SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:eth1, type:802-3-ethernet, id:Ifupdown (eth1), uuid: 7b635ed6-2640-7ad8-675d-744db12dd9fa
| NetworkManager[27309]:    SCPlugin-Ifupdown: adding eth1 to iface_connections
| NetworkManager[27309]:    SCPlugin-Ifupdown: adding iface eth1 to well_known_interfaces
| NetworkManager[27309]:    SCPluginIfupdown: guessed connection type (tap0) = 802-3-ethernet
| NetworkManager[27309]:    SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:tap0, type:802-3-ethernet, id:Ifupdown (tap0), uuid: 8e977656-6fc5-6b10-bff2-f63f618d213d
| NetworkManager[27309]:    SCPlugin-Ifupdown: addresses count: 1
| NetworkManager[27309]:    SCPlugin-Ifupdown: No dns-nameserver configured in /etc/network/interfaces
| NetworkManager[27309]:    SCPlugin-Ifupdown: adding tap0 to iface_connections
| NetworkManager[27309]:    SCPlugin-Ifupdown: adding iface tap0 to well_known_interfaces
| NetworkManager[27309]:    SCPluginIfupdown: guessed connection type (vde0) = 802-3-ethernet
| NetworkManager[27309]:    SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:vde0, type:802-3-ethernet, id:Ifupdown (vde0), uuid: 5c59864c-1464-e505-ae8e-21dde994dbe0
| NetworkManager[27309]:    SCPlugin-Ifupdown: adding vde0 to iface_connections
| NetworkManager[27309]:    SCPlugin-Ifupdown: adding iface vde0 to well_known_interfaces
| NetworkManager[27309]:    SCPlugin-Ifupdown: autoconnect
| NetworkManager[27309]:    SCPluginIfupdown: management mode: unmanaged
| NetworkManager[27309]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:05.0/0000:02:00.0/net/eth1, iface: eth1)
| NetworkManager[27309]:    SCPluginIfupdown: locking wired connection setting
| NetworkManager[27309]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
| NetworkManager[27309]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
| NetworkManager[27309]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/virbr0, iface: virbr0)
| NetworkManager[27309]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/virbr0, iface: virbr0): no ifupdown configuration found.
| NetworkManager[27309]:    SCPlugin-Ifupdown: end _init.
| NetworkManager[27309]: <info> Loaded plugin ifupdown: (C) 2008 Canonical Ltd.  To report bugs please use the NetworkManager mailing list.
| NetworkManager[27309]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
| NetworkManager[27309]:    Ifupdown: get unmanaged devices count: 1
| NetworkManager[27309]:    SCPlugin-Ifupdown: (26301216) ... get_connections.
| NetworkManager[27309]:    SCPlugin-Ifupdown: (26301216) ... get_connections (managed=false): return empty list.
| NetworkManager[27309]:    Ifupdown: get unmanaged devices count: 1
| NetworkManager[27309]: <info> trying to start the modem manager...
| NetworkManager[27309]: <info> monitoring kernel firmware directory '/lib/firmware'.
| NetworkManager[27309]: <info> WiFi enabled by radio killswitch; enabled by state file
| NetworkManager[27309]: <info> WWAN enabled by radio killswitch; enabled by state file
| NetworkManager[27309]: <info> WiMAX enabled by radio killswitch; enabled by state file
| NetworkManager[27309]: <info> Networking is enabled by state file
| NetworkManager[27309]: <debug> [1316711022.471514] [nm-device-ethernet.c:2155] supports_ethtool_carrier_detect(): ethtool is supported
| NetworkManager[27309]: <debug> [1316711022.471700] [nm-device-ethernet.c:786] real_update_initial_hw_address(): (eth1): read initial MAC address 00:25:11:7C:1C:81
| NetworkManager[27309]: <debug> [1316711022.471897] [nm-device-ethernet.c:416] constructor(): (eth1): kernel ifindex 2
| NetworkManager[27309]: <info> (eth1): carrier is ON
| NetworkManager[27309]: <info> (eth1): new Ethernet device (driver: 'ATL1E' ifindex: 2)
| NetworkManager[27309]: <info> (eth1): exported as /org/freedesktop/NetworkManager/Devices/0
| NetworkManager[27309]: <debug> [1316711022.473995] [nm-udev-manager.c:518] net_add(): ignoring interface with type 772
| NetworkManager[27309]: <warn> /sys/devices/virtual/net/virbr0: couldn't determine device driver; ignoring...
| /sbin/ifup: interface lo already configured
| NetworkManager[27309]: <debug> [1316711022.479915] [nm-netlink-monitor.c:117] link_msg_handler(): netlink link message: iface idx 1 flags 0x10049
| NetworkManager[27309]: <debug> [1316711022.480237] [nm-netlink-monitor.c:117] link_msg_handler(): netlink link message: iface idx 2 flags 0x11043
| NetworkManager[27309]: <debug> [1316711022.480383] [nm-netlink-monitor.c:117] link_msg_handler(): netlink link message: iface idx 3 flags 0x1003
| NetworkManager[27309]: <warn> bluez error getting default adapter: No such adapter
`----

> - Stop NetworkManager
> (check again if resolv.conf as overwritten)

Yes, resolv.conf has been overwritten.

Only three more lines of output:

,----
| NetworkManager[27309]: <info> caught signal 15, shutting down normally.
| NetworkManager[27309]: <warn> quit request received, terminating...
| NetworkManager[27309]: <info> exiting (success)
`----

> Could you also send me the complete /etc/NetworkManager/NetworkManager.conf file.

,----[ /etc/NetworkManager/NetworkManager.conf ]
| [main]
| plugins=ifupdown,keyfile
| 
| [ifupdown]
| managed=false
`----

I hope that this helps.

Cheers,
-Hilko





More information about the Pkg-utopia-maintainers mailing list