diff options
author | Chris Patterson <cpatterson@microsoft.com> | 2023-04-19 21:54:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 20:54:04 -0500 |
commit | 4f3fe82305b709721a9725b25cbf0ca51b770fc6 (patch) | |
tree | bb28d3f1c3f8e071f6db7230e211ae19803b289d /tests/unittests/net/test_dhcp.py | |
parent | 5942f4023e2581a43f31d547995095ca49954353 (diff) | |
download | cloud-init-git-4f3fe82305b709721a9725b25cbf0ca51b770fc6.tar.gz |
azure/imds: retry fetching metadata up to 300 seconds (#2121)
Instead of a fixed number of retries, allow up to 5 minutes to fetch
metadata from IMDS. The current approach allows for up to 11 attempts
depending on the path. Given the timeout setting, this can vary from
~11 seconds up to ~32 seconds depending on whether or not read/connection
timeouts are encountered.
Delaying boot on the rare occasion that IMDS is delayed is better than
ignoring the metadata as it ensures the VM is configured as expected.
This is a very conservative timeout and may be reduced in the future.
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Diffstat (limited to 'tests/unittests/net/test_dhcp.py')
0 files changed, 0 insertions, 0 deletions