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

enhancement: check default route during installation #725

Merged
merged 1 commit into from
May 14, 2024
Merged

enhancement: check default route during installation #725

merged 1 commit into from
May 14, 2024

Conversation

mingshuoqiu
Copy link
Contributor

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:

  1. Set up a DHCP server and enable the iPXE capability which runs w/o option routers x.x.x.x
  2. Proceed the Harvester ISO installation with the management network in DHCP mode.
  3. Make sure the installer prompt the No default route found message and stop the installation
  4. Proceed the iPXE automatic installation with pre-configured Harvester configuration file.
  5. Make sure the iPXE automatic installation stops and prompt the No default route found message.

@bk201 bk201 requested review from tserong and starbops May 2, 2024 15:02
Copy link
Contributor

@tserong tserong left a 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.

pkg/console/install_panels.go Outdated Show resolved Hide resolved
pkg/console/install_panels.go Outdated Show resolved Hide resolved
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, just one nit.

pkg/console/install_panels.go Outdated Show resolved Hide resolved
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>
@mingshuoqiu
Copy link
Contributor Author

@w13915984028 @starbops revised per your suggestion. Thanks

Copy link
Member

@w13915984028 w13915984028 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.

@tserong tserong merged commit 71247f7 into harvester:master May 14, 2024
5 checks passed
mingshuoqiu added a commit to mingshuoqiu/harvester-installer that referenced this pull request 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

Signed-off-by: Chris Chiu <chris.chiu@suse.com>
(cherry picked from commit 71247f7)
starbops pushed a commit that referenced this pull request May 20, 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

Signed-off-by: Chris Chiu <chris.chiu@suse.com>
(cherry picked from commit 71247f7)
wombelix added a commit to wombelix/fork_harvester_harvester-installer that referenced this pull request Jul 31, 2024
Revert changes:
- harvester@71247f7
- harvester#725

Necessary to make installer for image creation functional again.

Requires a permanent fix, e.g. a config flag.
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.

4 participants