harvester-installer
harvester-installer copied to clipboard
enhancement: check default route during installation
Problem: RKE2 requires a default route to start, some installations are stuck with no obvious message if there is no default route on the system.
Solution: Check the existence of the default route after applying network settings and stop the installation if no default route found. The check will be applied in both ISO and iPXE installation.
Related Issue: https://github.com/harvester/harvester/issues/5675
Test plan:
- Set up a DHCP server and enable the iPXE capability which runs w/o
option routers x.x.x.x
- Proceed the Harvester ISO installation with the management network in DHCP mode.
- Make sure the installer prompt the
No default route found
message and stop the installation - Proceed the iPXE automatic installation with pre-configured Harvester configuration file.
- Make sure the iPXE automatic installation stops and prompt the
No default route found
message.