Bug #39329
openOrder of network statements in anaconda kickstart with bond interfaces
Description
I think the order is incorrect. See also community post https://community.theforeman.org/t/almalinux-9-kickstart-with-bonded-network-interface
The comment says "start with provisioning interface, then other non-bond non-bridge interfaces and the bonds + bridges at the end" but the code line after that says otherwise:
@host.interfaces.reject{ |iface| iface.bmc? }.sort_by { |iface| (iface.bond? || iface.bridge?) ? 0 : iface.provision? ? 20 : 10 }.each do |iface|
IIRC, sort_by sorts ascending, i.e. in this order:
0: bond or bridge interfaces (regardless of whether it's a provision interface or not)
10: any other interface NOT marked provision
20: any other interface marked provision
However, from various tests it seems that the kickstart will write the bond configuration prematurely to the disk if it is set up first before the slave interfaces.
I have switched the "20" and the "0" in that line of code so that a bond interface is put in last. At least for me, it's working now and the bond interface is configured with the correct ip addresses instead of "disabled".
No data to display