masakari/masakari/tests/unit/compute
Dinesh Bhor 5d34fb847e Send global_request_id to nova when calls are made
This patch adds the global_request_id to the constructor for nova
client, which will pass the global_request_id into nova services
on all API calls. Supporting global_request_id makes debugging [1]
easier when request touches many services in cloud. The masakari
request-id will be sent to nova in the request header like below and
it will be available with context.global_id:

-H "X-OpenStack-Request-ID: req-1a9b7b24-02ed-4400-bcc3-cc1bcbb59147"

Masakari is already using newer python-novacliant which supports
global_request_id [2].

This patch also fixes the below debug log message which gets emitted
when any argument gets dropped while creating request context:

"Arguments dropped when creating context: {u'global_request_id': None}"

As decided earlier while fixing the issue [3] this patch adds the
'global_request_id' to the base RequestContext hence removes the
earlier debug log message.

[1] I65de8261746b25d45e105394f4eeb95b9cb3bd42
[2] I5b247f75edeea9da50fe524eadf5f9a2c626d665
[3] d4dd11d7bd

Change-Id: I2139976f6774b10518c7455a9af1b32b1e7b3e7d
2017-07-27 09:53:25 +05:30
..
__init__.py Add unit tests for nova support 2016-11-10 17:15:45 +05:30
test_nova.py Send global_request_id to nova when calls are made 2017-07-27 09:53:25 +05:30