[Bug 1235169] Re: Fails to read files in /etc/network/interfaces.d/
TJ
ubuntu at iam.tj
Fri Oct 4 11:21:05 UTC 2013
This is the output of a modified 'ifup' that reports the paths it is
trying:
read_interfaces_defn(..., '/etc/network/interfaces'
Reading directory /etc/network/interfaces.d
Parsing file eth0
read_interfaces_defn(..., 'eth0') failed in directory '/root'
Parsing file eth1
read_interfaces_defn(..., 'eth1') failed in directory '/root'
Parsing file eth2
read_interfaces_defn(..., 'eth2') failed in directory '/root'
Parsing file eth3
read_interfaces_defn(..., 'eth3') failed in directory '/root'
Parsing file eth4
read_interfaces_defn(..., 'eth4') failed in directory '/root'
Parsing file lo
read_interfaces_defn(..., 'lo') failed in directory '/root'
run-parts --verbose /etc/network/if-pre-up.d
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/postfix
run-parts: executing /etc/network/if-up.d/upstart
** Patch added: "Debugging patch for config.c"
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1235169/+attachment/3859200/+files/config.c.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/1235169
Title:
Fails to read files in /etc/network/interfaces.d/
Status in “ifupdown” package in Ubuntu:
New
Bug description:
0.7.44ubuntu3 on Saucy 13.10 amd64.
On a multi-homed server with five ethernet interfaces we have 6
'interfaces' files in '/etc/network/interfaces.d/' for 'lo' and 'eth0'
through 'eth4'.
ifup -a fails to include the contents of these files and consequently
the interfaces are ignored.
"strace" reveals that when scanning the 'interfaces.d' directory ifupdown is using the "openat()" function which does an integral change-directory. It gets the list of files correctly and "closes()" the directory. It then does "open()" on each validly named file but gets -ENOENT result because it forgets to prefix the file-name with the 'interfaces.d/' directory - so it is looking in '/etc/network/' rather than '/etc/network/interfaces.d/'.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1235169/+subscriptions
More information about the foundations-bugs
mailing list