Debian Bug report logs - #661591
packages providing ifupdown scripts must have those scripts fixed if needed

Package: whereami; Maintainer for whereami is Debian QA Group <[email protected]>; Source for whereami is src:whereami (PTS, buildd, popcon).

Affects: firestarter, slrn, whereami, hostapd, wide-dhcpv6-client, sendmail-base, initscripts, hostap-utils, clamav-freshclam, isatapd, slrnpull, avahi-daemon, openssh-server, postfix, avahi-autoipd, vde2, ntpdate, wireless-tools, epoptes-client, controlaula, miredo, linux-wlan-ng, vlan, wpasupplicant, ifenslave-2.6, ltsp-server, lprng, tipcutils, gogoc, bridge-utils, bind9, uml-utilities, ucarp

Reported by: "Andrew O. Shadura" <[email protected]>

Date: Tue, 28 Feb 2012 10:27:02 UTC

Severity: normal

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#661591: packages providing ifupdown scripts must have those scripts fixed if needed
Reply-To: Steve Langasek <[email protected]>, [email protected]
Resent-From: Steve Langasek <[email protected]>
Resent-To: [email protected]
Resent-CC: [email protected]
X-Loop: [email protected]
Resent-Date: Tue, 28 Feb 2012 19:30:02 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 661591
X-Debian-PR-Package: general
X-Debian-PR-Keywords: 
Received: via spool by [email protected] id=B661591.13304572613286
          (code B ref 661591); Tue, 28 Feb 2012 19:30:02 +0000
Received: (at 661591) by bugs.debian.org; 28 Feb 2012 19:27:41 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.1-bugs.debian.org_2005_01_02
	(2010-03-16) on busoni.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-13.9 required=4.0 tests=BAYES_00,FOURLA,
	FROMDEVELOPER,HAS_BUG_NUMBER,PGPSIGNATURE autolearn=ham
	version=3.3.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 10; hammy, 151; neutral, 111; spammy,
	0. spammytokens: hammytokens:0.000-+--H*c:pgp-sha256, 0.000-+--langasek,
	0.000-+--Langasek, 0.000-+--H*u:1.5.21, 0.000-+--H*UA:1.5.21
Received: from becquer.dodds.net ([207.224.24.209])
	by busoni.debian.org with esmtp (Exim 4.72)
	(envelope-from <[email protected]>)
	id 1S2Si4-0000qn-TN
	for [email protected]; Tue, 28 Feb 2012 19:27:40 +0000
Received: from virgil.dodds.net (unknown [IPv6:2001:1938:23f:0:224:d7ff:fe1f:ea20])
	by becquer.dodds.net (Postfix) with ESMTPA id 74EC0255D1;
	Tue, 28 Feb 2012 11:27:38 -0800 (PST)
Received: by virgil.dodds.net (Postfix, from userid 1000)
	id 703AB40023; Tue, 28 Feb 2012 11:27:37 -0800 (PST)
Date: Tue, 28 Feb 2012 11:27:37 -0800
From: Steve Langasek <[email protected]>
To: "Andrew O. Shadura" <[email protected]>, [email protected]
Message-ID: <[email protected]>
References: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU"
Content-Disposition: inline
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.5.21 (2010-09-15)
[Message part 1 (text/plain, inline)]
Hi Andrew,

On Tue, Feb 28, 2012 at 11:24:43AM +0100, Andrew O. Shadura wrote:
> Starting with the last beta, ifupdown calls run-parts for if-*.d scripts
> with --exit-on-error, so if the script fails, interface isn't marked as
> configured (see #547587).

> However, it's been reported that some scripts return wrong exit codes
> sometimes, causing failure during network configuration.

My doubt here is: what is the definition of a *right* exit code now, from
ifupdown's POV?  When is it appropriate for a hook which has failed to exit
non-zero?

This is a pretty significant change in behavior from the perspective of the
packages providing hooks, as it means that they now have to avoid giving
meaningful exit codes in order to not cause ifupdown to fail to run
subsequent hooks.  OTOH, there might be cases where that's beneficial
because it lets a critical hook declare that an interface bring-up hasn't
succeeded and the interface bring-up should be rolled back so the admin can
try again.  But how do we define "critical" hooks?

I would appreciate seeing some more guidance here for hook maintainers.  As
you may be aware, Ubuntu is using ifupdown 0.7beta2 for its next release,
and has had to revert this particular behavior change because it made
networking significantly more brittle.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[email protected]                                     [email protected]
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 17:40:52 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.