quattor / configuration-modules-core

Node Configuration Manager Components for Everyone
www.quattor.org
Other
6 stars 54 forks source link

ncm-network: nmstate: bonding apply #1692

Closed stdweird closed 6 days ago

stdweird commented 2 months ago

current bonding code will run the apply on alphabetically sorted interface names.

for bond interfaces, the apply on the bond interface should run after the apply on the slave interfaces. (or try to create one big yml for bond and all slaves; that might make it a but more "atomic", not sure).

stdweird commented 2 months ago

i am testing this with a bond on infiniband devices, and it is a bit odd: eg a rerun of ncm-network (even after a reboot) skips the nmstatectl apply ib0 the seoncd time, yet the apply bond0 fails. if i however do the apply ib0 followed by the apply bond0 it works. so it looks like we need something more ordered; or always re-apply the slave interfaces when brining up the bond (like the network.pm does)