diff --git a/0077-multipathd.socket-add-missing-conditions-from-servic.patch b/0077-multipathd.socket-add-missing-conditions-from-servic.patch new file mode 100644 index 0000000000000000000000000000000000000000..3b1fb1cfb641b86308cb4c01730d635a664121ec --- /dev/null +++ b/0077-multipathd.socket-add-missing-conditions-from-servic.patch @@ -0,0 +1,43 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Luca BRUNO +Date: Fri, 24 Sep 2021 09:34:01 +0000 +Subject: [PATCH] multipathd.socket: add missing conditions from service unit + +Upstream Status: https://github.com/openSUSE/multipath-tools.git +Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2008101 +Conflicts: Match the conditions with RHEL-8 multipathd.service unit + +commit 345ccf564ce7d904641bd32baf4fc53c2283d95c +Author: Luca BRUNO +Date: Fri Sep 24 09:34:01 2021 +0000 + + 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. + + Fixes: https://github.com/opensvc/multipath-tools/issues/15 + Signed-off-by: Luca BRUNO + Reviewed-by: Martin Wilck + +Signed-off-by: Benjamin Marzinski +--- + multipathd/multipathd.socket | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/multipathd/multipathd.socket b/multipathd/multipathd.socket +index 0ed4a1f7..c62c0fc8 100644 +--- a/multipathd/multipathd.socket ++++ b/multipathd/multipathd.socket +@@ -1,6 +1,9 @@ + [Unit] + Description=multipathd control socket + DefaultDependencies=no ++ConditionPathExists=/etc/multipath.conf ++ConditionKernelCommandLine=!nompath ++ConditionKernelCommandLine=!multipath=off + Before=sockets.target + + [Socket] diff --git a/device-mapper-multipath.spec b/device-mapper-multipath.spec index c6c343c63dcea9e5132a938bdb70e6513e9002f5..b2d6e0003d070be07cc60567aed882a2e05b2195 100644 --- a/device-mapper-multipath.spec +++ b/device-mapper-multipath.spec @@ -2,7 +2,7 @@ Summary: Tools to manage multipath devices using device-mapper Name: device-mapper-multipath Version: 0.8.4 -Release: 17%{anolis_release}%{?dist} +Release: 17%{anolis_release}%{?dist}.1 License: GPLv2 Group: System Environment/Base URL: http://christophe.varoqui.free.fr/ @@ -88,6 +88,7 @@ Patch00073: 0073-multipath.conf-fix-typo-in-checker_timeout-descripti.patch Patch00074: 0074-mpathpersist-fail-commands-when-no-usable-paths-exis.patch Patch00075: 0075-multipath-print-warning-if-multipathd-is-not-running.patch Patch00076: 0076-multipathd-don-t-access-path-if-it-was-deleted.patch +Patch00077: 0077-multipathd.socket-add-missing-conditions-from-servic.patch Patch00100: 0001-modify-OPTFLAGS-for-loongarch64.patch @@ -291,9 +292,13 @@ fi %{_pkgconfdir}/libdmmp.pc %changelog -* Thu Sep 23 2021 zhangwenlong 0.8.4-17.0.1 +* Thu Apr 29 2022 zhangwenlong 0.8.4-17.0.1.1 - Add loongarch64 support for device-mapper-multipath +* Thu Feb 17 2022 Benjamin Marzinski 0.8.4-17.1 +- Add 0077-multipathd.socket-add-missing-conditions-from-servic.patch +- Resolves: bz #2054877 + * Fri Jul 23 2021 Benjamin Marzinski 0.8.4-17 - Add 0074-mpathpersist-fail-commands-when-no-usable-paths-exis.patch * Fixes bz #1984723 diff --git a/download b/download new file mode 100644 index 0000000000000000000000000000000000000000..80bd93b686f60efefd22d73050a93f9f02a2bb7a --- /dev/null +++ b/download @@ -0,0 +1 @@ +8fec28c87bd35289fe177ecc4dc83057 multipath-tools-0.8.4.tgz diff --git a/multipath-tools-0.8.4.tgz b/multipath-tools-0.8.4.tgz deleted file mode 100644 index 01f7e600e99e44b76522784016ebdd9d512f851c..0000000000000000000000000000000000000000 Binary files a/multipath-tools-0.8.4.tgz and /dev/null differ