[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#992102: marked as done (ifenslave: Bond interfaces are not deleted)



Your message dated Sun, 17 Oct 2021 04:18:30 +0000
with message-id <E1mbxd0-000BxB-LI@fasolo.debian.org>
and subject line Bug#992102: fixed in ifenslave 2.13
has caused the Debian Bug report #992102,
regarding ifenslave: Bond interfaces are not deleted
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 owner@bugs.debian.org
immediately.)


-- 
992102: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992102
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: ifenslave
Version: 2.12
Severity: important
Tags: patch

The if-post-down hook does not delete the bonding interface.
Therefore e.g. „ifdown -a; ifup -a“ does not work without manually
removing it using „ip link dev“ or „rmmod bonding“ in between.

The attached patch should fix that.
diff --git a/debian/ifenslave.if-post-down b/debian/ifenslave.if-post-down
index 0113fd4..177a06c 100755
--- a/debian/ifenslave.if-post-down
+++ b/debian/ifenslave.if-post-down
@@ -56,10 +56,13 @@ sysfs_remove_all arp_ip_target
 read -r slaves < "$BOND_PARAMS/slaves"
 for slave in $slaves ; do
 	# This is supposed to have the side effect of freeing the interface.
-	ifquery --state "$slave" && ifdown $v "$slave"
+	ifquery --state "$slave" >/dev/null 2>&1 && ifdown $v "$slave"
 
 	# Anyway, ensure $slave is free.
 	if [ -f "/sys/class/net/$slave/master/bonding/slaves" ] ; then
 		echo "-$slave" > "$BOND_PARAMS/slaves" 2> /dev/null
 	fi
 done
+
+# Delete the bond interface
+ip link del dev "$IFACE"

--- End Message ---
--- Begin Message ---
Source: ifenslave
Source-Version: 2.13
Done: Guillem Jover <guillem@debian.org>

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 992102@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guillem Jover <guillem@debian.org> (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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 17 Oct 2021 06:02:55 +0200
Source: ifenslave
Architecture: source
Version: 2.13
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Guillem Jover <guillem@debian.org>
Closes: 949062 968368 990428 991930 992102
Changes:
 ifenslave (2.13) unstable; urgency=medium
 .
   * QA upload.
 .
   [ Guillem Jover ]
   * Fix MAC address setting messed up by udev for bond interfaces.
     (Closes: #949062)
   * Use ifquery instead of example contrib script ifstate. (Closes: #991930)
   * Fix ifquery redirections.
   * Bump Standards-Version to 4.6.0 (no changed needed).
   * Remove long supported Linux version requirements from Description.
 .
   [ Sami Haahtinen ]
   * Use correct argument in setup_slave_device(). (Closes: #968368)
 .
   [ Oleander Reis ]
   * Handle slave definitions of interfaces with no bond settings.
     (Closes: #990428)
   * Delete bond interfaces on ifdown -a. (Closes: #992102)
Checksums-Sha1:
 25a002fbc7432ccb690a4ecb28b461ca6428ad63 1517 ifenslave_2.13.dsc
 262d1ff46632e17af69eb518a0caf4085ca42422 12684 ifenslave_2.13.tar.xz
 9dc3228e5f4dfe2effa1243835f07f7434c0c8bc 5547 ifenslave_2.13_amd64.buildinfo
Checksums-Sha256:
 46e254ed6ef81ef043bb6cb928c165c5390d8de5f06497d4b84bdb318efef995 1517 ifenslave_2.13.dsc
 bcbb4d2b723c31d659cff02be4d3f4d57e2b9d63dbea697532fba6b029c19ed0 12684 ifenslave_2.13.tar.xz
 e401a181ebfb31370e0630d0a96e013129913c0235f404f957c61a9be9642dbc 5547 ifenslave_2.13_amd64.buildinfo
Files:
 f590933712e2acf282b81116fbddf0fa 1517 net optional ifenslave_2.13.dsc
 2572335f3b680178cba0bedf3c844f1a 12684 net optional ifenslave_2.13.tar.xz
 283b76562b276f788c9ee8c4fc2ea95e 5547 net optional ifenslave_2.13_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEETz509DYFDBD1aWV0uXK/PqSuV6MFAmFroPcACgkQuXK/PqSu
V6M5hg/5AYWexfTLZuGX0njkVcdE01xVvnW2E89oGtnHJ09OzghvOx+KLdTCwZIk
cZBa1ad0jpMcDKeVOVIDMs4XEWUOdHvrNX3c3G8tWGF/SPpU7vqDV+aRx7j5fKCF
Nx4ow0woYMgWIxQo4Xt2d3xOhZS3u8XDLMfs3nqqGBYu9pyVddRGyXO2VMqjjWO8
V8V6U/uRIfLhEhf7bwlFieES7jRNKfw4twxWDhcQBwY3FG3BZh50IzQrMDOLO71F
bhop4wuagS2uafzm9AAf6k2O5T8D4OV5o9+E3PG1WnxR2TWvmzKDquxWnMZHS+dV
YbVZ7eNcfTjtZqTQtw7y7D9E2uNcqcenfTNLmFc4ADRP9GQzq0Hq/NvlFxb65Zz7
DD7XSL5ahZb5vnrYvPwjqkav+0TS5JWhQXOHvl7Ws2C0ubAn7oVaAOtVBIe7q341
RqtlTatlO7bwU/z7j++mc2FXbfumsvO+QePGxk5nOxy/zHegAa2Mj4neu7GRgBtl
CGTcJZOtCeI4xslywLc5lEZaVRKMy2nCohLvundZr8UBPfDJellT60PPnfUX/E6s
oIcKcGbge+gwHYT0ubpexbKxFA6fn9DxOkRt6Yd35wMUOSX0gzfAr3rHdaaT3ANS
+RzrpToXKzFySCq5wcvBuVeF2wAJSgIhAwR3fCdqZ6rvXVPqaJk=
=ywOu
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: