Skip to contentSkip to conversation

multipathd.socket: add missing conditions from service unit

PATCH In review Luca BRUNO 2 participants 2 messages Sep 24, 2021 Device mapper

lore
Share & tools
lore

Luca BRUNO

author
#0 lore raw

PATCH 1/1 multipathd.socket: add missing conditions from service unit

This aligns 'multipathd' socket and service units, by adding the start conditions that are set on the service but not on the socket. It should help avoiding situations where the socket unit ends up marked as failed after hitting its retry-limit.

---
 multipathd/multipathd.socket | 3 +++
 1 file changed, 3 insertions(+)
multipathd.socket +3 -0
index 0ed4a1f7..c777e5e3 100644
@@ -1,6 +1,9 @@
 [Unit]
 Description=multipathd control socket
 DefaultDependencies=no
+ConditionKernelCommandLine=!nompath
+ConditionKernelCommandLine=!multipath=off
+ConditionVirtualization=!container
 Before=sockets.target
 
 [Socket]
Signature · 6 lines
2.30.2

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 22 lines · Luca BRUNO

This aligns 'multipathd' socket and service units, by adding the start conditions that are set on the service but not on the socket. It should help avoiding situations where the socket unit ends up marked as failed after hitting its retry-limit.

---
 multipathd/multipathd.socket | 3 +++

 1 file changed, 3 insertions(+)
multipathd.socket +0 -0
index 0ed4a1f7..c777e5e3 100644
@@ -1,6 +1,9 @@

 [Unit]
 Description=multipathd control socket
 DefaultDependencies=no

multipathd.socket +3 -0
+ConditionKernelCommandLine=!nompath
+ConditionKernelCommandLine=!multipath=off
+ConditionVirtualization=!container
Quoted 3 lines

 Before=sockets.target

 [Socket]

Thanks!

I'll apply this to
https://github.com/openSUSE/multipath-tools/tree/queue

Quoted 1 line

From there it'll be submitted to the main repo.

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel