Merge "Reconnect on httplib.ResponseNotReady"

This commit is contained in:
Zuul 2018-12-19 19:45:59 +00:00 committed by Gerrit Code Review
commit 43cf3a0b43
1 changed files with 8 additions and 0 deletions

View File

@ -224,6 +224,14 @@ class IPANovaJoinBase(object):
self.__backoff()
else:
raise
except http_client.ResponseNotReady:
# NOTE(xek): This means that the server closed the socket,
# so keep-alive ended and we can't use that connection.
api.Backend.rpcclient.disconnect()
if self.backoff:
self.__backoff()
else:
raise
def _ipa_client_configured(self):
"""Determine if the machine is an enrolled IPA client.