[Bug 1326854] Re: ambiguous error message "sh: echo: I/O error"
Louis Bouchard
louis.bouchard at canonical.com
Wed Jul 8 10:11:40 UTC 2015
As it turns out, this highlights a bug in the ifenslave script.
Starting with kernel 3.13 (commit
http://git.kernel.org/cgit/linux/kernel/git/stable/linux-
stable.git/commit/?id=5831d66e8097aedfa3bc35941cf265ada2352317),
/sys/class/net/{bond}/slave_{ifname} (notice the slave_) no longer
exist.
I am checking with a colleague to confirm but from what I can tell, it
has been replaced by /sys/class/net/{bond}/lower_{ifname}.
If I am exact, I will bring up the bug to the author with a fix that
seems to work on my side. Once that fix makes it into Wily, I will SRU
to Trusty.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifenslave-2.6 in Ubuntu.
https://bugs.launchpad.net/bugs/1326854
Title:
ambiguous error message "sh: echo: I/O error"
Status in ifenslave-2.6 package in Ubuntu:
In Progress
Bug description:
adding an interface to a bonding interface can result in the error
message "sh: echo: I/O error" which is highly ambiguous (did the I/O
error occur in sh, echo or is it an I/O error realted to the
command/driver? - at least change this to "I/O error occured" which is
still not helpful ("I/O occured in the kernel driver, please make sure
it supports XY, check with <Z>" would be nice), but at least not
confusing.
reproduction:
/etc/wpa_supplicant/wpa_supplicant.conf
<code>
network={
ssid="assid"
key_mgmt=WPA-EAP
eap=TTLS
proto=WPA RSN
identity="anidentity at adomain.com"
anonymous_identity="anonymous at adomain.de"
ca_cert="/etc/wpa_supplicant/deutsche-telekom-root-ca-2.crt"
phase2="auth=PAP"
}
</code>
/etc/network/interfaces
<code>
iface main inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface bond0 inet manual
down ifenslave -d bond0 wlan0 wlan1
bond-mode active-backup
bond-miimon 100
bond-slaves wlan0 wlan1
allow-bond0 wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
bond-master bond0
allow-bond0 wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
bond-master bond0
iface eth1 inet dhcp
</code>
my commands
<code>
sudo modprobe bonding
sudo ifup wlan0
sudo ifup wlan1
sudo ifconfig bond0 # no DHCP example, so I've not idea how to get this running :( just providing a way to reproduce the error message (which should in no case be shown with its current content)
sudo ifenslave bond0 wlan0 wlan1
</code>
I'm not requesting support here, just to fix the bug which should make
the former unnecessary anyway :)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/1326854/+subscriptions
More information about the foundations-bugs
mailing list