[Pkg-utopia-maintainers] Bug#651867: Bug#651867: network-manager: /etc/resolv.conf replaced with empty config
Anders Boström
anders at bostrom.dyndns.org
Mon Dec 12 21:45:28 UTC 2011
>>>>> "MB" == Michael Biebl <biebl at debian.org> writes:
MB> On 12.12.2011 19:32, Anders Boström wrote:
>> Package: network-manager
>> Version: 0.9.2.0-1
>> Severity: important
>>
>> Hi!
>>
>> network-manager replaced my working /etc/resolv.conf file with an file
>> looking like this:
>>
>> eckert:~# cat /etc/resolv.conf
>> # Generated by NetworkManager
>> eckert:~#
>>
>> It can never be good to replace resolv.conf with an empty config...
>>
>> My network configuration is quite simple, just a static IP-address
>> with a single gateway. The gateway is also DNS-server.
MB> Hm, this should be fixed since 0.9.1.95-1.
My network-manager history, from /var/log/dpkg.log:
2011-11-19 20:56:26 install network-manager <none> 0.9.0-2
2011-11-19 21:03:52 configure network-manager 0.9.0-2 <none>
2011-11-19 21:03:53 status installed network-manager 0.9.0-2
2011-11-22 21:45:26 upgrade network-manager 0.9.0-2 0.9.2.0-1
2011-11-22 21:47:31 configure network-manager 0.9.2.0-1 <none>
2011-11-22 21:47:31 status installed network-manager 0.9.2.0-1
And the empty resolv.conf:
eckert:~# ls -l /etc/resolv.conf
-rw-r--r-- 1 root root 30 Nov 22 21:47 /etc/resolv.conf
eckert:~#
It seems like to problem occured at the time of upgrade from 0.9.0-2
to 0.9.2.0-1 .
MB> Could you do the following steps:
MB> 1/ stop network-manager (service network-manager stop)
MB> 2/ restart ifupdown (service networking restart)
MB> 3/ check if /etc/resolv.conf is corretly set
Yes it is OK, not modified from my manual configuration.
However, eth0 is down after this, and I got this:
eckert:~# service networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...done.
eckert:~#
MB> 4/ start network-manager: NetworkManager --no-daemon --log-level=debug
MB> (redirect the output to a file)
MB> 5/ check if /etc/resolf.conf has been overwritten
No, it has not. And eth0 is down.
MB> 6/ stop network-manager
MB> 7/ check /etc/resolv.conf has been overwritten
No, still not overwritten.
I also tested with 'ifup eth0' before running NetworkManager in
debug-mode. The attached log-file is from the test with eth0
up. However, /etc/resolv.conf was never overwritten.
MB> Attach the log file, the contents of /etc/network/interfaces and the
MB> output of nm-tool to the bug report, please.
OK, attachments follows.
/ Anders
-------------- next part --------------
NetworkManager[24163]: <info> NetworkManager (version 0.9.2.0) is starting...
NetworkManager[24163]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
NetworkManager[24163]: SCPlugin-Ifupdown: init!
NetworkManager[24163]: SCPlugin-Ifupdown: update_system_hostname
NetworkManager[24163]: SCPluginIfupdown: guessed connection type (eth0) = 802-3-ethernet
NetworkManager[24163]: SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:eth0, type:802-3-ethernet, id:Ifupdown (eth0), uuid: 681b428f-beaf-8932-dce4-687ed5bae28e
NetworkManager[24163]: SCPlugin-Ifupdown: addresses count: 1
NetworkManager[24163]: SCPlugin-Ifupdown: adding eth0 to iface_connections
NetworkManager[24163]: SCPlugin-Ifupdown: adding iface eth0 to well_known_interfaces
NetworkManager[24163]: SCPluginIfupdown: guessed connection type (eth0:0) = 802-3-ethernet
NetworkManager[24163]: SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:eth0:0, type:802-3-ethernet, id:Ifupdown (eth0:0), uuid: 77e71748-5048-600a-e518-de33aa3e7a5d
NetworkManager[24163]: SCPlugin-Ifupdown: addresses count: 1
NetworkManager[24163]: SCPlugin-Ifupdown: No dns-nameserver configured in /etc/network/interfaces
NetworkManager[24163]: SCPlugin-Ifupdown: adding eth0:0 to iface_connections
NetworkManager[24163]: SCPlugin-Ifupdown: adding iface eth0:0 to well_known_interfaces
NetworkManager[24163]: SCPlugin-Ifupdown: autoconnect
NetworkManager[24163]: SCPluginIfupdown: management mode: unmanaged
NetworkManager[24163]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.5/0000:02:00.0/net/eth0, iface: eth0)
NetworkManager[24163]: SCPluginIfupdown: locking wired connection setting
NetworkManager[24163]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
NetworkManager[24163]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
NetworkManager[24163]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/virbr0, iface: virbr0)
NetworkManager[24163]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/virbr0, iface: virbr0): no ifupdown configuration found.
NetworkManager[24163]: SCPlugin-Ifupdown: end _init.
NetworkManager[24163]: <info> Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list.
NetworkManager[24163]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
NetworkManager[24163]: Ifupdown: get unmanaged devices count: 1
NetworkManager[24163]: SCPlugin-Ifupdown: (15347504) ... get_connections.
NetworkManager[24163]: SCPlugin-Ifupdown: (15347504) ... get_connections (managed=false): return empty list.
NetworkManager[24163]: Ifupdown: get unmanaged devices count: 1
NetworkManager[24163]: <info> modem-manager is now available
NetworkManager[24163]: <info> monitoring kernel firmware directory '/lib/firmware'.
NetworkManager[24163]: <info> WiFi enabled by radio killswitch; enabled by state file
NetworkManager[24163]: <info> WWAN enabled by radio killswitch; enabled by state file
NetworkManager[24163]: <info> WiMAX enabled by radio killswitch; enabled by state file
NetworkManager[24163]: <info> Networking is enabled by state file
NetworkManager[24163]: <debug> [1323725604.258146] [nm-device-ethernet.c:2101] supports_ethtool_carrier_detect(): ethtool is supported
NetworkManager[24163]: <debug> [1323725604.258232] [nm-device-ethernet.c:787] real_update_initial_hw_address(): (eth0): read initial MAC address 00:22:15:55:EF:C5
NetworkManager[24163]: <debug> [1323725604.258279] [nm-device-ethernet.c:417] constructor(): (eth0): kernel ifindex 2
NetworkManager[24163]: <info> (eth0): carrier is ON
NetworkManager[24163]: <info> (eth0): new Ethernet device (driver: 'ATL1E' ifindex: 2)
NetworkManager[24163]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
NetworkManager[24163]: <debug> [1323725604.258705] [nm-udev-manager.c:490] net_add(): (lo): ignoring interface with type 772
NetworkManager[24163]: <warn> /sys/devices/virtual/net/virbr0: couldn't determine device driver; ignoring...
/sbin/ifup: interface lo already configured
NetworkManager[24163]: <warn> bluez error getting default adapter: The name org.bluez was not provided by any .service files
NetworkManager[24163]: <debug> [1323725604.260400] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 1 flags 0x10049
NetworkManager[24163]: <debug> [1323725604.260419] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 2 flags 0x11043
NetworkManager[24163]: <debug> [1323725604.260468] [nm-netlink-monitor.c:118] link_msg_handler(): netlink link message: iface idx 3 flags 0x1003
NetworkManager[24163]: <info> caught signal 2, shutting down normally.
NetworkManager[24163]: <warn> quit request received, terminating...
NetworkManager[24163]: <info> exiting (success)
-------------- next part --------------
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 10.100.42.2
netmask 255.255.255.0
network 10.100.42.0
broadcast 10.100.42.255
gateway 10.100.42.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.100.42.1
dns-search bostrom.dyndns.org
#noauto eth0
#iface eth0 inet dhcp
# automatically added when upgrading
noauto eth0:0
iface eth0:0 inet static
address 192.168.1.193
network 192.168.1.192
netmask 255.255.255.192
broadcast 192.168.1.255
-------------- next part --------------
eckert:~# nm-tool
NetworkManager Tool
State: disconnected
- Device: eth0 -----------------------------------------------------------------
Type: Wired
Driver: ATL1E
State: unmanaged
Default: no
HW Address: 00:22:15:55:EF:C5
Capabilities:
Carrier Detect: yes
Speed: 100 Mb/s
Wired Properties
Carrier: on
eckert:~#
More information about the Pkg-utopia-maintainers
mailing list