tinkerbell / osie

An in-memory installation environment for bare metal.
https://tinkerbell.org
Apache License 2.0
99 stars 30 forks source link

Update curl requests to retry 7x (~127 seconds) #298

Closed tstromberg closed 2 years ago

tstromberg commented 2 years ago

Signed-off-by: Thomas Stromberg t+github@stromberg.org

Description

Update curl calls to retry 7x, or just long enough to survive a 2-minute outage (not including other connection overhead).

This defines and uses an rcurl alias where convenient, but in some locations, such as where scripts are written to disk, it uses --retry 7. Both behave equivalently.

Why is this needed

In production, we've occasionally seen instances where metadata servers are busy and/or otherwise unavailable. This will allow provisioning jobs to survive these momentary availability blips and transient networking issues.

How Has This Been Tested?

It hasn't.