Browse Source

Merge "Add urllib3's SSLError to expected Watcher exc"

changes/19/765319/1
Zuul 2 months ago
committed by Gerrit Code Review
parent
commit
06ad286e15
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      kuryr_kubernetes/k8s_client.py

+ 3
- 1
kuryr_kubernetes/k8s_client.py View File

@ -19,6 +19,7 @@ import os
import ssl
import time
from urllib import parse
import urllib3
from oslo_log import log as logging
from oslo_serialization import jsonutils
@ -396,7 +397,8 @@ class K8sClient(object):
m = line_dict.get('object', {}).get('metadata', {})
resource_version = m.get('resourceVersion', None)
except (requests.ReadTimeout, requests.ConnectionError,
ssl.SSLError, requests.exceptions.ChunkedEncodingError):
ssl.SSLError, requests.exceptions.ChunkedEncodingError,
urllib3.exceptions.SSLError):
t = utils.exponential_backoff(attempt)
log = LOG.debug
if attempt > 0:


Loading…
Cancel
Save