mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-12-04 08:07:04 +00:00
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>
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user