Bug#963796: buster-pu: package resource-agents/1:4.2.0-2+deb10u2

2020-07-02 Thread Valentin Vidic
On Thu, Jul 02, 2020 at 09:04:10PM +0100, Adam D. Barratt wrote:
> Thanks for the quick explanation. Please go ahead.

Thank you, just uploaded.

-- 
Valentin



Processed: Re: Bug#963796: buster-pu: package resource-agents/1:4.2.0-2+deb10u2

2020-07-02 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 +confirmed -moreinfo
Bug #963796 [release.debian.org] buster-pu: package 
resource-agents/1:4.2.0-2+deb10u2
Added tag(s) confirmed.
Bug #963796 [release.debian.org] buster-pu: package 
resource-agents/1:4.2.0-2+deb10u2
Removed tag(s) moreinfo.

-- 
963796: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963796
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#963796: buster-pu: package resource-agents/1:4.2.0-2+deb10u2

2020-07-02 Thread Adam D. Barratt
Control: tags -1 +confirmed -moreinfo

On Thu, 2020-07-02 at 22:02 +0200, Valentin Vidic wrote:
> On Thu, Jul 02, 2020 at 08:51:39PM +0100, Adam D. Barratt wrote:
> > I assume these changes are no-ops, but why are they included? They
> > don't appear to actually relate to the issue - the first two even
> > more
> > so.
> 
> Right, the IP2UTIL change is not strictly needed but I preferred to
> use
> the upstream diff rather than making a custom one. IP2UTIL is also
> used
> in other agent scripts so it should not be a problem here.
> 

Thanks for the quick explanation. Please go ahead.

Regards,

Adam



Bug#963796: buster-pu: package resource-agents/1:4.2.0-2+deb10u2

2020-07-02 Thread Valentin Vidic
On Thu, Jul 02, 2020 at 08:51:39PM +0100, Adam D. Barratt wrote:
> I assume these changes are no-ops, but why are they included? They
> don't appear to actually relate to the issue - the first two even more
> so.

Right, the IP2UTIL change is not strictly needed but I preferred to use
the upstream diff rather than making a custom one. IP2UTIL is also used
in other agent scripts so it should not be a problem here.

-- 
Valentin



Bug#963796: buster-pu: package resource-agents/1:4.2.0-2+deb10u2

2020-07-02 Thread Adam D. Barratt
Control: tags -1 + moreinfo

On Sat, 2020-06-27 at 13:51 +0200, Valentin Vidic wrote:
> Please approve the following fix for IPsrcaddr agent in buster:
> 
> diff -Nru resource-agents-4.2.0/debian/changelog resource-agents-
> 4.2.0/debian/changelog
> --- resource-agents-4.2.0/debian/changelog2019-08-04
> 09:59:39.0 +0200
> +++ resource-agents-4.2.0/debian/changelog2020-06-27
> 13:26:42.0 +0200
> @@ -1,3 +1,9 @@
> +resource-agents (1:4.2.0-2+deb10u2) buster; urgency=medium
> +
> +  * debian/patches: add ipsrcaddr-proto.patch (Closes: #963691)

I assume these changes are no-ops, but why are they included? They
don't appear to actually relate to the issue - the first two even more
so.

[...]
> +-ip route replace $NETWORK dev $INTERFACE src $1 || \
> ++$IP2UTIL route replace $NETWORK dev $INTERFACE src $1
> || \
> + errorexit "command 'ip route replace $NETWORK
> dev $INTERFACE src $1' failed"
> + 
> + $CMDCHANGE $ROUTE_WO_SRC src $1 || \
> +@@ -204,7 +217,7 @@ srca_stop() {
> +   
> + [ $rc = 2 ] && errorexit "The address you specified to stop
> does not match the preferred source address"
> + 
> +-ip route replace $NETWORK dev $INTERFACE || \
> ++$IP2UTIL route replace $NETWORK dev $INTERFACE || \
> + errorexit "command 'ip route replace $NETWORK dev
> $INTERFACE' failed"
> + 
> + $CMDCHANGE $ROUTE_WO_SRC || \
> +@@ -473,7 +486,7 @@ rc=$?
> + }
> + 
> + INTERFACE=`echo $findif_out | awk '{print $1}'`
> +-NETWORK=`ip route list dev $INTERFACE scope link proto kernel match
> $ipaddress|grep -o '^[^ ]*'`
> ++NETWORK=`$IP2UTIL route list dev $INTERFACE scope link $PROTO match
> $ipaddress|grep -m 1 -o '^[^ ]*'`


Regards,

Adam



Processed: Re: Bug#963796: buster-pu: package resource-agents/1:4.2.0-2+deb10u2

2020-07-02 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 + moreinfo
Bug #963796 [release.debian.org] buster-pu: package 
resource-agents/1:4.2.0-2+deb10u2
Added tag(s) moreinfo.

-- 
963796: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963796
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#963796: buster-pu: package resource-agents/1:4.2.0-2+deb10u2

2020-06-27 Thread Valentin Vidic
Package: release.debian.org
Severity: normal
Tags: buster
User: release.debian@packages.debian.org
Usertags: pu

Hi,

Please approve the following fix for IPsrcaddr agent in buster:

diff -Nru resource-agents-4.2.0/debian/changelog 
resource-agents-4.2.0/debian/changelog
--- resource-agents-4.2.0/debian/changelog  2019-08-04 09:59:39.0 
+0200
+++ resource-agents-4.2.0/debian/changelog  2020-06-27 13:26:42.0 
+0200
@@ -1,3 +1,9 @@
+resource-agents (1:4.2.0-2+deb10u2) buster; urgency=medium
+
+  * debian/patches: add ipsrcaddr-proto.patch (Closes: #963691)
+
+ -- Valentin Vidic   Sat, 27 Jun 2020 13:26:42 +0200
+
 resource-agents (1:4.2.0-2+deb10u1) buster; urgency=medium
 
   * debian/patches: drop xen-toolstack.patch
diff -Nru resource-agents-4.2.0/debian/patches/ipsrcaddr-proto.patch 
resource-agents-4.2.0/debian/patches/ipsrcaddr-proto.patch
--- resource-agents-4.2.0/debian/patches/ipsrcaddr-proto.patch  1970-01-01 
01:00:00.0 +0100
+++ resource-agents-4.2.0/debian/patches/ipsrcaddr-proto.patch  2020-06-27 
13:24:37.0 +0200
@@ -0,0 +1,75 @@
+From 6052e8fd37d23f46db217f915b445c7e67dccb34 Mon Sep 17 00:00:00 2001
+From: Oyvind Albrigtsen 
+Date: Thu, 4 Apr 2019 13:31:27 +0200
+Subject: [PATCH] IPsrcaddr: make proto optional to fix regression when used
+ without NetworkManager
+
+---
+ heartbeat/IPsrcaddr | 21 +
+ 1 file changed, 17 insertions(+), 4 deletions(-)
+
+diff --git a/heartbeat/IPsrcaddr b/heartbeat/IPsrcaddr
+index 4ca3d2364..5a447196e 100755
+--- a/heartbeat/IPsrcaddr
 b/heartbeat/IPsrcaddr
+@@ -50,12 +50,17 @@
+ 
+ ###
+ # Initialization:
+-
+ : ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat}
+ . ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs
+ 
++# Defaults
++OCF_RESKEY_proto_default=""
++
++: ${OCF_RESKEY_proto=${OCF_RESKEY_proto_default}}
+ ###
+ 
++[ -z "$OCF_RESKEY_proto" ] && PROTO="" || PROTO="proto $OCF_RESKEY_proto"
++
+ USAGE="usage: $0 {start|stop|status|monitor|validate-all|meta-data}";
+ 
+   CMDSHOW="$IP2UTIL route show   to exact 0.0.0.0/0"
+@@ -97,6 +102,14 @@ dotted quad notation  255.255.255.0).
+ Netmask
+ 
+ 
++
++
++
++Proto to match when finding network. E.g. "kernel".
++
++Proto
++
++
+ 
+ 
+ 
+@@ -172,7 +185,7 @@ srca_start() {
+   rc=$OCF_SUCCESS
+   ocf_log info "The ip route has been already set.($NETWORK, 
$INTERFACE, $ROUTE_WO_SRC)"
+   else
+-  ip route replace $NETWORK dev $INTERFACE src $1 || \
++  $IP2UTIL route replace $NETWORK dev $INTERFACE src $1 || \
+   errorexit "command 'ip route replace $NETWORK dev 
$INTERFACE src $1' failed"
+ 
+   $CMDCHANGE $ROUTE_WO_SRC src $1 || \
+@@ -204,7 +217,7 @@ srca_stop() {
+ 
+   [ $rc = 2 ] && errorexit "The address you specified to stop does not 
match the preferred source address"
+ 
+-  ip route replace $NETWORK dev $INTERFACE || \
++  $IP2UTIL route replace $NETWORK dev $INTERFACE || \
+   errorexit "command 'ip route replace $NETWORK dev $INTERFACE' 
failed"
+ 
+   $CMDCHANGE $ROUTE_WO_SRC || \
+@@ -473,7 +486,7 @@ rc=$?
+ }
+ 
+ INTERFACE=`echo $findif_out | awk '{print $1}'`
+-NETWORK=`ip route list dev $INTERFACE scope link proto kernel match 
$ipaddress|grep -o '^[^ ]*'`
++NETWORK=`$IP2UTIL route list dev $INTERFACE scope link $PROTO match 
$ipaddress|grep -m 1 -o '^[^ ]*'`
+ 
+ case $1 in
+   start)  srca_start $ipaddress
diff -Nru resource-agents-4.2.0/debian/patches/series 
resource-agents-4.2.0/debian/patches/series
--- resource-agents-4.2.0/debian/patches/series 2019-08-04 09:59:39.0 
+0200
+++ resource-agents-4.2.0/debian/patches/series 2020-06-27 13:25:03.0 
+0200
@@ -8,3 +8,4 @@
 var-run.patch
 ethmonitor-no-addr.patch
 zfs-bashism.patch
+ipsrcaddr-proto.patch