[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-05 Thread Martin Pitt
As explained in https://bugs.debian.org/777113 I want to fix this in a
more generic way in "service", "invoke-rc.d", and /lib/lsb/init-
functions.d/40-systemd.

** Bug watch added: Debian Bug tracker #777113
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777113

** Package changed: samba (Ubuntu) => sysvinit (Ubuntu)

** Also affects: sysvinit (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777113
   Importance: Unknown
   Status: Unknown

** Changed in: sysvinit (Ubuntu)
Milestone: None => ubuntu-15.03

** Changed in: sysvinit (Ubuntu)
 Assignee: (unassigned) => Martin Pitt (pitti)

** Bug watch added: Debian Bug tracker #777115
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777115

** Also affects: systemd (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777115
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Tim
I tested the updated service scripts and indeed does also fix my boot
hang!

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
Actually, please forget the PPA; after further discussions with the
Debian and upstream systemd maintainers we have settled for a different
solution. This now works for me with samba and postfix.

Can you please replace /usr/sbin/service with this script and confirm
that it also fixes your boot hang? Thanks!

** Attachment added: "fixed /usr/sbin/service"
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+attachment/4312368/+files/service

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
Tim: Can you please revert the change to "service" (apt-get install
--reinstall sysvinit-utils) and test the systemd in
https://launchpad.net/~pitti/+archive/ubuntu/ppa ?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
This is another patch I experimented with which helps with a different
kind of deadlock problem. But with the previous patch all of the
practically reported issues are already covered, so I just keep it here
in case we need it in the future.

** Patch added: "WIP: manager: avoid deadlocks for requests on already queued 
units"
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+attachment/4312245/+files/0003-WIP-manager-avoid-deadlocks-for-requests-on-already-.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
I pondered this for a while; quite naturally there is no perfect
solution as synchronous reload/restart requests in hooks which may be
part of a systemd unit transaction are fundamentally against the design
of systemd. But this patch now seems to fix this bug and the three
referenced Debian bugs, and supersedes Avoid-reload-and-re-start-
requests-during-early-boot.patch and Avoid-reloading-services-when-
shutting-down.patch, so I think it's better.

Attaching here so that I don't lose them.

** Patch added: "manager: avoid queueing reloads of inactive units"
   
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+attachment/4312244/+files/0002-manager-avoid-queueing-reloads-of-inactive-units.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
For keeping references: This is another case like
https://bugs.debian.org/635777 and https://bugs.debian.org/624599 just a
bit more general.

** Bug watch added: Debian Bug tracker #635777
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635777

** Bug watch added: Debian Bug tracker #624599
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=624599

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Bug Watch Updater
** Changed in: samba (Debian)
   Status: Unknown => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
** Changed in: systemd (Ubuntu)
   Status: Triaged => In Progress

** Changed in: systemd (Ubuntu)
Milestone: None => ubuntu-15.03

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1417010] Re: Reloading services can result in a deadlock under systemd

2015-02-04 Thread Martin Pitt
** Summary changed:

- systemd init gets stuck reloading smbd.service
+ Reloading services can result in a deadlock under systemd

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1417010

Title:
  Reloading services can result in a deadlock under systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1417010/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs