systemctl restart networking hangs reloading ssh.service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openssh (Debian) |
Fix Released
|
Unknown
|
|||
openssh (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt | ||
Xenial |
Fix Released
|
Low
|
Unassigned |
Bug Description
Issues "systemctl restart networking" never exits. It hangs during a call to "systemctl reload ssh.service":
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/
Drop-In: /run/systemd/
Active: activating (start) since Sat 2016-05-21 21:41:58 UTC; 18s ago
Docs: man:interfaces(5)
Process: 1288 ExecStop=
Process: 1376 ExecStartPre=
Main PID: 1383 (ifup)
Tasks: 7 (limit: 512)
Memory: 1.8M
CPU: 111ms
CGroup: /system.
├─1383 /sbin/ifup -a --read-environment
├─1479 /sbin/dhclient -1 -v -pf /run/dhclient.
├─1480 /bin/sh -c /bin/run-parts --exit-on-error /etc/network/
├─1481 /bin/run-parts --exit-on-error /etc/network/
├─1504 /bin/sh /etc/network/
├─1507 /bin/sh /usr/sbin/
└─1527 systemctl reload ssh.service
Then issuing the same command from another terminal causes the first to exit successfully (the second also exists successfully).
On the official vagrant image, I get this problem independently of whether the command is issued through and ssh session. I've gotten the same behavior on the official xenial AMIs.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ifupdown 0.8.10ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Sat May 21 21:35:08 2016
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ifupdown
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in ifupdown (Ubuntu): | |
status: | New → Confirmed |
tags: | added: patch |
Changed in openssh (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in openssh (Debian): | |
status: | Unknown → New |
Changed in openssh (Debian): | |
status: | New → Fix Released |
Changed in openssh (Ubuntu Xenial): | |
importance: | Undecided → Low |
When networking is hung, stopping ssh.service will also resolve the hang, but reloading or restating ssh.service will hang as well. There are no problems restarting or reloading ssh.service in other circumstances.