Bug#1004139: ifenslave: Hotplugged interfaces sometimes not added to bond-master due to ifquery race condition
Hello,
We faced the same problem and found a solution, which consists in
ensuring the sequential start up of the physical interfaces.
The interfaces(5) man page states:
"""
INTERFACE SELECTION
Lines beginning with the word "auto" are used to identify the
physical
interfaces to be brought up when ifup is run with the -a option.
(This
option is also used by the system boot scripts, so interfaces
marked
"auto" are brought up at boot time.) Physical interface names
should
follow the word "auto" on the same line. There can be multiple
"auto"
stanzas. ifup brings the named interfaces up in the order
listed.
"""
After placing all physical interfaces after the word "auto" on the same
line, we got a sequential setup of the physical interfaces which does
not trigger the race condition anymore.
Best regards,
Tiago TT
Reply to: