Merge "Make ChunkedEncodingError less scary"

This commit is contained in:
Zuul 2019-09-10 18:32:57 +00:00 committed by Gerrit Code Review
commit f009598f40
1 changed files with 9 additions and 0 deletions

View File

@ -278,3 +278,12 @@ class K8sClient(object):
LOG.warning('%ds without data received from watching %s. ' LOG.warning('%ds without data received from watching %s. '
'Retrying the connection with resourceVersion=%s.', 'Retrying the connection with resourceVersion=%s.',
timeouts[1], path, params.get('resourceVersion')) timeouts[1], path, params.get('resourceVersion'))
except requests.exceptions.ChunkedEncodingError:
LOG.warning("Connection to %s closed when watching. This "
"mostly happens when Octavia's Amphora closes "
"connection due to lack of activity for 50s. "
"Since Rocky Octavia this is configurable and "
"should be set to at least 20m, so check timeouts "
"on Kubernetes API LB listener. Restarting "
"connection with resourceVersion=%s.", path,
params.get('resourceVersion'))