Skip to content

Comments

bin/flatcar-install: add parameters to make wget more resilient#35

Merged
pothos merged 1 commit intoflatcar-masterfrom
kai/wget-robust
Feb 12, 2021
Merged

bin/flatcar-install: add parameters to make wget more resilient#35
pothos merged 1 commit intoflatcar-masterfrom
kai/wget-robust

Conversation

@pothos
Copy link
Member

@pothos pothos commented Feb 12, 2021

When the network has temporary issues it can happen that wget fails to
establish a connection or complete the transfer, or worse, get stuck
in a TCP connection which is not moving forward.
Add timeout and retry parameters to prevent unnecessary failure if a
retry fixes the problem and also to prevent the connection from getting
stuck.

How to use

Use flatcar-install -s from a PXE-booted Flatcar image to install to disk, check that it works and is even robust against the network dropping packets for the specified timeout of 20 seconds.

Testing done

Ran the wget command line on a test file while breaking my local connection. Also tested that sudo flatcar-install -s still works as expected.

When the network has temporary issues it can happen that wget fails to
establish a connection or complete the transfer, or worse, get stuck
in a TCP connection which is not moving forward.
Add timeout and retry parameters to prevent unnecessary failure if a
retry fixes the problem and also to prevent the connection from getting
stuck.
@pothos pothos marked this pull request as ready for review February 12, 2021 10:47
@pothos pothos requested a review from a team February 12, 2021 10:47
Copy link
Contributor

@margamanterola margamanterola left a comment

Choose a reason for hiding this comment

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

LGTM

@pothos pothos merged commit 82a878b into flatcar-master Feb 12, 2021
@pothos pothos deleted the kai/wget-robust branch February 12, 2021 14:01
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Feb 12, 2021
This pulls in
flatcar/init#35
to add parameters for wget in bin/flatcar-install.
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.

2 participants