Skip to content
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

[backport 1.3] enhancement: check default route during installation (#725) #734

Merged
merged 1 commit into from
May 20, 2024

Conversation

mingshuoqiu
Copy link
Contributor

@mingshuoqiu mingshuoqiu commented May 17, 2024

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

Problem:
Per harvester/harvester#5675

Solution:
add default route check during installation

Related Issue:
harvester/harvester#5675

Test plan:
As steps in #725

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 <[email protected]>
(cherry picked from commit 71247f7)
@mingshuoqiu mingshuoqiu changed the title enhancement: check default route during installation (#725) [backport 1.3] enhancement: check default route during installation (#725) May 20, 2024
@mingshuoqiu mingshuoqiu requested review from starbops and bk201 May 20, 2024 05:14
Copy link
Member

@bk201 bk201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@starbops starbops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants