[Pkg-utopia-maintainers] Bug#641904: network-manager: hijack /etc/resolv.conf even when managing no devices
Luca Capello
luca at pca.it
Sat Sep 17 11:12:42 UTC 2011
Package: network-manager
Version: 0.9.0-2
Severity: important
Hi there!
I have network-manager installed but I do not use it (#641902), thus it
does not manage ifupdown interfaces and my /etc/network/interfaces is:
--8<---------------cut here---------------start------------->8---
# 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
## <http://bugs.debian.org/606268>
iface eth0 inet dhcp
# The Wi-Fi interface
allow-hotplug wlan0
## <http://bugs.debian.org/606268>
iface wlan0 inet dhcp
wireless-power on
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
# ranma: Openmoko GTA02 (AKA FreeRunner)
## <http://wiki.openmoko.org/wiki/USB_Networking>
allow-hotplug usb0
iface usb0 inet static
address 192.168.0.200
netmask 255.255.255.0
post-up /root/bin/openmoko-usb0.sh up
pre-down /root/bin/openmoko-usb0.sh down
--8<---------------cut here---------------end--------------->8---
Nevertheless, after today's upgrade to 0.9.0-2 I suddenly lost network
connectivity. A closer inspection revealed that connectivity is still
there (i.e. the eth0 interface is still configured), but the problem is
that /etc/resolv.conf is now managed by network-manager, which was not
the case before.
Here the relevant part from /var/log/syslog:
--8<---------------cut here---------------start------------->8---
Sep 17 12:08:54 gismo NetworkManager[1916]: <info> caught signal 15, shutting down normally.
Sep 17 12:08:54 gismo NetworkManager[1916]: <warn> quit request received, terminating...
Sep 17 12:08:54 gismo NetworkManager[1916]: <info> Clearing nscd hosts cache.
Sep 17 12:08:54 gismo NetworkManager[1916]: <info> exiting (success)
Sep 17 12:08:54 gismo NetworkManager[30061]: <info> NetworkManager (version 0.9.0) is starting...
Sep 17 12:08:54 gismo NetworkManager[30061]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
Sep 17 12:08:54 gismo NetworkManager[30061]: <info> VPN: loaded org.freedesktop.NetworkManager.vpnc
Sep 17 12:08:54 gismo NetworkManager[30061]: <info> VPN: loaded org.freedesktop.NetworkManager.openvpn
Sep 17 12:08:54 gismo NetworkManager[30061]: SCPlugin-Ifupdown: init!
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: update_system_hostname
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPluginIfupdown: guessed connection type (eth0) = 802-3-ethernet
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: update_connection_setting_from_if_block: \
name:eth0, type:802-3-ethernet, id:Ifupdown (eth0), uuid: 681b428f-beaf-8932-dce4-687ed5bae28e
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: adding eth0 to iface_connections
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: adding iface eth0 to well_known_interfaces
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPluginIfupdown: guessed connection type (wlan0) = 802-11-wireless
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: update_connection_setting_from_if_block: \
name:wlan0, type:802-11-wireless, id:Ifupdown (wlan0), uuid: 5391eba4-6426-faca-338e-5828034ff9d1
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: update wireless settings (wlan0).
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: wireless setting key: (null)='on'
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: update wireless security settings (wlan0).
Sep 17 12:08:55 gismo NetworkManager[30061]: no (wireless) mapping found for key: wireless-power
Sep 17 12:08:55 gismo NetworkManager[30061]: nm-ifupdown-connection.c.100 - \
invalid connection read from /etc/network/interfaces: (2) ssid
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: adding iface wlan0 to well_known_interfaces
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPluginIfupdown: guessed connection type (usb0) = 802-3-ethernet
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: update_connection_setting_from_if_block: \
name:usb0, type:802-3-ethernet, id:Ifupdown (usb0), uuid: 3232978a-bef5-2ef2-3aa8-fdd650bb306d
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: addresses count: 1
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: No dns-nameserver configured in /etc/network/interfaces
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: adding usb0 to iface_connections
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: adding iface usb0 to well_known_interfaces
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: autoconnect
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: autoconnect
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPluginIfupdown: management mode: unmanaged
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: devices added \
(path: /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth0, iface: eth0)
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPluginIfupdown: locking wired connection setting
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: devices added \
(path: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0, iface: wlan0)
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: devices added
(path: /sys/devices/virtual/net/lo, iface: lo)
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: device added \
(path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: devices added
(path: /sys/devices/virtual/net/virbr0, iface: virbr0)
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: device added
(path: /sys/devices/virtual/net/virbr0, iface: virbr0): no ifupdown configuration found.
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: end _init.
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> Loaded plugin ifupdown: \
(C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list.
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> Loaded plugin keyfile:
(c) 2007 - 2010 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
Sep 17 12:08:55 gismo NetworkManager[30061]: Ifupdown: get unmanaged devices count: 2
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: (37562192) ... get_connections.
Sep 17 12:08:55 gismo NetworkManager[30061]: SCPlugin-Ifupdown: (37562192) ... get_connections \
(managed=false): return empty list.
Sep 17 12:08:55 gismo NetworkManager[30061]: Ifupdown: get unmanaged devices count: 2
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> trying to start the modem manager...
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> monitoring kernel firmware directory '/lib/firmware'.
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> found WiFi radio killswitch rfkill0 \
(at /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill0) (driver (unknown))
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> WiFi enabled by radio killswitch; enabled by state file
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> WWAN enabled by radio killswitch; enabled by state file
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> WiMAX enabled by radio killswitch; enabled by state file
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> Networking is enabled by state file
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> (eth0): carrier is ON
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> (eth0): new Ethernet device (driver: 'e1000e' ifindex: 2)
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> (wlan0): driver supports SSID scans (scan_capa 0x01).
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> (wlan0): new 802.11 WiFi device (driver: 'iwl3945' ifindex: 3)
Sep 17 12:08:55 gismo NetworkManager[30061]: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/1
Sep 17 12:08:55 gismo NetworkManager[30061]: <warn> /sys/devices/virtual/net/virbr0: \
couldn't determine device driver; ignoring...
Sep 17 12:08:55 gismo NetworkManager[30061]: <warn> bluez error getting default adapter: \
The name org.bluez was not provided by any .service files
--8<---------------cut here---------------end--------------->8---
Some questions:
1) why does network-manager look for ifupdown interfaces if it has been
told not to? IMHO with "[ifupdown] managed=false" the ifupdown
plugin should not be loaded at all, even if it is in the plugin list.
2) I thought that since I have libvirt-bin installed and since virbr0 is
not present in /etc/network/interfaces, maybe network-manager
wanted to manage it, but this is not the case from the log above.
This could be related to #637005, but in my case the default gateway is
not modified.
Please note that this was not happening with version 0.8.4.0-2 and it is
easily reproducible:
=====
root at gismo:/etc# ifdown eth0
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/00:16:d3:2c:fc:f5
Sending on LPF/eth0/00:16:d3:2c:fc:f5
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.13.0.102 port 67
Reloading /etc/samba/smb.conf: smbd only.
root at gismo:/etc# ifup eth0
Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/00:16:d3:2c:fc:f5
Sending on LPF/eth0/00:16:d3:2c:fc:f5
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 129.194.56.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 129.194.56.1
Reloading /etc/samba/smb.conf: smbd only.
bound to 129.194.56.110 -- renewal in 67602 seconds.
root at gismo:/etc# cat /etc/resolv.conf
domain unige.ch
search unige.ch
nameserver 129.194.4.32
nameserver 129.194.8.7
nameserver 129.194.4.6
root at gismo:/etc# service network-manager restart
Stopping network connection manager: NetworkManager.
Starting network connection manager: NetworkManager.
root at gismo:/etc# cat /etc/resolv.conf
# Generated by NetworkManager
root at gismo:/etc#
=====
Thx, bye,
Gismo / Luca
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-rc4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages network-manager depends on:
ii adduser 3.113
ii dbus 1.4.14-1
ii isc-dhcp-client 4.1.1-P1-17
ii libc6 2.13-21
ii libdbus-1-3 1.4.14-1
ii libdbus-glib-1-2 0.94-4
ii libgcrypt11 1.5.0-3
ii libglib2.0-0 2.28.6-1
ii libgnutls26 2.12.10-2
ii libgudev-1.0-0 172-1
ii libnl1 1.1-7
ii libnm-glib4 0.9.0-2
ii libnm-util2 0.9.0-2
ii libpolkit-gobject-1-0 0.102-1
ii libuuid1 2.19.1-5
ii lsb-base 3.2-28
ii udev 172-1
ii wpasupplicant 0.7.3-3.1
Versions of packages network-manager recommends:
pn dnsmasq-base 2.58-3
pn iptables 1.4.12-1
pn modemmanager <none>
pn policykit-1 0.102-1
pn ppp <none>
Versions of packages network-manager suggests:
pn avahi-autoipd <none>
-- Configuration Files:
/etc/NetworkManager/NetworkManager.conf changed:
[main]
plugins=ifupdown,keyfile
[ifupdown]
## <http://bugs.debian.org/606268>
managed=false
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20110917/3e859a21/attachment.pgp>
More information about the Pkg-utopia-maintainers
mailing list