Package: release.debian.org Severity: normal Tags: trixie User: [email protected] Usertags: pu X-Debbugs-Cc: [email protected] Control: affects -1 + src:resource-agents
[ Reason ] Include upstream fix for a bug that was reported for the package version included in trixie. [ Impact ] resource-agents would not work correctly in some cases as described in bug #1109925. [ Tests ] Package tests run without errors for the updated package. [ Risks ] Risk should be low as the fix was approved upstream and it only affects some agents in the package. [ Checklist ] [x] *all* changes are documented in the d/changelog [x] I reviewed all changes and I approve them [x] attach debdiff against the package in (old)stable [x] the issue is verified as fixed in unstable [ Changes ] Include upstream fix for handling special case of duplicate routes. diff -Nru resource-agents-4.16.0/debian/changelog resource-agents-4.16.0/debian/changelog --- resource-agents-4.16.0/debian/changelog 2025-02-28 22:52:53.000000000 +0100 +++ resource-agents-4.16.0/debian/changelog 2025-08-24 17:03:01.000000000 +0200 @@ -1,3 +1,9 @@ +resource-agents (1:4.16.0-3+deb13u1) trixie; urgency=medium + + * debian/patches: fix to avoid duplicate route issues (Closes: #1109925) + + -- Valentin Vidic <[email protected]> Sun, 24 Aug 2025 17:03:01 +0200 + resource-agents (1:4.16.0-3) unstable; urgency=medium * debian/tests: mark mysql and pgsql as flaky (Closes: #1096025) diff -Nru resource-agents-4.16.0/debian/patches/duplicate-route.patch resource-agents-4.16.0/debian/patches/duplicate-route.patch --- resource-agents-4.16.0/debian/patches/duplicate-route.patch 1970-01-01 01:00:00.000000000 +0100 +++ resource-agents-4.16.0/debian/patches/duplicate-route.patch 2025-08-24 17:02:40.000000000 +0200 @@ -0,0 +1,37 @@ +From d0d2a0ff92dd23ee36cb57324c1eeaa3daed65bc Mon Sep 17 00:00:00 2001 +From: Oyvind Albrigtsen <[email protected]> +Date: Tue, 4 Feb 2025 16:13:27 +0100 +Subject: [PATCH] findif.sh: fix to avoid duplicate route issues + +--- + heartbeat/findif.sh | 14 +++++--------- + 1 file changed, 5 insertions(+), 9 deletions(-) + +diff --git a/heartbeat/findif.sh b/heartbeat/findif.sh +index 2ae91e958..6fb47110c 100644 +--- a/heartbeat/findif.sh ++++ b/heartbeat/findif.sh +@@ -217,18 +217,14 @@ findif() + fi + if [ -n "$nic" ] ; then + # NIC supports more than two. +- routematch=$(ip -o -f $family route list match $match $proto $scope | grep -v "^\(unreachable\|prohibit\|blackhole\)" | grep "dev $nic " | sed -e 's,^\([0-9.]\+\) ,\1/32 ,;s,^\([0-9a-f:]\+\) ,\1/128 ,' | sort -t/ -k2,2nr) ++ routematch=$(ip -o -f $family route list match $match $proto $scope | grep "dev $nic " | sed -e 's,^\([0-9.]\+\) ,\1/32 ,;s,^\([0-9a-f:]\+\) ,\1/128 ,' | sort -t/ -k2,2nr) + else +- routematch=$(ip -o -f $family route list match $match $proto $scope | grep -v "^\(unreachable\|prohibit\|blackhole\)" | sed -e 's,^\([0-9.]\+\) ,\1/32 ,;s,^\([0-9a-f:]\+\) ,\1/128 ,' | sort -t/ -k2,2nr) +- fi +- if [ "$family" = "inet6" ]; then +- routematch=$(echo "$routematch" | grep -v "^default") ++ routematch=$(ip -o -f $family route list match $match $proto $scope | sed -e 's,^\([0-9.]\+\) ,\1/32 ,;s,^\([0-9a-f:]\+\) ,\1/128 ,' | sort -t/ -k2,2nr) + fi + +- if [ $(echo "$routematch" | wc -l) -gt 1 ]; then +- ocf_exit_reason "More than 1 routes match $match. Unable to decide which route to use." +- return $OCF_ERR_GENERIC +- fi ++ # ignore matches from unrelated tables, and sort by metric to get the route with the lowest metric ++ routematch=$(echo "$routematch" | awk '!/^(default|unreachable|prohibit|blackhole)/{match($0, /metric ([^ ]+)/, arr); print arr[1], $0}' | sort -k 1n -u | cut -d" " -f 2- | head -1) ++ + set -- $routematch + if [ $# = 0 ] ; then + case $OCF_RESKEY_ip in diff -Nru resource-agents-4.16.0/debian/patches/series resource-agents-4.16.0/debian/patches/series --- resource-agents-4.16.0/debian/patches/series 2024-11-10 19:26:33.000000000 +0100 +++ resource-agents-4.16.0/debian/patches/series 2025-08-24 17:03:01.000000000 +0200 @@ -6,3 +6,4 @@ gitignore.patch reproducible.patch var-run.patch +duplicate-route.patch

