Activity log for bug #1226067

Date Who What changed Old value New value Message
2013-09-16 14:08:53 Scott Moser bug added bug
2013-09-16 14:11:53 Scott Moser description $ sudo ifquery --list --allow auto; echo $?; ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor 1 This seems possibly quite serious as /etc/network/if-up.d/upstart uses this program to determine the "auto" interfaces and then emits static-network-up. ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: ifupdown 0.7.44ubuntu2 ProcVersionSignature: User Name 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic x86_64 ApportVersion: 2.12.1-0ubuntu4 Architecture: amd64 Date: Mon Sep 16 14:02:41 2013 Ec2AMI: ami-000004dd Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.tiny Ec2Kernel: unavailable Ec2Ramdisk: unavailable MarkForUpload: True ProcEnviron: TERM=screen PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: ifupdown UpgradeStatus: No upgrade log present (probably fresh install) $ sudo ifquery --list --allow auto; echo $?; ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor 1 This seems possibly quite serious as /etc/network/if-up.d/upstart uses this program to determine the "auto" interfaces and then emits static-network-up. Also interesting, possibly related and possibly a bug in and of itself: $ cp /etc/network/interfaces /tmp/interfaces $ sudo ifquery --interfaces /tmp/interfaces --list --allow=auto ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor Seems odd that it would do anything with /run/network/.ifstate.lock in this case since, by doing so, it means i'd have to have privilege to read that file in order to have it parse my provided --interfaces= file. ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: ifupdown 0.7.44ubuntu2 ProcVersionSignature: User Name 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic x86_64 ApportVersion: 2.12.1-0ubuntu4 Architecture: amd64 Date: Mon Sep 16 14:02:41 2013 Ec2AMI: ami-000004dd Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.tiny Ec2Kernel: unavailable Ec2Ramdisk: unavailable MarkForUpload: True ProcEnviron:  TERM=screen  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: ifupdown UpgradeStatus: No upgrade log present (probably fresh install)
2013-09-16 14:13:28 Scott Moser description $ sudo ifquery --list --allow auto; echo $?; ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor 1 This seems possibly quite serious as /etc/network/if-up.d/upstart uses this program to determine the "auto" interfaces and then emits static-network-up. Also interesting, possibly related and possibly a bug in and of itself: $ cp /etc/network/interfaces /tmp/interfaces $ sudo ifquery --interfaces /tmp/interfaces --list --allow=auto ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor Seems odd that it would do anything with /run/network/.ifstate.lock in this case since, by doing so, it means i'd have to have privilege to read that file in order to have it parse my provided --interfaces= file. ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: ifupdown 0.7.44ubuntu2 ProcVersionSignature: User Name 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic x86_64 ApportVersion: 2.12.1-0ubuntu4 Architecture: amd64 Date: Mon Sep 16 14:02:41 2013 Ec2AMI: ami-000004dd Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.tiny Ec2Kernel: unavailable Ec2Ramdisk: unavailable MarkForUpload: True ProcEnviron:  TERM=screen  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: ifupdown UpgradeStatus: No upgrade log present (probably fresh install) $ sudo ifquery --list --allow auto; echo $?; ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor 1 This seems possibly quite serious as /etc/network/if-up.d/upstart uses this program to determine the "auto" interfaces and then emits static-network-up. This reproduces on a fresh saucy image with serial=20130916. Also interesting, possibly related and possibly a bug in and of itself: $ cp /etc/network/interfaces /tmp/interfaces $ sudo ifquery --interfaces /tmp/interfaces --list --allow=auto ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor Seems odd that it would do anything with /run/network/.ifstate.lock in this case since, by doing so, it means i'd have to have privilege to read that file in order to have it parse my provided --interfaces= file. For reference, on raring instance as non-root: $ ifquery --list --allow auto lo eth0 ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: ifupdown 0.7.44ubuntu2 ProcVersionSignature: User Name 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic x86_64 ApportVersion: 2.12.1-0ubuntu4 Architecture: amd64 Date: Mon Sep 16 14:02:41 2013 Ec2AMI: ami-000004dd Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.tiny Ec2Kernel: unavailable Ec2Ramdisk: unavailable MarkForUpload: True ProcEnviron:  TERM=screen  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: ifupdown UpgradeStatus: No upgrade log present (probably fresh install)
2013-09-16 14:13:52 Scott Moser ifupdown (Ubuntu): importance Undecided Medium
2013-09-16 14:14:03 Scott Moser tags amd64 apport-bug ec2-images saucy amd64 apport-bug ec2-images regression-release saucy
2013-09-16 15:18:03 Scott Moser attachment added console log (serial console) of instance https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1226067/+attachment/3823889/+files/console.log
2013-09-16 15:21:05 Scott Moser attachment added syslog on failed system https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1226067/+attachment/3823891/+files/syslog
2013-09-16 15:21:32 Scott Moser ifupdown (Ubuntu): status New Confirmed
2013-09-16 15:28:53 Scott Moser description $ sudo ifquery --list --allow auto; echo $?; ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor 1 This seems possibly quite serious as /etc/network/if-up.d/upstart uses this program to determine the "auto" interfaces and then emits static-network-up. This reproduces on a fresh saucy image with serial=20130916. Also interesting, possibly related and possibly a bug in and of itself: $ cp /etc/network/interfaces /tmp/interfaces $ sudo ifquery --interfaces /tmp/interfaces --list --allow=auto ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor Seems odd that it would do anything with /run/network/.ifstate.lock in this case since, by doing so, it means i'd have to have privilege to read that file in order to have it parse my provided --interfaces= file. For reference, on raring instance as non-root: $ ifquery --list --allow auto lo eth0 ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: ifupdown 0.7.44ubuntu2 ProcVersionSignature: User Name 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic x86_64 ApportVersion: 2.12.1-0ubuntu4 Architecture: amd64 Date: Mon Sep 16 14:02:41 2013 Ec2AMI: ami-000004dd Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.tiny Ec2Kernel: unavailable Ec2Ramdisk: unavailable MarkForUpload: True ProcEnviron:  TERM=screen  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: ifupdown UpgradeStatus: No upgrade log present (probably fresh install) $ sudo ifquery --list --allow auto; echo $?; ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor 1 This seems possibly quite serious as /etc/network/if-up.d/upstart uses this program to determine the "auto" interfaces and then emits static-network-up. This reproduces on a fresh saucy image with serial=20130916. Also interesting, possibly related and possibly a bug in and of itself: $ cp /etc/network/interfaces /tmp/interfaces $ sudo ifquery --interfaces /tmp/interfaces --list --allow=auto ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor Seems odd that it would do anything with /run/network/.ifstate.lock in this case since, by doing so, it means i'd have to have privilege to read that file in order to have it parse my provided --interfaces= file. For reference, on raring instance as non-root: $ ifquery --list --allow auto lo eth0 Related bugs: * bug 1160490: race condition updating statefile ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: ifupdown 0.7.44ubuntu2 ProcVersionSignature: User Name 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic x86_64 ApportVersion: 2.12.1-0ubuntu4 Architecture: amd64 Date: Mon Sep 16 14:02:41 2013 Ec2AMI: ami-000004dd Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.tiny Ec2Kernel: unavailable Ec2Ramdisk: unavailable MarkForUpload: True ProcEnviron:  TERM=screen  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: ifupdown UpgradeStatus: No upgrade log present (probably fresh install)
2013-09-16 16:01:23 Chris J Arges ifupdown (Ubuntu): assignee Chris J Arges (arges)
2013-09-16 16:18:04 Chris J Arges attachment added ifupdown-fix-lp1226067.debdiff https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1226067/+attachment/3823917/+files/ifupdown-fix-lp1226067.debdiff
2013-09-16 16:40:47 Chris J Arges attachment added fix-precise-lp1226067.debdiff https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1226067/+attachment/3823982/+files/fix-precise-lp1226067.debdiff
2013-09-16 16:42:12 Chris J Arges attachment added fix-quantal-lp1226067.debdiff https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1226067/+attachment/3823983/+files/fix-quantal-lp1226067.debdiff
2013-09-16 16:42:26 Chris J Arges attachment added fix-raring-lp1226067.debdiff https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1226067/+attachment/3823984/+files/fix-raring-lp1226067.debdiff
2013-09-16 16:43:44 Chris J Arges nominated for series Ubuntu Precise
2013-09-16 16:43:44 Chris J Arges bug task added ifupdown (Ubuntu Precise)
2013-09-16 16:43:44 Chris J Arges nominated for series Ubuntu Quantal
2013-09-16 16:43:44 Chris J Arges bug task added ifupdown (Ubuntu Quantal)
2013-09-16 16:43:44 Chris J Arges nominated for series Ubuntu Raring
2013-09-16 16:43:44 Chris J Arges bug task added ifupdown (Ubuntu Raring)
2013-09-16 16:43:50 Chris J Arges ifupdown (Ubuntu Precise): assignee Chris J Arges (arges)
2013-09-16 16:43:53 Chris J Arges ifupdown (Ubuntu Raring): assignee Chris J Arges (arges)
2013-09-16 16:43:55 Chris J Arges ifupdown (Ubuntu Quantal): assignee Chris J Arges (arges)
2013-09-16 16:44:05 Chris J Arges ifupdown (Ubuntu Raring): importance Undecided Critical
2013-09-16 16:44:09 Chris J Arges ifupdown (Ubuntu): status Confirmed In Progress
2013-09-16 16:44:15 Chris J Arges ifupdown (Ubuntu Precise): importance Undecided Medium
2013-09-16 16:44:19 Chris J Arges ifupdown (Ubuntu Quantal): importance Undecided Medium
2013-09-16 16:44:24 Chris J Arges ifupdown (Ubuntu Raring): importance Critical Medium
2013-09-16 16:44:31 Chris J Arges ifupdown (Ubuntu Precise): status New In Progress
2013-09-16 16:44:33 Chris J Arges ifupdown (Ubuntu Quantal): status New In Progress
2013-09-16 16:44:36 Chris J Arges ifupdown (Ubuntu Raring): status New In Progress
2013-09-16 18:07:54 Nobuto Murata bug added subscriber Nobuto MURATA
2013-09-16 19:13:04 Launchpad Janitor ifupdown (Ubuntu): status In Progress Fix Released
2013-09-17 13:05:53 Scott Moser bug added subscriber Ubuntu Stable Release Updates Team
2013-09-17 13:25:08 Scott Moser description $ sudo ifquery --list --allow auto; echo $?; ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor 1 This seems possibly quite serious as /etc/network/if-up.d/upstart uses this program to determine the "auto" interfaces and then emits static-network-up. This reproduces on a fresh saucy image with serial=20130916. Also interesting, possibly related and possibly a bug in and of itself: $ cp /etc/network/interfaces /tmp/interfaces $ sudo ifquery --interfaces /tmp/interfaces --list --allow=auto ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor Seems odd that it would do anything with /run/network/.ifstate.lock in this case since, by doing so, it means i'd have to have privilege to read that file in order to have it parse my provided --interfaces= file. For reference, on raring instance as non-root: $ ifquery --list --allow auto lo eth0 Related bugs: * bug 1160490: race condition updating statefile ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: ifupdown 0.7.44ubuntu2 ProcVersionSignature: User Name 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic x86_64 ApportVersion: 2.12.1-0ubuntu4 Architecture: amd64 Date: Mon Sep 16 14:02:41 2013 Ec2AMI: ami-000004dd Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.tiny Ec2Kernel: unavailable Ec2Ramdisk: unavailable MarkForUpload: True ProcEnviron:  TERM=screen  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: ifupdown UpgradeStatus: No upgrade log present (probably fresh install) == Begin SRU == [Impact] This bug is a regression of the fix applied under bug 1160490. The bug is that 'ifquery --list' will try to obtain a lock on a file in /run, which will fail with an error message of 'Bad file descriptor'. The changes applied here are a backport of upstream fix fb3055c2c4f0 [1]. [1] [Test Case] Ideally both the test case from bug 1160490 [2] and the following test case should be done. $ sudo ifquery --list --allow auto lo eth0 $ ifquery --list --allow auto lo eth0 Success is a list of the 'auto' interfaces that in /etc/network/interfaces. (in a cloud image, thats eth0 and lo). This should work both as root and non-root. Failure would show 'failed to lock lockfile' or non-zero exit value. Additionally, verify that you can query something other than the default interfaces file as root and non-root. $ ( echo "auto eth1"; echo "iface eth1 inet dhcp"; ) > /tmp/my.interfaces $ sudo ifquery --list --allow auto --interfaces=/tmp/my.interfaces lo eth1 $ ifquery --list --allow auto --interfaces=/tmp/my.interfaces lo eth1 the 'lo' output is expected as 'lo' is automatically auto. Failure here would be the same 'failed to lock lockfile' or non-zero exit. It also surely wouldn't hurt to do: $ sudo ifdown eth0; sudo ifup eth0 Just to make sure that functions. [Regression Potential] * (from bug 1160490) This fix backports a change from upstream ifupdown. Instead of locking a statefile it locks a lockfile. * the change here is very trivial. It chooses to not fail on failure to get lockfile if the operation is 'no_act' (see [1]). [1] http://anonscm.debian.org/hg/collab-maint/ifupdown/rev/fb3055c2c4f0 [2] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/996369/comments/35 === End SRU === $ sudo ifquery --list --allow auto; echo $?; ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor 1 This seems possibly quite serious as /etc/network/if-up.d/upstart uses this program to determine the "auto" interfaces and then emits static-network-up. This reproduces on a fresh saucy image with serial=20130916. Also interesting, possibly related and possibly a bug in and of itself: $ cp /etc/network/interfaces /tmp/interfaces $ sudo ifquery --interfaces /tmp/interfaces --list --allow=auto ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor Seems odd that it would do anything with /run/network/.ifstate.lock in this case since, by doing so, it means i'd have to have privilege to read that file in order to have it parse my provided --interfaces= file. For reference, on raring instance as non-root: $ ifquery --list --allow auto lo eth0 Related bugs:  * bug 1160490: race condition updating statefile ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: ifupdown 0.7.44ubuntu2 ProcVersionSignature: User Name 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic x86_64 ApportVersion: 2.12.1-0ubuntu4 Architecture: amd64 Date: Mon Sep 16 14:02:41 2013 Ec2AMI: ami-000004dd Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.tiny Ec2Kernel: unavailable Ec2Ramdisk: unavailable MarkForUpload: True ProcEnviron:  TERM=screen  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: ifupdown UpgradeStatus: No upgrade log present (probably fresh install)
2013-09-17 13:25:18 Scott Moser description == Begin SRU == [Impact] This bug is a regression of the fix applied under bug 1160490. The bug is that 'ifquery --list' will try to obtain a lock on a file in /run, which will fail with an error message of 'Bad file descriptor'. The changes applied here are a backport of upstream fix fb3055c2c4f0 [1]. [1] [Test Case] Ideally both the test case from bug 1160490 [2] and the following test case should be done. $ sudo ifquery --list --allow auto lo eth0 $ ifquery --list --allow auto lo eth0 Success is a list of the 'auto' interfaces that in /etc/network/interfaces. (in a cloud image, thats eth0 and lo). This should work both as root and non-root. Failure would show 'failed to lock lockfile' or non-zero exit value. Additionally, verify that you can query something other than the default interfaces file as root and non-root. $ ( echo "auto eth1"; echo "iface eth1 inet dhcp"; ) > /tmp/my.interfaces $ sudo ifquery --list --allow auto --interfaces=/tmp/my.interfaces lo eth1 $ ifquery --list --allow auto --interfaces=/tmp/my.interfaces lo eth1 the 'lo' output is expected as 'lo' is automatically auto. Failure here would be the same 'failed to lock lockfile' or non-zero exit. It also surely wouldn't hurt to do: $ sudo ifdown eth0; sudo ifup eth0 Just to make sure that functions. [Regression Potential] * (from bug 1160490) This fix backports a change from upstream ifupdown. Instead of locking a statefile it locks a lockfile. * the change here is very trivial. It chooses to not fail on failure to get lockfile if the operation is 'no_act' (see [1]). [1] http://anonscm.debian.org/hg/collab-maint/ifupdown/rev/fb3055c2c4f0 [2] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/996369/comments/35 === End SRU === $ sudo ifquery --list --allow auto; echo $?; ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor 1 This seems possibly quite serious as /etc/network/if-up.d/upstart uses this program to determine the "auto" interfaces and then emits static-network-up. This reproduces on a fresh saucy image with serial=20130916. Also interesting, possibly related and possibly a bug in and of itself: $ cp /etc/network/interfaces /tmp/interfaces $ sudo ifquery --interfaces /tmp/interfaces --list --allow=auto ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor Seems odd that it would do anything with /run/network/.ifstate.lock in this case since, by doing so, it means i'd have to have privilege to read that file in order to have it parse my provided --interfaces= file. For reference, on raring instance as non-root: $ ifquery --list --allow auto lo eth0 Related bugs:  * bug 1160490: race condition updating statefile ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: ifupdown 0.7.44ubuntu2 ProcVersionSignature: User Name 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic x86_64 ApportVersion: 2.12.1-0ubuntu4 Architecture: amd64 Date: Mon Sep 16 14:02:41 2013 Ec2AMI: ami-000004dd Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.tiny Ec2Kernel: unavailable Ec2Ramdisk: unavailable MarkForUpload: True ProcEnviron:  TERM=screen  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: ifupdown UpgradeStatus: No upgrade log present (probably fresh install) == Begin SRU == [Impact] This bug is a regression of the fix applied under bug 1160490. The bug is that 'ifquery --list' will try to obtain a lock on a file in /run, which will fail with an error message of 'Bad file descriptor'. The changes applied here are a backport of upstream fix fb3055c2c4f0 [1]. [Test Case] Ideally both the test case from bug 1160490 [2] and the following test case should be done.   $ sudo ifquery --list --allow auto   lo   eth0   $ ifquery --list --allow auto   lo   eth0 Success is a list of the 'auto' interfaces that in /etc/network/interfaces. (in a cloud image, thats eth0 and lo). This should work both as root and non-root. Failure would show 'failed to lock lockfile' or non-zero exit value. Additionally, verify that you can query something other than the default interfaces file as root and non-root.   $ ( echo "auto eth1"; echo "iface eth1 inet dhcp"; ) > /tmp/my.interfaces   $ sudo ifquery --list --allow auto --interfaces=/tmp/my.interfaces   lo   eth1   $ ifquery --list --allow auto --interfaces=/tmp/my.interfaces   lo   eth1 the 'lo' output is expected as 'lo' is automatically auto. Failure here would be the same 'failed to lock lockfile' or non-zero exit. It also surely wouldn't hurt to do:   $ sudo ifdown eth0; sudo ifup eth0 Just to make sure that functions. [Regression Potential]  * (from bug 1160490) This fix backports a change from upstream ifupdown. Instead of locking a statefile it locks a lockfile.  * the change here is very trivial. It chooses to not fail on failure to get lockfile if the operation is 'no_act' (see [1]). [1] http://anonscm.debian.org/hg/collab-maint/ifupdown/rev/fb3055c2c4f0 [2] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/996369/comments/35 === End SRU === $ sudo ifquery --list --allow auto; echo $?; ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor 1 This seems possibly quite serious as /etc/network/if-up.d/upstart uses this program to determine the "auto" interfaces and then emits static-network-up. This reproduces on a fresh saucy image with serial=20130916. Also interesting, possibly related and possibly a bug in and of itself: $ cp /etc/network/interfaces /tmp/interfaces $ sudo ifquery --interfaces /tmp/interfaces --list --allow=auto ifquery: failed to lock lockfile /run/network/.ifstate.lock: Bad file descriptor Seems odd that it would do anything with /run/network/.ifstate.lock in this case since, by doing so, it means i'd have to have privilege to read that file in order to have it parse my provided --interfaces= file. For reference, on raring instance as non-root: $ ifquery --list --allow auto lo eth0 Related bugs:  * bug 1160490: race condition updating statefile ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: ifupdown 0.7.44ubuntu2 ProcVersionSignature: User Name 3.11.0-7.13-generic 3.11.0 Uname: Linux 3.11.0-7-generic x86_64 ApportVersion: 2.12.1-0ubuntu4 Architecture: amd64 Date: Mon Sep 16 14:02:41 2013 Ec2AMI: ami-000004dd Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.tiny Ec2Kernel: unavailable Ec2Ramdisk: unavailable MarkForUpload: True ProcEnviron:  TERM=screen  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash SourcePackage: ifupdown UpgradeStatus: No upgrade log present (probably fresh install)
2013-09-19 19:51:50 Brian Murray ifupdown (Ubuntu Raring): status In Progress Fix Committed
2013-09-19 19:51:54 Brian Murray bug added subscriber SRU Verification
2013-09-19 19:51:56 Brian Murray tags amd64 apport-bug ec2-images regression-release saucy amd64 apport-bug ec2-images regression-release saucy verification-needed
2013-09-19 19:55:09 Brian Murray ifupdown (Ubuntu Quantal): status In Progress Fix Committed
2013-09-19 19:57:02 Brian Murray ifupdown (Ubuntu Precise): status In Progress Fix Committed
2013-09-23 22:02:10 Bryan Quigley tags amd64 apport-bug ec2-images regression-release saucy verification-needed amd64 apport-bug ec2-images regression-release saucy verification-done-precise verification-needed
2013-09-24 01:04:25 Bryan Quigley tags amd64 apport-bug ec2-images regression-release saucy verification-done-precise verification-needed amd64 apport-bug ec2-images regression-release saucy verification-done-precise verification-done-raring verification-needed
2013-09-24 03:01:58 Bryan Quigley tags amd64 apport-bug ec2-images regression-release saucy verification-done-precise verification-done-raring verification-needed amd64 apport-bug ec2-images regression-release saucy verification-done-precise verification-done-quantal verification-done-raring
2013-10-03 19:35:59 Launchpad Janitor ifupdown (Ubuntu Raring): status Fix Committed Fix Released
2013-10-03 19:36:10 Brian Murray removed subscriber Ubuntu Stable Release Updates Team
2013-10-03 19:38:18 Launchpad Janitor ifupdown (Ubuntu Quantal): status Fix Committed Fix Released
2013-10-03 19:40:47 Launchpad Janitor ifupdown (Ubuntu Precise): status Fix Committed Fix Released