Merge "Send context.global_id on neutron calls" into stable/queens

This commit is contained in:
Zuul 2019-02-09 04:13:36 +00:00 committed by Gerrit Code Review
commit 45c5b1a890
2 changed files with 4 additions and 1 deletions

View File

@ -163,7 +163,7 @@ def get_client(context, admin=False):
client_args = dict(session=_SESSION,
auth=auth_plugin,
global_request_id=context.global_request_id)
global_request_id=context.global_id)
if CONF.neutron.url:
# TODO(efried): Remove in Rocky

View File

@ -135,6 +135,9 @@ class TestNeutronClient(test.NoDBTestCase):
self.assertEqual(['internal', 'public'], cl.httpclient.interface)
self.assertIsNone(cl.httpclient.region_name)
self.assertIsNone(cl.httpclient.endpoint_override)
self.assertIsNotNone(cl.httpclient.global_request_id)
self.assertEqual(my_context.global_id,
cl.httpclient.global_request_id)
def test_ksa_adapter_loading(self):
"""Test ksa loading path with specified values."""