Your message dated Mon, 13 Jul 2015 12:04:07 +0000
with message-id <[email protected]>
and subject line Bug#791906: fixed in ifenslave 2.7
has caused the Debian Bug report #791906,
regarding ifenslave uses obsolete /sys/class/net/{bond}/slave_ naming
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
791906: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791906
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ifenslave
Version: 2.6
Severity: important
Tags: patch

Dear Maintainer,

Starting with kernel 3.13
(commit 
http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=5831d66e8097aedfa3bc35941cf265ada2352317),
 /sys/class/net/{bond}/slave_{ifname} (notice the slave_) no longer exist.

It has been replaced by /sys/class/net/{bond}/lower_{ifname}. The proposed 
patch adds
support for the new naming while remaining backward compatible.

Without this patch, trying to add a bond when this one is already defined
leads to the following obscure error :

root@sid-ifenslave:/sbin# ifenslave bond0 eth1 eth2
sh: echo: I/O error
eth1: could not add interface


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ifenslave depends on:
ii  ifupdown  0.7.50
ii  iproute2  3.16.0-2

Versions of packages ifenslave recommends:
ii  net-tools  1.60-26+b1

ifenslave suggests no packages.

-- no debconf information
From: Louis Bouchard <[email protected]>
Date: Thu Jul  9 13:57:54 CEST 2015
Subject: Fix change in /sys/class/net/{bond}/slave_ naming after k3.13

Starting in kernel 3.13, slave_{ifname} is no longer present and
has been replaced by lower_{ifname}. Take this change into account
to avoid ambiguous error when ifenslave is run with existing bond
defined.
Ubuntu-Bug: http://bugs.launchpad.net/bugs/1326854

--- a/ifenslave.orig	2015-07-09 10:04:42.188000000 +0200
+++ b/ifenslave	2014-07-09 13:38:57.068000000 +0200
@@ -93,7 +93,8 @@
 	[ -d "/sys/class/net/$slave" ] || error "$slave: no such interface"
 
 	if [ -z "$DETACH" ]; then
-		if [ -h "/sys/class/net/$master/slave_$slave" ]; then
+		if [ -h "/sys/class/net/$master/slave_$slave" ] ||
+		   [ -h "/sys/class/net/$master/lower_$slave" ]; then
 			echo "$slave: already enslaved to $master" >&2
 			continue
 		fi
@@ -107,7 +108,8 @@
 		ip link set "$slave" down
 		echo "+$slave" >"/sys/class/net/$master/bonding/slaves" || error "$slave: could not add interface"
 	else
-		if [ ! -h "/sys/class/net/$master/slave_$slave" ]; then
+		if [ ! -h "/sys/class/net/$master/slave_$slave" ] ||
+		   [ ! -h "/sys/class/net/$master/lower_$slave" ]; then
 			echo "$slave: is not enslaved to $master" >&2
 			continue
 		fi

--- End Message ---
--- Begin Message ---
Source: ifenslave
Source-Version: 2.7

We believe that the bug you reported is fixed in the latest version of
ifenslave, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitry Smirnov <[email protected]> (supplier of updated ifenslave package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 13 Jul 2015 21:02:29 +1000
Source: ifenslave
Binary: ifenslave ifenslave-2.6
Architecture: source all
Version: 2.7
Distribution: unstable
Urgency: low
Maintainer: Guus Sliepen <[email protected]>
Changed-By: Dmitry Smirnov <[email protected]>
Description:
 ifenslave  - configure network interfaces for parallel routing (bonding)
 ifenslave-2.6 - transitional package, use "ifenslave"
Closes: 791906
Changes:
 ifenslave (2.7) unstable; urgency=low
 .
   * Fix change in /sys/class/net/{bond}/slave_ naming after k3.13
     (Closes: #791906). Thanks, Louis Bouchard.
   * Standards-Version: 3.9.6.
Checksums-Sha1:
 2f866b57fe715cdb4e8ff7f095b4fa3175ff5f05 1613 ifenslave_2.7.dsc
 7a7c8f79fcee1515024648cd7a4fff061cd43761 13056 ifenslave_2.7.tar.xz
 9d9a6b97a73d8f44b5a8e2466822309722a0e1cd 5952 ifenslave-2.6_2.7_all.deb
 08dad17b04253d9209a3f764d08e95c3399fc247 15586 ifenslave_2.7_all.deb
Checksums-Sha256:
 9da5a23714ba4408a68dfa6bc0bfccafc8adc08b00fe6f4c3383596d14788562 1613 
ifenslave_2.7.dsc
 41984eed04c3d40d171424d7f1f4ee48a58c820cc61619272435060959b9ae32 13056 
ifenslave_2.7.tar.xz
 f3c8cd33b2d72398a0201b291ede256d329b97f89d80c76d2e3f59a36f5be0e1 5952 
ifenslave-2.6_2.7_all.deb
 cb6d9a6a3f7434bfdb24de488dc1887176de6bd60788a555ff5604c7884dceae 15586 
ifenslave_2.7_all.deb
Files:
 0beda9cec69acfc509eaf5b2d1a5be88 1613 net optional ifenslave_2.7.dsc
 2319e3d7bf31ec80a0082a6e17f5edaf 13056 net optional ifenslave_2.7.tar.xz
 804023146cb79c83345d3ed7eebac4c9 5952 oldlibs extra ifenslave-2.6_2.7_all.deb
 70b51b5267793ca061b3fd247b233177 15586 net optional ifenslave_2.7_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJVo5v6AAoJEFK2u9lTlo0b5CYP/Rsz3rsfk8ku3UbNmtsKd8d8
5gXBqcfTOQPpCGEl0VoJYqnUGGxEUo5C8/ODw8e7iL6UQxpTew3X+8hv2frMqrij
rocvAoGqcpTZZMagqlVRgGcN1yxE83RQx2UwynxuZ/HyeuRWr+4yd3A6M62gtW6T
efDfW3JWTPGPHo2gBKy/9g4eMysgpaa6IlEQ+wmw0cmBrpDb8K5Ys5Xgo/mgDOko
FlTKAU9Ksl04rCaa1sQLZNQTLK8DKyH5MF1jIqUDOjpetI9h6lbbTmTvLHylGaZK
JGA+YuUSDAwBNT2LEmIc6xD8jX9sC62W5z5Mkh8lQ2ISgCUMuyJ52rj+6uqrlhxl
0LYdGXxBiSSUIY3vlOGsQ/2S1XHwhfCEm/arqYppnpC7lbnzKBCT7mKFdRXoGbi1
Twh44D+8YMp0GBF7TYWKi9hVlFeRnF3sWV0Q58BK6x8C0F4PrGJUsjXvAI6K463s
Aa4HkjXA9/FQk2XYtT84oKbdJtHssqSsIhzHWtNisXf4V3enimUEp1798yKY8e8r
U8KoDUBQN/HoTsJGKy1ncamLEDQ9lFxOOqIk1tCn/6IkJbuCx0xQ+l6GFo4H3FoS
99xdKOuCMThVLwZYX/rpBe0F0ImjqA4kP4CEV9CRTKnsRIziG1jyf7uk3FsDuvdK
i5rJXYKd27Yyx34Si3hH
=lLJP
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to