Package: network-manager Version: 0.9.4.0-1 Severity: important Usertags: pca.it-communication
Hi there! Now that I know how to use NetworkManager via the CLI (see #641902 and #637769), I configured my Debian sid accordingly. However, there is a problem with the parsing of /etc/network/interfaces, here is (was) mine: --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 #NetworkManager#iface eth0 inet dhcp # The Wi-Fi interface allow-hotplug wlan0 #NetworkManager#iface wlan0 inet dhcp # 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--- The above causes eth0 to be configured with the values for usb0: ===== Mar 29 10:26:38 gismo kernel: imklog 5.8.9, log source = /proc/kmsg started. Mar 29 10:26:38 gismo rsyslogd: [origin software="rsyslogd" swVersion="5.8.9" x-pid="1233" x-info="http://www.rsyslog.com"] start Mar 29 10:26:38 gismo kernel: [ 0.000000] Initializing cgroup subsys cpuset Mar 29 10:26:38 gismo kernel: [ 0.000000] Initializing cgroup subsys cpu Mar 29 10:26:38 gismo kernel: [ 0.000000] Linux version 3.2.0-2-amd64 (Debian 3.2.12-1) ([email protected]) (gcc version 4.6.3 (Debian 4.6.3-1) ) #1 SMP Tue Mar 20 18:36:37 UTC 2012 Mar 29 10:26:38 gismo kernel: [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.2.0-2-amd64 root=/dev/mapper/gismo-root ro quiet [...] Mar 29 10:26:38 gismo kernel: [ 1.295484] e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k Mar 29 10:26:38 gismo kernel: [ 1.295490] e1000e: Copyright(c) 1999 - 2011 Intel Corporation. Mar 29 10:26:38 gismo kernel: [ 1.295538] e1000e 0000:02:00.0: Disabling ASPM L0s L1 Mar 29 10:26:38 gismo kernel: [ 1.295563] e1000e 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 Mar 29 10:26:38 gismo kernel: [ 1.295595] e1000e 0000:02:00.0: setting latency timer to 64 Mar 29 10:26:38 gismo kernel: [ 1.295863] e1000e 0000:02:00.0: irq 44 for MSI/MSI-X [...] Mar 29 10:26:38 gismo kernel: [ 1.413275] e1000e 0000:02:00.0: eth0: (PCI Express:2.5GT/s:Width x1) 00:16:d3:2c:fc:f5 Mar 29 10:26:38 gismo kernel: [ 1.413283] e1000e 0000:02:00.0: eth0: Intel(R) PRO/1000 Network Connection Mar 29 10:26:38 gismo kernel: [ 1.413365] e1000e 0000:02:00.0: eth0: MAC: 2, PHY: 2, PBA No: 005302-003 [...] Mar 29 10:26:38 gismo NetworkManager[1270]: <info> NetworkManager (version 0.9.4.0) is starting... Mar 29 10:26:38 gismo NetworkManager[1270]: <info> Read config file /etc/NetworkManager/NetworkManager.conf Mar 29 10:26:38 gismo NetworkManager[1270]: <info> VPN: loaded org.freedesktop.NetworkManager.vpnc Mar 29 10:26:38 gismo NetworkManager[1270]: <info> VPN: loaded org.freedesktop.NetworkManager.openvpn Mar 29 10:26:38 gismo dbus[1261]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper) Mar 29 10:26:39 gismo polkitd[1290]: started daemon version 0.104 using authority implementation `local' version `0.104' Mar 29 10:26:39 gismo dbus[1261]: [system] Successfully activated service 'org.freedesktop.PolicyKit1' Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: init! Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: update_system_hostname Mar 29 10:26:39 gismo NetworkManager[1270]: SCPluginIfupdown: guessed connection type (usb0) = 802-3-ethernet Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:usb0, type:802-3-ethernet, id:Ifupdown (usb0), uuid: 3232978a-bef5-2ef2-3aa8-fdd650bb306d Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: addresses count: 1 Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: No dns-nameserver configured in /etc/network/interfaces Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: adding usb0 to iface_connections Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: adding iface usb0 to well_known_interfaces Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: autoconnect Mar 29 10:26:39 gismo NetworkManager[1270]: SCPluginIfupdown: management mode: managed Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth0, iface: eth0) Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/eth0, iface: eth0): no ifupdown configuration found. Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0, iface: wlan0) Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0, iface: wlan0): no ifupdown configuration found. Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo) Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found. Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: end _init. Mar 29 10:26:39 gismo NetworkManager[1270]: <info> Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list. Mar 29 10:26:39 gismo NetworkManager[1270]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc. To report bugs please use the NetworkManager mailing list. Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: (20704064) ... get_connections. Mar 29 10:26:39 gismo NetworkManager[1270]: SCPlugin-Ifupdown: (20704064) connections count: 1 Mar 29 10:26:39 gismo NetworkManager[1270]: claim_connection: assertion `nm_connection_get_path (NM_CONNECTION (connection)) == NULL' failed Mar 29 10:26:39 gismo NetworkManager[1270]: <info> trying to start the modem manager... Mar 29 10:26:39 gismo NetworkManager[1270]: <info> monitoring kernel firmware directory '/lib/firmware'. Mar 29 10:26:39 gismo NetworkManager[1270]: <info> found WiFi radio killswitch rfkill0 (at /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill0) (driver (unknown)) Mar 29 10:26:39 gismo NetworkManager[1270]: <info> WiFi disabled by radio killswitch; enabled by state file Mar 29 10:26:39 gismo NetworkManager[1270]: <info> WWAN enabled by radio killswitch; enabled by state file Mar 29 10:26:39 gismo NetworkManager[1270]: <info> WiMAX enabled by radio killswitch; enabled by state file Mar 29 10:26:39 gismo NetworkManager[1270]: <info> Networking is enabled by state file Mar 29 10:26:39 gismo NetworkManager[1270]: <warn> failed to allocate link cache: (-10) Operation not supported Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (eth0): carrier is OFF Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (eth0): new Ethernet device (driver: 'e1000e' ifindex: 2) Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0 Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (eth0): now managed Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (eth0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2] Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (eth0): bringing up device. [...] Mar 29 10:26:39 gismo kernel: [ 16.715443] e1000e 0000:02:00.0: irq 44 for MSI/MSI-X Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (eth0): preparing device. Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (eth0): deactivating device (reason 'managed') [2] Mar 29 10:26:39 gismo kernel: [ 16.768200] e1000e 0000:02:00.0: irq 44 for MSI/MSI-X Mar 29 10:26:39 gismo kernel: [ 16.769151] ADDRCONF(NETDEV_UP): eth0: link is not ready Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (wlan0): using nl80211 for WiFi device control Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (wlan0): new 802.11 WiFi device (driver: 'iwl3945' ifindex: 3) Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/1 Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (wlan0): now managed Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (wlan0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2] Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (wlan0): bringing up device. Mar 29 10:26:39 gismo NetworkManager[1270]: <info> (wlan0): deactivating device (reason 'managed') [2] Mar 29 10:26:39 gismo NetworkManager[1270]: <warn> bluez error getting default adapter: The name org.bluez was not provided by any .service files Mar 29 10:26:41 gismo kernel: [ 18.949990] ip_tables: (C) 2000-2006 Netfilter Core Team Mar 29 10:26:41 gismo kernel: [ 19.262437] Bridge firewalling registered Mar 29 10:26:41 gismo NetworkManager[1270]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/virbr0, iface: virbr0) Mar 29 10:26:41 gismo NetworkManager[1270]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/virbr0, iface: virbr0): no ifupdown configuration found. Mar 29 10:26:41 gismo NetworkManager[1270]: <warn> /sys/devices/virtual/net/virbr0: couldn't determine device driver; ignoring [...] Mar 29 10:29:00 gismo NetworkManager[1270]: <info> (eth0): carrier now ON (device state 20) Mar 29 10:29:00 gismo kernel: [ 157.693057] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None Mar 29 10:29:00 gismo kernel: [ 157.693661] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Mar 29 10:29:00 gismo NetworkManager[1270]: <info> (eth0): device state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40] Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Auto-activating connection 'Ifupdown (usb0)'. Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) starting connection 'Ifupdown (usb0)' Mar 29 10:29:00 gismo NetworkManager[1270]: <info> (eth0): device state change: disconnected -> prepare (reason 'none') [30 40 0] Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled... Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started... Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled... Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete. Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting... Mar 29 10:29:00 gismo NetworkManager[1270]: <info> (eth0): device state change: prepare -> config (reason 'none') [40 50 0] Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) successful. Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled. Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete. Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) started... Mar 29 10:29:00 gismo NetworkManager[1270]: <info> (eth0): device state change: config -> ip-config (reason 'none') [50 70 0] Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled... Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Beginning IP6 addrconf. Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete. Mar 29 10:29:00 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started... Mar 29 10:29:01 gismo NetworkManager[1270]: <info> Clearing nscd hosts cache. Mar 29 10:29:01 gismo NetworkManager[1270]: <info> (eth0): device state change: ip-config -> activated (reason 'none') [70 100 0] Mar 29 10:29:01 gismo NetworkManager[1270]: <info> Policy set 'Ifupdown (usb0)' (eth0) as default for IPv4 routing and DNS. Mar 29 10:29:01 gismo NetworkManager[1270]: <info> Activation (eth0) successful, device activated. Mar 29 10:29:01 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete. Mar 29 10:29:01 gismo dbus[1261]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper) Mar 29 10:29:01 gismo dbus[1261]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' Mar 29 10:29:10 gismo kernel: [ 167.776053] eth0: no IPv6 routers present Mar 29 10:29:20 gismo NetworkManager[1270]: <info> (eth0): IP6 addrconf timed out or failed. Mar 29 10:29:20 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled... Mar 29 10:29:20 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) started... Mar 29 10:29:20 gismo NetworkManager[1270]: <info> Activation (eth0) Stage 4 of 5 (IPv6 Configure Timeout) complete. Mar 29 10:33:19 gismo NetworkManager[1270]: <info> (eth0): carrier now OFF (device state 100, deferring action for 4 seconds) Mar 29 10:33:19 gismo kernel: [ 417.164189] e1000e: eth0 NIC Link is Down Mar 29 10:33:23 gismo NetworkManager[1270]: <info> (eth0): device state change: activated -> unavailable (reason 'carrier-changed') [100 20 40] Mar 29 10:33:23 gismo NetworkManager[1270]: <info> (eth0): deactivating device (reason 'carrier-changed') [40] Mar 29 10:33:23 gismo NetworkManager[1270]: <info> Clearing nscd hosts cache. Mar 29 10:33:23 gismo dbus[1261]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper) Mar 29 10:33:23 gismo dbus[1261]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' ===== usb0 is recognized by the ifupdown plugin as 802-3-ethernet, which is correct (that stanza was for connecting the Openmoko GTA02 via the cdc_ether kernel module), but the fact that this hijacks eth0 is plainly wrong. I guess the problem is that usb0 is not treated as a new interface, distinct from eth0. I do not know how this bug could be solved: according to the documentation (shipped by the network-manager-dev package in /usr/share/gtk-doc/html/NetworkManager/ref-settings.html), however, there is no option to specify an interface to which a connection applies (except for a vlan stanza). While it is possible to do that for its mac-address (but only for infiniband, wimax, 802-3-ethernet and 802-11-wireless stanzas), this does not reflect the flexibility of /etc/network/interfaces. Of all the bugs already present in the Debian BTS, I do not think that mine has already been reported, at least it does not seem to be: - #433734 (wlan0=$NAME parsing) - #498931 (wording in /u/s/d/n-m/README.Debian, and probably fixed) - #508383 (forcing n-m to manage interfaces, and probably fixed) - #528095 (general /e/n/i parser) - #617691 (multiple interfaces with static addresses) - #644631 (IPv4 and IPv6, and probably fixed) However, it could be related to: - #527965 (virtual interfaces) - #606268 (d-i configuration in /e/n/i) The last one seems to be the real problem, especially: <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606268#153> However, it seems that commenting or removing eth0 in /etc/network/interfaces is not enough: if the ifupdown plugin is enabled (managed=true), then whenever I plug a cable NetworkManager treats eth0 as usb0. 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.2.0-2-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+nmu1 ii dbus 1.4.18-1 ii dpkg 1.16.2 ii isc-dhcp-client 4.2.2.dfsg.1-4 ii libc6 2.13-27 ii libdbus-1-3 1.4.18-1 ii libdbus-glib-1-2 0.98-1 ii libgcrypt11 1.5.0-3 ii libglib2.0-0 2.30.2-6 ii libgnutls26 2.12.18-1 ii libgudev-1.0-0 175-3.1 ii libnl-3-200 3.2.7-2 ii libnl-genl-3-200 3.2.7-2 ii libnl-route-3-200 3.2.7-2 ii libnm-glib4 0.9.4.0-1 ii libnm-util2 0.9.4.0-1 ii libpolkit-gobject-1-0 0.104-2 ii libuuid1 2.20.1-4 ii lsb-base 4.1+Debian0 ii udev 175-3.1 ii wpasupplicant 0.7.3-6 Versions of packages network-manager recommends: pn crda <none> pn dnsmasq-base 2.60-2 pn iptables 1.4.12.2-3 pn modemmanager <none> pn policykit-1 0.104-2 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] managed=true -- no debconf information
pgpy0R3MOnyOt.pgp
Description: PGP signature

