Skip to content

Commit 7cabd6d

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Honor [neutron]http_retries in the manual client"
2 parents 84cfbdd + 56eb253 commit 7cabd6d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

nova/network/neutron.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ def _get_ksa_client(context, admin=False):
272272
client = utils.get_ksa_adapter(
273273
'network', ksa_auth=auth_plugin, ksa_session=session)
274274
client.additional_headers = {'accept': 'application/json'}
275+
client.connect_retries = CONF.neutron.http_retries
275276
return client
276277

277278

nova/tests/unit/network/test_neutron.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ def test_neutron_http_retries(self):
251251
auth_token='token')
252252
cl = neutronapi.get_client(my_context)
253253
self.assertEqual(retries, cl.httpclient.connect_retries)
254+
kcl = neutronapi._get_ksa_client(my_context)
255+
self.assertEqual(retries, kcl.connect_retries)
254256

255257

256258
class TestAPIBase(test.TestCase):

0 commit comments

Comments
 (0)