ifquery does not respect mappings

Bug #850166 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ifupdown (Ubuntu)
Fix Released
High
Andrej Shadura

Bug Description

Given this interfaces file:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0

mapping eth0
  script /map

iface FOO inet dhcp

auto eth1
iface eth1 inet dhcp

And the script /map is just

#!/bin/sh
echo FOO

I would expect ifquery --list to show:

lo
eth1
eth0

But instead it shows

lo
ignoring unknown interface eth0=eth0
eth1

Changed in ifupdown (Ubuntu):
assignee: nobody → Steve Langasek (vorlon)
status: New → Confirmed
Steve Langasek (vorlon)
Changed in ifupdown (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Andrej Shadura (andrew.sh) wrote :

Change committed to the upstream development branch.

Changed in ifupdown (Ubuntu):
assignee: Steve Langasek (vorlon) → Andrew Shadura (andrewshadoura)
status: Triaged → In Progress
Changed in ifupdown (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.7 KiB)

This bug was fixed in the package ifupdown - 0.7~rc2+experimentalubuntu1

---------------
ifupdown (0.7~rc2+experimentalubuntu1) quantal; urgency=low

  * Resynchronise with Debian experimental. Remaining changes:
    - ifupdown.nw: Use 100 as default route metric unless an explicit metric
      parameter is set in /etc/network/interface.
    - If the /etc/NetworkManager/NetworkManager.conf file is present
      but doesn't have the "ifupdown:managed" the previous upload instructed
      the iniparser to return -1, which evaluates to TRUE. We instead instruct
      it to return 0, as we shouldn't prevent ifupdown from managing the
      interfaces in that case, as NM won't either. (LP: #281984)
    - debian/postinst: If the loopback interface is missing from the config
      in /etc/network/interfaces, add it on upgrade.
    - Add jobs and hooks for upstart, don't install ifupdown's
      /etc/init.d/networking (using net-base's for now)

ifupdown (0.7~rc2+experimental) experimental; urgency=low

  * Try to bring hotplug interfaces up on initscript restart
    action as well.
  * Don't call ifup when there are no interfaces to bring up
    (Closes: #670145).

ifupdown (0.7~rc1+experimental) experimental; urgency=low

  * Prefer isc-dhcp-client to dhcp3-client (also closes: #422885).
  * Let dhclient fail when no lease can be acquired (Closes: #420784).
  * Raise command-line options priority over /etc/network/interfaces
    (Closes: #657743).
  * Prevent aliases and VLANs from putting the main interface down
    (Closes: #656270).
  * Make iproute2 calculate the broadcast address (LP: #924880).
  * Shut udhcpc down correctly (Closes: #338348).
  * Update the rules according to /run migration.
  * Pass hardening flags from dpkg-buildflags (Closes: #661243).
  * Implement ifquery interface (Closes: #568479).
    - Make ifquery process mappings (LP: #850166).
    - Ensure ifquery always has no_act turned on.
  * Change --all behaviour:
    - If ifup or ifquery is called with the --all option, if doesn't just
      bring up all interfaces marked as "auto", but all interfaces of a
      specified class, "auto" by default. For the most uses, this doesn't
      change anything, but lets all the interfaces of a specific class to be
      brought up or queried.
  * Support cross-compilation, move Debian-specific things out of
    the Makefile (Closes: #666084).
  * Take networking init script over from netbase package.
    - Add reload action which reconfigures all interfaces currently
      configured.
    - Add LSB Description field.
    - Remove /usr from PATH.
    - Merge ifupdown initscript in.
    - Improve warning messages.
    - Don't use redirection hacks when parsing /proc/mounts and /proc/swap.
    - Document all supported subcommands.
    - On start, try to configure hotplug interfaces if they seem to be ready.
      Ignore errors if they fail to configure for some reason (for example,
      if the interface happens to be renamed by udev before it's fully
      configured).
    - Override Lintian's false positives.
  * Remove /etc/default/ifupdown.
  * Call hook scripts when processing all interfaces:
    - If ifupdown is called with the ...

Read more...

Changed in ifupdown (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.