-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhancement: check default route during installation #725
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general, just a couple of small suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one nit.
RKE2 requires a default route to work which is required during installation. The gateway setting will be checked in Static IP mode, but it could be absent in DHCP mode. 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. Link: harvester/harvester#5675 Signed-off-by: Chris Chiu <chris.chiu@suse.com>
@w13915984028 @starbops revised per your suggestion. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
RKE2 requires a default route to work which is required during installation. The gateway setting will be checked in Static IP mode, but it could be absent in DHCP mode. 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. Link: harvester/harvester#5675 Signed-off-by: Chris Chiu <chris.chiu@suse.com> (cherry picked from commit 71247f7)
RKE2 requires a default route to work which is required during installation. The gateway setting will be checked in Static IP mode, but it could be absent in DHCP mode. 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. Link: harvester/harvester#5675 Signed-off-by: Chris Chiu <chris.chiu@suse.com> (cherry picked from commit 71247f7)
Revert changes: - harvester@71247f7 - harvester#725 Necessary to make installer for image creation functional again. Requires a permanent fix, e.g. a config flag.
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:
harvester/harvester#5675
Test plan:
option routers x.x.x.x
No default route found
message and stop the installationNo default route found
message.