I still cannot reproduce this. In a xenial cloud instance I ran

   for i in `seq 50`; do systemctl reset-failed networking; systemctl restart 
networking; 
done

successfully, this is with a standard /etc/network/interfaces.d/50
-cloud-init.cfg with just "auto ens3" and "iface ens3 inet dhcp" and no
other interface (besides lo).

We can fix this case more centrally in invoke-rc.d though; this is only
safe for "reload" and "force-reload", but that will cover this
networking/openssh deadlock.

If you can reproduce this, please apply this patch to invoke-rc.d:

   sudo patch /usr/sbin/invoke-rc.d /tmp/invoke-rc.d.patch

and confirm that this fixes it. Thanks!

** Patch added: "invoke-rc.d patch"
   
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1584393/+attachment/4700609/+files/invoke-rc.d.patch

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

** Changed in: openssh (Ubuntu)
       Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1584393

Title:
  systemctl restart networking hangs reloading ssh.service

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to