From 62c8622f0f8419f910de81ca88ac2fec590ed2f0 Mon Sep 17 00:00:00 2001 From: Daniel Hilst <392820+dhilst@users.noreply.github.com> Date: Tue, 10 Nov 2026 07:25:36 -0300 Subject: [PATCH] test(xcat-core): a static ip= install boot fails on a slow link xCAT does not set rd.net.timeout.carrier. dracut does not retry a static ip= configuration that found no carrier. On a port whose link came up 46 s after the driver loaded, the installer logged "No carrier detected" and stopped in the dracut emergency shell. The test expects rd.net.timeout.carrier=120 in the static IPv6 boot arguments of the EL and openEuler installer. It fails before the fix. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com> --- xCAT-test/unit/anaconda_ipv6_rendering.t | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xCAT-test/unit/anaconda_ipv6_rendering.t b/xCAT-test/unit/anaconda_ipv6_rendering.t index b553787180..fb02fb8f46 100644 --- a/xCAT-test/unit/anaconda_ipv6_rendering.t +++ b/xCAT-test/unit/anaconda_ipv6_rendering.t @@ -204,6 +204,15 @@ is_deeply( ['nodev6mastergw', 6], 'static IPv6 xcatmaster gateway lookup is constrained to IPv6' ); +# dracut does not retry a static ip= that found no carrier, and a slow link drops the +# installer into the emergency shell. +like( + xCAT_plugin::anaconda::_el10_static_ipv6_boot_args( + 'nodev6nogw', { mac => '02:00:00:00:00:63' } + ), + qr/(?:\A| )rd\.net\.timeout\.carrier=120(?: |\z)/, + 'static IPv6 boot waits up to 120 s for carrier on the boot interface' +); ok( !defined(xCAT_plugin::anaconda::_el10_static_ipv6_boot_args('nodev6nogw', {})), 'static IPv6 boot rendering refuses an unbound interface when no NIC name or MAC exists'