[Bug 1417010] Re: systemd init gets stuck reloading smbd.service

2015-02-04 Thread Martin Pitt
I thought I had DHCP fail yesterday on a failing hook, but I cannot reproduce this today. So the || true was apparently a red herring. I also linked to the Debian bug which describes the same problem, and has a proposed patch. We could apply that as a short-term solution, or try to fix this in sys

[Bug 1417010] Re: systemd init gets stuck reloading smbd.service

2015-02-04 Thread Martin Pitt
Keeping notes: This is a well-known property/problem of systemd job transactions. In its simplest form it looks like this: # cat /etc/systemd/system/foo.service [Unit] Description=some foo service Requires=dep.service After=dep.service [Service] Type=oneshot RemainAfterExit=yes ExecStart=/bin/ec

[Bug 1417010] Re: systemd init gets stuck reloading smbd.service

2015-02-03 Thread Martin Pitt
The samba DHCP enter hook needs to be fixed too, so adding a task. ** Also affects: samba (Ubuntu) Importance: Undecided Status: New ** Changed in: samba (Ubuntu) Importance: Undecided => Medium ** Changed in: samba (Ubuntu) Status: New => In Progress ** Changed in: samba (U

[Bug 1417010] Re: systemd init gets stuck reloading smbd.service

2015-02-03 Thread Martin Pitt
> since the invoke-rc.d call never actually returns Incidentally this is being discussed upstream at http://lists.freedesktop.org/archives/systemd- devel/2015-February/027877.html at the moment. Can you please try to patch /usr/sbin/invoke-rc.d with this: http://paste.ubuntu.com/10048858/ This i

[Bug 1417010] Re: systemd init gets stuck reloading smbd.service

2015-02-03 Thread Tim
Martin, that doesn't work either since the invoke-rc.d call never actually returns -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1417010 Title: systemd init gets stuck reloading smbd.service To man

[Bug 1417010] Re: systemd init gets stuck reloading smbd.service

2015-02-03 Thread Martin Pitt
I was able to fudge a similar situation in a VM. Could you please try and edit /etc/dhcp/dhclient-enter-hooks.d/samba to append a "||true" in the third last line where it calls invoke-rc.d smbd reload? For reference: While smbd is not yet started (as it waits for $network) this will fail with code

[Bug 1417010] Re: systemd init gets stuck reloading smbd.service

2015-02-03 Thread Martin Pitt
Further explaining: ... and if the DHCP enter hook fails, then the whole DHCP request fails, this ifup@eth0 never succeeds. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1417010 Title: systemd init

[Bug 1417010] Re: systemd init gets stuck reloading smbd.service

2015-02-02 Thread Martin Pitt
Keeping notes: > 50 network.target start waiting This is another bug, because ifup@.service has Before=network.target. That's too strict, and should be Before=network-online.target. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. htt

[Bug 1417010] Re: systemd init gets stuck reloading smbd.service

2015-02-02 Thread Tim
journalctl debug logs from hang ** Attachment added: "logs" https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1417010/+attachment/4310992/+files/logs -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/

[Bug 1417010] Re: systemd init gets stuck reloading smbd.service

2015-02-02 Thread Martin Pitt
It seems this is a dependency loop: (1) network-online.target waits for ifup@eth0.service as it's in /etc/network/interfaces (2) ifup@eth0.service starts during boot, triggered by udev; through samba's smbd dhclient-enter hook it calls invoke-rc.d smbd reload (3) /etc/init.d/smbd has "Require