Skip to content

Commit b860d70

Browse files
authored
fix: Retry on OpenStack HTTP status codes (canonical#5943)
Fixes canonicalGH-5687
1 parent b45d66a commit b860d70

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cloudinit/sources/helpers/openstack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def _path_read(self, path, decode=False):
496496
def should_retry_cb(cause):
497497
try:
498498
code = int(cause.code)
499-
if code >= 400:
499+
if code >= 400 and code not in [408, 429, 500, 502, 503, 504]:
500500
return False
501501
except (TypeError, ValueError):
502502
# Older versions of requests didn't have a code.

tools/.github-cla-signers

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ frikilax
7676
frittentheke
7777
GabrielNagy
7878
garzdin
79+
gglzf4
7980
giggsoff
8081
gilbsgilbs
8182
glyg

0 commit comments

Comments
 (0)