Revert "Add timeout and retries to JSON RPC client"

this requires keystoneauth 3.18.0 which is already part of ironic, but it breaks ironic-staging-drivers

This reverts commit 901402d113.

Change-Id: I0c0fa263494af5f2efe77652f56299e3a7b1a4a2
This commit is contained in:
Riccardo Pittau 2020-05-18 08:38:04 +00:00
parent 901402d113
commit 72e7514ce3
3 changed files with 2 additions and 14 deletions

View File

@ -41,14 +41,11 @@ def _get_session():
else:
auth = None
session = keystone.get_session('json_rpc', auth=auth)
session.headers = {
_SESSION = keystone.get_session('json_rpc', auth=auth)
_SESSION.headers = {
'Content-Type': 'application/json'
}
# Adds options like connect_retries
_SESSION = keystone.get_adapter('json_rpc', session=session)
return _SESSION

View File

@ -38,8 +38,6 @@ opts = [
def register_opts(conf):
conf.register_opts(opts, group='json_rpc')
auth.register_auth_opts(conf, 'json_rpc')
conf.set_default('timeout', 15, group='json_rpc')
conf.set_default('connect_retries', 2, group='json_rpc')
def list_opts():

View File

@ -1,7 +0,0 @@
---
fixes:
- |
Fixes the JSON RPC backend potentially hanging on inability to connect
to a conductor. The default timeout is now 15 seconds and 2 retries are
made. These values can be adjusted via the configuration options
``[json_rpc]timeout`` and ``[json_rpc]connect_retries`` accordingly.