From 7d8658e8487427d8c22f6ac35e4e31fafcb8b587 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, 29 Oct 2026 15:26:53 -0300 Subject: [PATCH 1/3] test(netboot): check the riscv64 default drivers by name The EL riscv64 case compared the whole default driver list, so a driver added to the list failed it. Check that each expected driver is in the list. --- xCAT-test/unit/el_riscv64_install_paths.t | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/xCAT-test/unit/el_riscv64_install_paths.t b/xCAT-test/unit/el_riscv64_install_paths.t index f7d7d7c453..84475c0f5a 100644 --- a/xCAT-test/unit/el_riscv64_install_paths.t +++ b/xCAT-test/unit/el_riscv64_install_paths.t @@ -88,11 +88,10 @@ ok( 'POWER media retain their separate architecture route', ); -is_deeply( - [ imgutils::default_net_drivers( 'rh', 'riscv64' ) ], - [qw(e1000 e1000e igb ixgbe r8169 tg3 bnx2x mlx5_core virtio_net)], - 'riscv64 diskless images receive the intended default network drivers', -); +my %riscv64_drivers = map { $_ => 1 } imgutils::default_net_drivers( 'rh', 'riscv64' ); +for my $driver (qw(e1000 e1000e igb ixgbe r8169 tg3 bnx2x mlx5_core virtio_net)) { + ok( $riscv64_drivers{$driver}, "riscv64 diskless images receive the $driver network driver" ); +} is_deeply( [ imgutils::resolver_library_paths('riscv64') ], [ 'lib64/libnss_dns.so.2', 'lib64/libresolv.so.2' ], From 9ed498e50f5fa7cdf124b90a1ab404f84bab6956 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, 29 Oct 2026 15:34:04 -0300 Subject: [PATCH 2/3] fix(netboot): give riscv64 images the Intel 700 and 800 series drivers The riscv64 default driver lists had no i40e or ice, so the initrd of a diskless image could not bring up the network of a riscv64 server with an Intel X710 or E810 adapter. Add both drivers to the EL and Ubuntu rows. genimage pulls their module dependencies from modules.dep. --- xCAT-server/share/xcat/netboot/imgutils/imgutils.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm index 9cc0b35c7b..c3a85029cd 100644 --- a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm +++ b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm @@ -380,7 +380,7 @@ sub default_net_drivers { x86 => [qw(tg3 bnx2 bnx2x e1000 e1000e igb mlx_en mlx5_core virtio_net be2net)], x86_64 => [qw(tg3 bnx2 bnx2x e1000 e1000e igb mlx_en mlx5_core virtio_net be2net)], aarch64 => [qw(tg3 bnx2 bnx2x e1000e igb mlx_en mlx5_core virtio_net)], - riscv64 => [qw(e1000 e1000e igb ixgbe r8169 tg3 bnx2x mlx5_core virtio_net)], + riscv64 => [qw(e1000 e1000e igb ixgbe i40e ice r8169 tg3 bnx2x mlx5_core virtio_net)], ppc64 => [qw(e1000 e1000e igb ibmveth ehea)], s390x => [qw(qdio ccwgroup)], }, @@ -395,7 +395,7 @@ sub default_net_drivers { x86_64 => [qw(tg3 bnx2 bnx2x e1000 e1000e igb mlx_en mlx5_core virtio_net overlay)], ppc64el => [qw(tg3 bnx2 bnx2x e1000 e1000e igb ibmveth ehea mlx_en mlx4_en mlx5_core virtio_net overlay)], ppc64 => [qw(e1000 e1000e igb ibmveth ehea)], - riscv64 => [qw(e1000 e1000e igb ixgbe r8169 tg3 bnx2x mlx5_core virtio_net overlay)], + riscv64 => [qw(e1000 e1000e igb ixgbe i40e ice r8169 tg3 bnx2x mlx5_core virtio_net overlay)], s390x => [qw(qdio ccwgroup)], }, ); From 9f8f3a0a47af5706ccce5b396add9b261fa39007 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, 29 Oct 2026 15:35:09 -0300 Subject: [PATCH 3/3] test(netboot): cover the Intel 700 and 800 series riscv64 drivers The EL and Ubuntu riscv64 default driver lists carry i40e and ice, and the Ubuntu list keeps ixgbe. --- xCAT-test/unit/el_riscv64_install_paths.t | 2 +- xCAT-test/unit/ubuntu_riscv64_net_drivers.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-test/unit/el_riscv64_install_paths.t b/xCAT-test/unit/el_riscv64_install_paths.t index 84475c0f5a..91ef0331ee 100644 --- a/xCAT-test/unit/el_riscv64_install_paths.t +++ b/xCAT-test/unit/el_riscv64_install_paths.t @@ -89,7 +89,7 @@ ok( ); my %riscv64_drivers = map { $_ => 1 } imgutils::default_net_drivers( 'rh', 'riscv64' ); -for my $driver (qw(e1000 e1000e igb ixgbe r8169 tg3 bnx2x mlx5_core virtio_net)) { +for my $driver (qw(e1000 e1000e igb ixgbe i40e ice r8169 tg3 bnx2x mlx5_core virtio_net)) { ok( $riscv64_drivers{$driver}, "riscv64 diskless images receive the $driver network driver" ); } is_deeply( diff --git a/xCAT-test/unit/ubuntu_riscv64_net_drivers.t b/xCAT-test/unit/ubuntu_riscv64_net_drivers.t index 6e98c33a2e..3a79dbc83f 100644 --- a/xCAT-test/unit/ubuntu_riscv64_net_drivers.t +++ b/xCAT-test/unit/ubuntu_riscv64_net_drivers.t @@ -18,7 +18,7 @@ require imgutils; my @riscv = imgutils::default_net_drivers( 'ubuntu', 'riscv64' ); ok( scalar @riscv, 'a riscv64 Ubuntu image is given network drivers' ); -for my $driver (qw(virtio_net e1000 e1000e igb r8169 tg3 mlx5_core)) { +for my $driver (qw(virtio_net e1000 e1000e igb ixgbe i40e ice r8169 tg3 mlx5_core)) { ok( scalar( grep { $_ eq $driver } @riscv ), "the list carries $driver" ); }