Bonded interfaces don't come down with a ifdown -a
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| ifenslave (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Bug Description
1) Precise -> Trusty
2) 1.1.0_19ubuntu5
3) a. Set up new interfaces config with a simple bonded config (you don't need eth0):
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet manual
bond-master bond0
bond-primary eth1
auto eth2
iface eth2 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
address 192.168.122.99
gateway 192.168.122.1
netmask 255.255.255.0
bond-mode active-backup
bond-miimon 100
bond-slaves none
b. Restart the machine to bring up in a known state (wait an extra few minutes to make sure the interfaces aren't still waiting)
c. Note what interfaces come up correctly via ifconfig
d. Run ifdown -a. This should bring down all interfaces....
4) Ifdown -a doesn't bring down bond0
Observations:
- if we're using dhcp for the bond0 interface this works
- if there isn't an extra eth0 device (as described above) this works
| affects: | ifenslave-2.6 (Ubuntu) → ifenslave (Ubuntu) |
| description: | updated |
| description: | updated |
| description: | updated |

This is also reproducible on Trusty, if I use the same configuration above and execute the following:
$ sudo ifdown bond0
I get:
ifdown: interface bond0 not configured
I straced the command and see it reads /run/network/ ifstate. However the file doesn't have bond0 and therefore we get the error. This is even if ifconfig / ip addr show the device as UP and having a proper ipv4 address.