[openstack-dev] [neutron] Supporting retries in neutronclient

Paul Ward wpward at us.ibm.com
Tue May 27 17:48:59 UTC 2014



Currently, neutronclient is hardcoded to only try a request once in
retry_request by virtue of the fact that it uses self.retries as the retry
count, and that's initialized to 0 and never changed.  We've seen an issue
where we get an ssl handshaking error intermittently (seems like more of an
ssl bug) and a retry would probably have worked.  Yet, since neutronclient
only tries once and gives up, it fails the entire operation.  Here is the
code in question:

https://github.com/openstack/python-neutronclient/blob/master/neutronclient/v2_0/client.py#L1296

Does anybody know if there's some explicit reason we don't currently allow
configuring the number of retries?  If not, I'm inclined to propose a
change for just that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140527/ebe197f5/attachment.html>


More information about the OpenStack-dev mailing list