multipathd.socket unit fails to start ("Failed to listen on sockets: Address already in use")
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
multipath-tools (Ubuntu) |
Fix Released
|
Medium
|
Mathieu Trudel-Lapierre | ||
Zesty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
Multipath users on Ubuntu Server will see error messages from multipathd at boot. While the system continues to boot and is in a stable state, multipathd should be appropriately handled via its systemd unit after the system is booted.
[Test case]
1) Install with multipath enabled (disk-detect/
2) Boot the installed system
3) Verify that there are no error messages from multipathd at boot.
[Regression potential]
This update changes the startup/shutdown login in initramfs at an early boot state, this could lead to failures to complete the booting process for systems that depend on multipath being available to bring up the rootfs, or failure to correctly drive multipathd/
---
This bug is used to include one more patch to completely fix LP 1670811.
That patch is mentioned in LP 1670811 comment 15 [1].
It addresses the case in which the initramfs instance of multipathd takes a while to actually shutdown after its receives the signal from initramfs/
That shutdown is asynchronous, and keeps the multipathd socket open.
If it is still open by the time the root fs is mounted and its units are started, the multipathd.socket will fail to start.
Patch attached.
Logs:
----
[ 36.465332] systemd[1]: Failed to listen on multipathd control socket.
[FAILED] Failed to listen on multipathd control socket.
See 'systemctl status multipathd.socket' for details.
# systemctl status multipathd.socket --no-pager -l
* multipathd.socket - multipathd control socket
Loaded: loaded (/lib/systemd/
Active: failed (Result: resources)
Listen: @/org/kernel/
# journalctl -b -x
...
Mar 07 11:02:04 ltciofvtr-s824-lp8 systemd[1]: multipathd.socket: Failed to listen on sockets: Address already in use
Mar 07 11:02:04 ltciofvtr-s824-lp8 systemd[1]: Failed to listen on multipathd control socket.
Mar 07 11:02:04 ltciofvtr-s824-lp8 systemd[1]: multipathd.socket: Unit entered failed state.
...
Links:
-----
[1] https:/
description: | updated |
Changed in multipath-tools (Ubuntu): | |
importance: | Undecided → Medium |
Changed in multipath-tools (Ubuntu Zesty): | |
importance: | Undecided → Medium |
Additional bug reported by @cyphermox request.