agent-compute doesn't log "x-openstack-request-id" that provided by nova-api's response

Bug #1332060 reported by Tatsuro Makita
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Low
Tatsuro Makita

Bug Description

Issue:
Ceilometer-agent-compute has periodic task that is calling nova-api.

Ceilometer-agent-compute does not output "x-openstack-request-id" in ceilometer-agent-compute's log.
It's difficult to trace log between ceilometer-agent-compute and nova-api.

Below the log of ceilometer-agent-compute:
<pre>
REQ: curl -i 'http://192.168.243.222:8774/v2/6c231f4ea6754a26b4fe3b27c3e331f9/servers/detail?all_tenants=True&host=interdev3' -X GET -H "X-Auth-Project-Id: service" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 4e9ce4664cf447febc0bd9e714fb5b32"

2014-06-17 20:16:37.064 11589 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 192.168.243.222
2014-06-17 20:16:37.065 11589 DEBUG urllib3.connectionpool [-] Setting read timeout to None _make_request /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:375
2014-06-17 20:16:37.121 11589 DEBUG urllib3.connectionpool [-] "GET /v2/6c231f4ea6754a26b4fe3b27c3e331f9/servers/detail?all_tenants=True&host=interdev3 HTTP/1.1" 200 15 _make_request /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:415
RESP: [200] CaseInsensitiveDict({'date': 'Tue, 17 Jun 2014 11:16:37 GMT', 'content-length': '15', 'content-type': 'application/json', 'x-compute-request-id': 'req-eb10a2d3-1ea1-4d6d-af5c-a224ed6bc3b4'})
RESP BODY: {"servers": []}
</pre>

This problem, similar events have also occurred in periodic task of ceilometer-agent-central.

X-openstack-request-id is worthful functionality especially for the operator who's tracing problem's root cause.

We will be able to trace easily when ceilometer-agent-compute outputs "x-openstack-request-id" in the DEBUG log.
For example, "grep -r <x-openstack-request-id> /var/log/devstack"

Changed in ceilometer:
assignee: nobody → Tatsuro Makita (makita-tatsuro)
Revision history for this message
gordon chung (chungg) wrote :

want to switch this over to bug 1244182? i'm assuming their the same. if not, please continue :)

Revision history for this message
Tatsuro Makita (makita-tatsuro) wrote :

Hi Gordon. Thank you. watch my this report.
This report bug is little same bug 1244182.

I think that bug 1244182 is ceilometer's request-ids of report.
This bug is nova-api's request-id.

Please you watch my patch.
Please wait a little more because I try this patch up soon.

regards.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/101465

Changed in ceilometer:
status: New → In Progress
Eoghan Glynn (eglynn)
Changed in ceilometer:
milestone: none → juno-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/101465
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=6403c8562b12d14d979ba421f915b20fd9fb968d
Submitter: Jenkins
Branch: master

commit 6403c8562b12d14d979ba421f915b20fd9fb968d
Author: Tatsuro Makita <email address hidden>
Date: Fri Jun 20 01:50:31 2014 +0900

    Add log output of "x-openstack-request-id" from nova

    This patch enables ceilometer to output
    'x-openstack-request-id'/'x-compute-request-id'
    of nova's responses to the log.
    And it also enables ceilometer to output
    request headers, request parameters,
    other response headers and a response body to
    the log when ceilometer calls nova.

    DocImpact: There is a new configuration option
    'nova_http_log_debug' in ceilometer.nova_client

    Change-Id: Ic7e5301e46ac45597721f4a9b41c38f8c4ff0d14
    Closes-bug: #1332060

Changed in ceilometer:
status: In Progress → Fix Committed
gordon chung (chungg)
Changed in ceilometer:
importance: Undecided → Low
Changed in ceilometer:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: juno-2 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.