diff options
author | aswinrajamannar <39812128+aswinrajamannar@users.noreply.github.com> | 2021-04-26 07:28:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 09:28:39 -0500 |
commit | b2311664fa73ec85c3f85ec6ff6b092765e07975 (patch) | |
tree | 62a025feef3da93fd622e74d4d4f69fca90f80b1 /tests/__init__.py | |
parent | 431b3683fce309e7d673f97c9cf6cc726463b9e0 (diff) | |
download | vyos-cloud-init-b2311664fa73ec85c3f85ec6ff6b092765e07975.tar.gz vyos-cloud-init-b2311664fa73ec85c3f85ec6ff6b092765e07975.zip |
Azure: Retry net metadata during nic attach for non-timeout errs (#878)
When network interfaces are hot-attached to the VM, attempting to get
network metadata might return 410 (or 500, 503 etc) because the info
is not yet available. In those cases, we retry getting the metadata
before giving up. The only case where we can move on to wait for more
nic attach events is if the call times out despite retries, which
means the interface is not likely a primary interface, and we should
try for more nic attach events.
Diffstat (limited to 'tests/__init__.py')
0 files changed, 0 insertions, 0 deletions