From 9a33f64257c29c36843b2e4fb4fe14328c340f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Thu, 23 Jul 2026 19:19:23 -0300 Subject: [PATCH] fix(genesis): find the boot NIC over InfiniBand (IPoIB) When a node boots from an InfiniBand interface, doxcat could not match BOOTIF to the netdev, so boot-nic detection failed. Load ib_ipoib and, if the normal Ethernet lookup finds nothing, fall back to matching the InfiniBand device by its (shorter) IPoIB address. modprobe ib_ipoib is harmless where there is no IB hardware (the module simply loads no devices), and the IB lookup only runs when the Ethernet lookup fails, so non-IB nodes are unaffected. Not lab-validated (no InfiniBand fabric available; the SR635's Mellanox card is in Ethernet mode). Recovered from the unmerged lenovobuild branch (aeeebd5f). Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com> --- xCAT-genesis-scripts/usr/bin/doxcat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-genesis-scripts/usr/bin/doxcat b/xCAT-genesis-scripts/usr/bin/doxcat index 0bf5e360a..40a2722b2 100755 --- a/xCAT-genesis-scripts/usr/bin/doxcat +++ b/xCAT-genesis-scripts/usr/bin/doxcat @@ -32,6 +32,7 @@ logger -s -t $log_label -p local4.info "Beginning doxcat process..." modprobe acpi_cpufreq 2>/dev/null # on some machines this fails modprobe cpufreq_ondemand +modprobe ib_ipoib if ls /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor &>/dev/null; then if grep -q ondemand /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors; then for gov in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do @@ -41,10 +42,14 @@ if ls /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor &>/dev/null; then fi if [ ! -z "$BOOTIF" ]; then BOOTIF=`echo $BOOTIF|sed -e s/01-// -e s/-/:/g` + IBOOTIF=`echo $BOOTIF|sed -e s/^..//` logger -s -t $log_label -p local4.info "Waiting for device with address $BOOTIF to appear.." gripeiter=6000 while [ -z "$bootnic" ]; do bootnic=`ip link show|grep -B1 $BOOTIF|grep mtu|awk '{print $2}'|sed -e 's/:$//'` + if [ -z "$bootnic" ]; then + bootnic=`ip link show|grep -B1 infiniband|grep -B1 $IBOOTIF|grep mtu|awk '{print $2}'|sed -e 's/:$//'` + fi sleep 0.1 if [ $gripeiter = 0 ]; then logger -s -t $log_label -p local4.err "Unable to find boot device (Maybe the xCAT genesis kernel is missing the driver for your NIC?)"