There is some possible race mentioned in the examples/readme of ifenslave. Basically the suggested way is to have no slaves defined in the bonding definition but add definitions for the slaves. Like
auto bond0
iface bond0 inet static
...
bond-slaves none
...
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
There is some possible race mentioned in the examples/readme of ifenslave. Basically the suggested way is to have no slaves defined in the bonding definition but add definitions for the slaves. Like
auto bond0
iface bond0 inet static
...
bond-slaves none
...
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
Has that been tried?