Your message dated Tue, 05 Apr 2005 14:17:41 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#303148: fixed in ifupdown 0.6.6
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Apr 2005 05:28:15 +0000
>From [EMAIL PROTECTED] Mon Apr 04 22:28:15 2005
Return-path: <[EMAIL PROTECTED]>
Received: from obitoo.bu.net.au (smtp.bu.net.au) [202.6.38.5] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DIgbn-0005L1-00; Mon, 04 Apr 2005 22:28:15 -0700
Received: from localhost (obitoo [127.0.0.1])
        by smtp.bu.net.au (Postfix) with ESMTP id 512592F01DD;
        Tue,  5 Apr 2005 15:28:10 +1000 (EST)
Received: from smtp.bu.net.au ([127.0.0.1])
        by localhost (obitoo [127.0.0.1]) (amavisd-new, port 10024) with LMTP
        id 21591-07; Tue, 5 Apr 2005 15:28:10 +1000 (EST)
Received: from keitarou (dsl-13.193.240.220.lns02-nort-cbr.dsl.comindico.com.au 
[220.240.193.13])
        by smtp.bu.net.au (Postfix) with ESMTP id B33932F01DC;
        Tue,  5 Apr 2005 15:28:09 +1000 (EST)
Received: from localhost (keitarou [127.0.0.1])
        by keitarou (Postfix) with ESMTP id D48B825EDBA;
        Tue,  5 Apr 2005 15:27:43 +1000 (EST)
Received: from keitarou ([127.0.0.1])
        by localhost (keitarou [127.0.0.1]) (amavisd-new, port 10024)
        with LMTP id 15285-07-2; Tue, 5 Apr 2005 15:27:43 +1000 (EST)
Received: by keitarou (Postfix, from userid 1000)
        id 2810025EDBF; Tue,  5 Apr 2005 15:27:43 +1000 (EST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Paul Hampson <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: ifupdown: Logical interface support broken
X-Mailer: reportbug 3.9
Date: Tue, 05 Apr 2005 15:27:43 +1000
Message-Id: <[EMAIL PROTECTED]>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at 
queanbeyan.bubblesworth.net
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at bu.net.au
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: ifupdown
Version: 0.6.5
Severity: normal
Tags: Patch

The latest version of ifupdown has broken logical interface support as
follows:

"ifup -v eth0=work" produces:
|  Suu:~# ifup -vvv eth0=work
|  Configuring interface eth0=work (inet)
|  run-parts --verbose /etc/network/if-pre-up.d
|  run-parts: executing /etc/network/if-pre-up.d/wireless-tools
|  
*  ifconfig work 10.254.0.4 netmask 255.255.255.0 broadcast 10.254.0.255        
    up
|  SIOCSIFADDR: No such device
|  work: ERROR while getting interface flags: No such device
|  SIOCSIFNETMASK: No such device
|  SIOCSIFBRDADDR: No such device
|  work: ERROR while getting interface flags: No such device
|  work: ERROR while getting interface flags: No such device
|  Failed to bring up work.

Obviously, the settings are coming from the work stanza OK, but surely
that should be
*  ifconfig eth0 10.254.0.4 netmask 255.255.255.0 broadcast 10.254.0.255        
    up
?

Anyway, assuming I'm right, here's the patch:

--- ifupdown.nw.org 2005-04-05 15:04:39.215576720 +1000
+++ ifupdown.nw 2005-04-05 15:05:06.911366320 +1000
@@ -2801,7 +2801,7 @@
    int i;

    if (strncmpz(id, "iface", idlen) == 0) {
-       return ifd->logical_iface;
+       return ifd->real_iface;
    } else {
        for (i = 0; i < ifd->n_options; i++) {
            if (strncmpz(id, ifd->option[i].name, idlen) == 0) {

Simply, the various references to %iface% in the .defn files are passed
to the system, so should be the real_iface (ie. what the system sees it
as) not logical_iface (ie. what the stanza's called)

If this is wrong, maybe ifrename should be being applied earlier in the
process? I can see how people might prefer the actual interface to end
up being called 'work' or 'home', but given how people object to
'wlanX', I doubt this would actually ever fly.

I'd love to mark this "Important" but when I asked on #debian if anyone
else had seen this, no one else seemed to be to using this
functionality.

Also, while I was poking around, checking for a preexisting bug report,
it looks like #244101 has been fixed by providing $LOGICAL to the if-*
scripts. Just thought I'd mention it, I haven't tested it or anything.
I just noticed the variable when I was tracking this problem through the
.nw file.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable'), (900, 'experimental'), (900, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages ifupdown depends on:
ii  debconf [debconf-2.0]       1.4.47       Debian configuration management sy
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  net-tools                   1.60-10      The NET-3 networking toolkit

-- debconf information excluded

---------------------------------------
Received: (at 303148-close) by bugs.debian.org; 5 Apr 2005 18:29:47 +0000
>From [EMAIL PROTECTED] Tue Apr 05 11:29:47 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DIso6-00034x-00; Tue, 05 Apr 2005 11:29:46 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1DIscP-0002dZ-00; Tue, 05 Apr 2005 14:17:41 -0400
From: Anthony Towns <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#303148: fixed in ifupdown 0.6.6
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Tue, 05 Apr 2005 14:17:41 -0400
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

Source: ifupdown
Source-Version: 0.6.6

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

ifupdown_0.6.6.dsc
  to pool/main/i/ifupdown/ifupdown_0.6.6.dsc
ifupdown_0.6.6.tar.gz
  to pool/main/i/ifupdown/ifupdown_0.6.6.tar.gz
ifupdown_0.6.6_i386.deb
  to pool/main/i/ifupdown/ifupdown_0.6.6_i386.deb



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.
Anthony Towns <[EMAIL PROTECTED]> (supplier of updated ifupdown 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: SHA1

Format: 1.7
Date: Tue,  5 Apr 2005 14:19:21 +1000
Source: ifupdown
Binary: ifupdown
Architecture: source i386
Version: 0.6.6
Distribution: unstable
Urgency: low
Maintainer: Anthony Towns <[EMAIL PROTECTED]>
Changed-By: Anthony Towns <[EMAIL PROTECTED]>
Description: 
 ifupdown   - high level tools to configure network interfaces
Closes: 303148 303225
Changes: 
 ifupdown (0.6.6) unstable; urgency=low
 .
   * The "what does wine come in" release
 .
   * Fix brown paper bag bug where %iface% maps to the logical interface
     name rather than the hardware one. Thanks to Paul Hampson for being
     the first to spot it once the BTS was working again. Also add a test
     case. (Closes: Bug#303148)
 .
   * Fix brown paper bag bug where "test -e" doesn't actually identify a
     dangling /etc/network/run symlink on upgrade. (Closes: Bug#303225)
 .
   * Fix brown paper bag bug where we only consider pointing
     /etc/network/run at /dev/shm if /dev/shm *isn't* in /proc/mounts. (No
     bug filed yet, though...)
Files: 
 31b0f632c69f65dcb8346ec8bee988e6 510 base important ifupdown_0.6.6.dsc
 80b12761136c2db1a166f25c24e7eaeb 102441 base important ifupdown_0.6.6.tar.gz
 34d974167279c792092a9d07573d1001 48182 base important ifupdown_0.6.6_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEYEARECAAYFAkJS03EACgkQOxe8dCpOPqrajgCgj8ysWYij7g+pMU9hKOzTmVO6
d3gAoIzATCFIQw6pvj2iFM9YW5lAx/qs
=m64M
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to