ambiguous error message "sh: echo: I/O error"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifenslave (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Eric Desrochers | ||
Vivid |
Fix Released
|
Low
|
Eric Desrochers |
Bug Description
[SRU justification]
[Impact]
Without this patch, trying to add a bond when this one is already defined leads to the following error :
Example :
# ifenslave bond0 eth1 eth2
sh: echo: I/O error
eth1: could not add interface
[Test Case]
For info, the ambiguous message only appears when using ifenslave on a bond that is already configured :
# ifconfig eth1 up
# ifconfig eth2 up
# ifconfig bond0 up
# ifenslave bond0 eth1 eth2 <<<< No error on the first execution
# ifenslave bond0 eth1 eth2
sh: echo: I/O error
eth1: could not add interface
[Regression Potential]
None expected as the same commit is already in use in the ifenslave package for Wily and in the upstream debian package.
[Original description of the problem]
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_
<code>
network={
ssid="assid"
key_
eap=TTLS
proto=WPA RSN
<email address hidden>"
<email address hidden>"
ca_
phase2=
}
</code>
/etc/network/
<code>
iface main inet dhcp
wpa-conf /etc/wpa_
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_
bond-master bond0
allow-bond0 wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_
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 :)
Changed in ifenslave-2.6 (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
tags: | added: sts |
Changed in ifenslave-2.6 (Ubuntu): | |
status: | Triaged → In Progress |
Changed in ifenslave-2.6 (Ubuntu Trusty): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in ifenslave-2.6 (Ubuntu Trusty): | |
assignee: | nobody → eric.desrochers (eric-desrochers-z) |
status: | Confirmed → In Progress |
description: | updated |
tags: | added: verification-neede |
tags: |
added: verification-needed removed: sts verification-neede |
tags: | added: sts |
tags: | removed: sts |
Changed in ifenslave-2.6 (Ubuntu Vivid): | |
importance: | Undecided → Low |
affects: | ifenslave-2.6 (Ubuntu) → ifenslave (Ubuntu) |
Changed in ifenslave (Ubuntu Trusty): | |
status: | In Progress → Fix Released |
tags: |
added: verification-done-vivid removed: verification-needed |
tags: | removed: removal-candidate |
Also seeing this message. Can it be ignored?