Browse Source

Merge "Make ChunkedEncodingError less scary"

tags/1.1.0^0
Zuul 1 week ago
parent
commit
f009598f40
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      kuryr_kubernetes/k8s_client.py

+ 9
- 0
kuryr_kubernetes/k8s_client.py View File

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

Loading…
Cancel
Save