-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Steve Langasek wrote: > On Thu, Mar 29, 2007 at 02:23:27AM +0300, Eddy Petrișor wrote: > >> Steve Langasek wrote: >>> On Wed, Mar 28, 2007 at 08:45:44PM +0300, Eddy Petrișor wrote: >>>> Network Manager was installed although only the desktop task was >>>> selected. This is broken since on a desktop it links the operation of >>>> setting up the network to an X application. Running >>>> /etc/init.d/networking restart had no effect since Network Manager >>>> "takes care" not to allow that script to do anything. > >>> How does it do this? There's nothing in the network-manager package's >>> maintainer scripts that would do this. > >>>> I haven't tested, but that would mean that I can't start the network >>>> unless I can start X > >>> Um, so you've filed a serious bug without testing that anything has actually >>> broken? > >> No, you misunderstood. > >> These don't work (according to /usr/share/doc/README.Debian, only >> for interfaces marked auto and using dhcp): > >> /etc/init.d/networking restart > >> /etc/init.d/networking start > >> until you log in and enable the network interface. > > Yes, and I asked what the *mechanism* was that prevented this. From the > README: > > Configuration of wireless and ethernet interfaces > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Only devices that are *not* listed in /etc/network/interfaces or which have > been configured "auto" and "dhcp" (with no other options) are managed by NM. > > But I don't see anything in the package that stops ifupdown from managing > these devices normally; the implication seems to be that NM will provide > /additional/ management capabilities for such devices.
Ok, I looked more deeply into this today. It seems that the problem lies in the "allow-hotplug eth0" option vs. "auto eth0". Initially somehow (probably because stop didn't working at all with NM installed) I blamed NM for the fact that "/etc/init.d/networking start" did not result in dhclient3 not being ran again. >> I meant that I haven't tested right out the box from a text console, >> before starting any X session, but the commands above did not work >> from X until NM fiddled with it. > > Please explain what "did not work" means. What changes did you make that > did not take effect? Are you sure they didn't take effect, only to be > immediately overridden by NM? (The answer to this last probably doesn't > affect the severity of the bug, but may point to the solution.) "/etc/init.d/networking stop" has zero effect. >> The only case where the init script worked was when I enabled the >> interface from NM and *then* it worked, even if I logged out of the >> X session. This would work until NM disables/deconfigures(/whatever >> is appropriate term would be according to NM) the card, when the >> init script, again, has no effect. > > Ok, still not sure what it means for this to not work. NM provides no hooks > that prevent ifupdown from doing its job. For more information about the issues, see the attached (beautified) script. - -- Regards, EddyP ============================================= "Imagination is more important than knowledge" A.Einstein -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGDBlLY8Chqv3NRNoRApDQAJ47fgkzopfCZ+zVwOUoBMoiEU5nDACeLs2f sd0itrROtfcNAF80OO7hLog= =24zc -----END PGP SIGNATURE-----
Script started on Jo 29 mar 2007 19:57:11 +0300 debian:/# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9450 errors:0 dropped:0 overruns:0 frame:0 TX packets:2313 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14039029 (13.3 MiB) TX bytes:149074 (145.5 KiB) Interrupt:10 Base address:0xc100 debian:/# ps ax | grep dhc 1740 ? S<s 0:00 dhclient3 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp3/dhclient.eth0.leases eth0 8507 pts/2 R+ 0:00 grep dhc debian:/# /etc/init.d/networking stop Deconfiguring network interfaces...There is already a pid file /var/run/dhclient.eth0.pid with pid 1740 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/52:54:00:12:34:56 Sending on LPF/eth0/52:54:00:12:34:56 Sending on Socket/fallback DHCPRELEASE on eth0 to 10.0.2.2 port 67 done. debian:/# ps ax | grep dhc 8540 pts/2 S+ 0:00 grep dhc debian:/# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:9451 errors:0 dropped:0 overruns:0 frame:0 TX packets:2315 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14039089 (13.3 MiB) TX bytes:149476 (145.9 KiB) Interrupt:10 Base address:0xc100 debian:/# /etc/init.d/networking start Configuring network interfaces...done. debian:/# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:9451 errors:0 dropped:0 overruns:0 frame:0 TX packets:2315 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14039089 (13.3 MiB) TX bytes:149476 (145.9 KiB) Interrupt:10 Base address:0xc100 debian:/# ifconfig eth0debian:/# /etc/init.d/networking restart Reconfiguring network interfaces...done. debian:/# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:9451 errors:0 dropped:0 overruns:0 frame:0 TX packets:2315 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14039089 (13.3 MiB) TX bytes:149476 (145.9 KiB) Interrupt:10 Base address:0xc100 debian:/# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 b) TX bytes:560 (560.0 b) debian:/# Script done on Jo 29 mar 2007 19:58:22 +0300 Script started on Jo 29 mar 2007 20:00:12 +0300 debian:/# cat /etc/network/interfaces # 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 auto eth0 iface eth0 inet dhcp debian:/# # it seems the problem lies in allow-hotplug vs. auto debian:/# /etc/init.d/networking stop Deconfiguring network interfaces...There is already a pid file /var/run/dhclient.eth0.pid with pid 8701 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/52:54:00:12:34:56 Sending on LPF/eth0/52:54:00:12:34:56 Sending on Socket/fallback DHCPRELEASE on eth0 to 10.0.2.2 port 67 done. debian:/# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 b) TX bytes:560 (560.0 b) debian:/# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:9467 errors:0 dropped:0 overruns:0 frame:0 TX packets:2364 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14042404 (13.3 MiB) TX bytes:157722 (154.0 KiB) Interrupt:10 Base address:0xc100 debian:/# /etc/init.d/networking start Configuring network interfaces...Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/52:54:00:12:34:56 Sending on LPF/eth0/52:54:00:12:34:56 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPOFFER from 10.0.2.2 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPACK from 10.0.2.2 bound to 10.0.2.15 -- renewal in 36354 seconds. done. debian:/# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9473 errors:0 dropped:0 overruns:0 frame:0 TX packets:2381 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14043954 (13.3 MiB) TX bytes:160704 (156.9 KiB) Interrupt:10 Base address:0xc100 debian:/# # I will try to install NM, too debian:/# aptitude install network-manager [...] Reloading system message bus config...done. Restarting network connection manager: NetworkManager. Restarting network events dispatcher: NetworkManagerDispatcher. debian:/# ifconfig eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9962 errors:0 dropped:0 overruns:0 frame:0 TX packets:2574 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14764962 (14.0 MiB) TX bytes:173001 (168.9 KiB) Interrupt:10 Base address:0xc100 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 b) TX bytes:560 (560.0 b) debian:/# /etc/init.d/networking start Configuring network interfaces...done. debian:/# ifconfig eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9962 errors:0 dropped:0 overruns:0 frame:0 TX packets:2574 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14764962 (14.0 MiB) TX bytes:173001 (168.9 KiB) Interrupt:10 Base address:0xc100 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 b) TX bytes:560 (560.0 b) debian:/# /etc/init.d/networking stop Deconfiguring network interfaces...There is already a pid file /var/run/dhclient.eth0.pid with pid 8818 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/52:54:00:12:34:56 Sending on LPF/eth0/52:54:00:12:34:56 Sending on Socket/fallback DHCPRELEASE on eth0 to 10.0.2.2 port 67 send_packet: Network is unreachable send_packet: please consult README file regarding broadcast address. done. debian:/# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 b) TX bytes:560 (560.0 b) debian:/# /etc/init.d/networking start Configuring network interfaces...Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/52:54:00:12:34:56 Sending on LPF/eth0/52:54:00:12:34:56 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPOFFER from 10.0.2.2 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPACK from 10.0.2.2 bound to 10.0.2.15 -- renewal in 38286 seconds. done. debian:/# ifconfig eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9969 errors:0 dropped:0 overruns:0 frame:0 TX packets:2592 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14766597 (14.0 MiB) TX bytes:176081 (171.9 KiB) Interrupt:10 Base address:0xc100 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 b) TX bytes:560 (560.0 b) debian:/# exit Script done on Jo 29 mar 2007 20:34:09 +0300 Script started on Jo 29 mar 2007 23:41:52 +0300 debian:/# # NM was installed and the connection was activated via the gnome appl et debian:/# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10040 errors:0 dropped:0 overruns:0 frame:0 TX packets:2720 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14775697 (14.0 MiB) TX bytes:209765 (204.8 KiB) Interrupt:10 Base address:0xc100 debian:/# /etc/init.d/networking stop Deconfiguring network interfaces...done. debian:/# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:56 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:10040 errors:0 dropped:0 overruns:0 frame:0 TX packets:2720 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14775697 (14.0 MiB) TX bytes:209765 (204.8 KiB) Interrupt:10 Base address:0xc100 debian:/# # no effect debian:/# cat /etc/network/interfaces # 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 #auto eth0 iface eth0 inet dhcp debian:/# exit Script done on Jo 29 mar 2007 23:44:37 +0300