On Mon, 2014-10-27 at 13:51 +0100, Michael Biebl wrote: > allow-auto is a synonym for auto. Sure, I know,... I just do it for cosmetic reasons ^^
> The ifup@.service unit, as shipped by systemd, only deals with > "allow-hotplug" interfaces. Ah? Okay... interesting,... didn't know that... This is probably unrelated to this bug, but the whole networking stuff seems to be kinda mess right now (at least to people not deeper involved in both (ifupdown + systemd)... we still have networking.service, we have network.target, we have the ifup@.service... and I'm sure NM also has some service file (though I couldn't find it too hook in before network.target... Shouldn't the legacy sysvinit scripts go away,... and everything (including allow-auto/auto) be handled by a unit file proper? > "auto" interfaces are handled by /etc/init.d/networking, which is > shipped by ifupdown. Therefore re-assigning to ifupdown. Well as I've noted in my mails from yesterday... even with allow-hotplug there are still several things that don't work (i.e. services are being started before they can bind to the addresses)... Isn't this then something in systemd? Or is it rather a problem in the respective service's unit files? But at least apache and sks still use sysvinit legacy mode... so it probably cannot be their fault. Yesterday I've told you that I placed some cron job which is meant to restart the network+ssh every 10 minutes or so... and if this doesn't work he changes /e/n/interfaces to allow-hotplug and reboots. Attached is that script + it's logs, so that you can see what happens from that side. It's basically doing this: network-restarter.log is the main log, here with entries from two runs: 1st run: when the system was up and I connected to it and changed to allow-auto, but networking was still ok then I rebooted, the system did boot, but networking didn't come up again 2nd run: the script found that networking is down, and tried several things to bring it up again,... the output from these things and from ifconfig is in network-restarter.log.2. > Regarding logs: It would probably be helpful to boot with > systemd.log_level=debug and attach the output of journalctl -alb all attached + syslog from the last n runs... not sure if all the previous tries are helpful though,.. I did replace some privacy related stuff (ip addresses, domain names)... hopefully I didn't miss some private keys in my logs ;) > and > specifically the output of systemctl status networking.service. this is in the network-restarter.log.2 Cheers, Chris.
network-restarter
Description: application/shellscript
cron run Tue Oct 28 03:35:55 CET 2014 stage 1: OK stage 2: OK cron run Tue Oct 28 03:40:01 CET 2014 ifdown:0 ifup:0 networking restart:0 ssh:0 stage 2: OK
Tue Oct 28 03:40:01 CET 2014 *** ifconfig before stage 1 ****************************************** 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:65536 Metric:1 RX packets:672 errors:0 dropped:0 overruns:0 frame:0 TX packets:672 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:55584 (54.2 KiB) TX bytes:55584 (54.2 KiB) *** networking.service status before stage 1 ************************* ● networking.service - LSB: Raise network interfaces. Loaded: loaded (/etc/init.d/networking) Drop-In: /run/systemd/generator/networking.service.d └─50-insserv.conf-$network.conf Active: active (exited) since Tue 2014-10-28 03:38:15 CET; 1min 46s ago Process: 366 ExecStart=/etc/init.d/networking start (code=exited, status=0/SUCCESS) Oct 28 03:38:15 kronecker systemd[1]: networking.service got final SIGCHLD for state start Oct 28 03:38:15 kronecker systemd[1]: networking.service changed start -> running Oct 28 03:38:15 kronecker systemd[1]: Job networking.service/start finished, result=done Oct 28 03:38:15 kronecker systemd[1]: Started LSB: Raise network interfaces.. Oct 28 03:38:15 kronecker ntpdate[629]: Can't find host ptbtime1.ptb.de: Name or service not known (-2) Oct 28 03:38:15 kronecker ntpdate[629]: Can't find host ptbtime2.ptb.de: Name or service not known (-2) Oct 28 03:38:15 kronecker systemd[1]: Child 607 belongs to networking.service Oct 28 03:38:15 kronecker systemd[1]: Child 628 belongs to networking.service Oct 28 03:38:15 kronecker systemd[1]: networking.service: cgroup is empty Oct 28 03:38:15 kronecker systemd[1]: networking.service changed running -> exited **** ifdown output *************************************************** ifdown: interface eth0 not configured *** ifconfig after ifdown ******************************************** 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:65536 Metric:1 RX packets:672 errors:0 dropped:0 overruns:0 frame:0 TX packets:672 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:55584 (54.2 KiB) TX bytes:55584 (54.2 KiB) *** ifup output ****************************************************** Waiting for DAD... Done Waiting for DAD... Done Waiting for DAD... Done Waiting for DAD... Done Waiting for DAD... Done Waiting for DAD... Done Waiting for DAD... Done *** ifconfig after ifup ********************************************** eth0 Link encap:Ethernet HWaddr 00:19:db:32:06:7f inet addr:11.22.33.44 Bcast:85.10.205.223 Mask:255.255.255.224 inet6 addr: 2a01:aa:bb:cc::1:0/64 Scope:Global inet6 addr: 2a01:aa:bb:cc::b:0/64 Scope:Global inet6 addr: fe80::219:dbff:fe32:67f/64 Scope:Link inet6 addr: 2a01:aa:bb:cc::a:0/64 Scope:Global inet6 addr: 2a01:aa:bb:cc::2:2/64 Scope:Global inet6 addr: 2a01:aa:bb:cc::2:0/64 Scope:Global inet6 addr: 2a01:aa:bb:cc::c:1000/64 Scope:Global inet6 addr: 2a01:aa:bb:cc::c:0/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:22 errors:0 dropped:0 overruns:0 frame:0 TX packets:49 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2902 (2.8 KiB) TX bytes:6074 (5.9 KiB) 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:65536 Metric:1 RX packets:1288 errors:0 dropped:0 overruns:0 frame:0 TX packets:1288 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:104688 (102.2 KiB) TX bytes:104688 (102.2 KiB) *** /e/init.d/networking restart ouput ******************************* Restarting networking (via systemctl): networking.service. *** ifconfig after networking restart ******************************** eth0 Link encap:Ethernet HWaddr 00:19:db:32:06:7f inet addr:11.22.33.44 Bcast:85.10.205.223 Mask:255.255.255.224 inet6 addr: 2a01:aa:bb:cc::1:0/64 Scope:Global inet6 addr: 2a01:aa:bb:cc::b:0/64 Scope:Global inet6 addr: fe80::219:dbff:fe32:67f/64 Scope:Link inet6 addr: 2a01:aa:bb:cc::a:0/64 Scope:Global inet6 addr: 2a01:aa:bb:cc::2:2/64 Scope:Global inet6 addr: 2a01:aa:bb:cc::2:0/64 Scope:Global inet6 addr: 2a01:aa:bb:cc::c:1000/64 Scope:Global inet6 addr: 2a01:aa:bb:cc::c:0/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:85 errors:0 dropped:0 overruns:0 frame:0 TX packets:133 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13935 (13.6 KiB) TX bytes:21416 (20.9 KiB) 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:65536 Metric:1 RX packets:2060 errors:0 dropped:0 overruns:0 frame:0 TX packets:2060 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:165408 (161.5 KiB) TX bytes:165408 (161.5 KiB) *** networking.service status after networking restart *************** ● networking.service - LSB: Raise network interfaces. Loaded: loaded (/etc/init.d/networking) Drop-In: /run/systemd/generator/networking.service.d └─50-insserv.conf-$network.conf Active: active (exited) since Tue 2014-10-28 03:40:27 CET; 8ms ago Process: 4431 ExecStop=/etc/init.d/networking stop (code=exited, status=0/SUCCESS) Process: 4723 ExecStart=/etc/init.d/networking start (code=exited, status=0/SUCCESS) Oct 28 03:40:24 kronecker networking[4723]: Waiting for DAD... Done Oct 28 03:40:24 kronecker ntpdate[6008]: Can't find host ptbtime1.ptb.de: Name or service not known (-2) Oct 28 03:40:24 kronecker ntpdate[6008]: Can't find host ptbtime2.ptb.de: Name or service not known (-2) Oct 28 03:40:24 kronecker ntpdate[6008]: Can't find host ptbtime3.ptb.de: Name or service not known (-2) Oct 28 03:40:26 kronecker networking[4723]: Waiting for DAD... Done Oct 28 03:40:26 kronecker ntpdate[6198]: Can't find host ptbtime1.ptb.de: Name or service not known (-2) Oct 28 03:40:26 kronecker ntpdate[6198]: Can't find host ptbtime2.ptb.de: Name or service not known (-2) Oct 28 03:40:27 kronecker ntpdate[6269]: Can't find host ptbtime1.ptb.de: Name or service not known (-2) Oct 28 03:40:27 kronecker ntpdate[6269]: Can't find host ptbtime2.ptb.de: Name or service not known (-2) Oct 28 03:40:27 kronecker networking[4723]: done. Oct 28 03:40:27 kronecker systemd[1]: Child 4723 belongs to networking.service Oct 28 03:40:27 kronecker systemd[1]: networking.service: control process exited, code=exited status=0 Oct 28 03:40:27 kronecker systemd[1]: networking.service got final SIGCHLD for state start Oct 28 03:40:27 kronecker systemd[1]: networking.service changed start -> exited Oct 28 03:40:27 kronecker systemd[1]: Job networking.service/start finished, result=done Oct 28 03:40:27 kronecker systemd[1]: Started LSB: Raise network interfaces.. Oct 28 03:40:27 kronecker systemd[1]: networking.service: cgroup is empty *** ssh output ******************************************************* Restarting ssh (via systemctl): ssh.service.
smime.p7s
Description: S/MIME cryptographic signature