The 'x-openstack-request-id' from cinder cannot be output to the log.

Bug #1329613 reported by Takashi Natsume
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Undecided
Takashi Natsume

Bug Description

Cinder returns a response including 'x-openstack-request-id' in the HTTP response header when heat calls cinder.
But heat cannot output 'x-openstack-request-id' to the log( if the call is successful).
If heat outputs 'x-openstack-request-id' to the log, it will enable us to perform the analysis more efficiently.

For example:
2014-06-12 15:19:09.490 13688 DEBUG urllib3.connectionpool [-] "POST /v1/05fe5968ba384a4591aefa275ec00ae3/volumes HTTP/1.1" 200 380 _make_request /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:415
RESP: [200] CaseInsensitiveDict({'date': 'Thu, 12 Jun 2014 06:19:09 GMT', 'x-compute-request-id': 'req-bbc1eaa0-145f-43b7-83b6-e7d1f11524d0', 'content-type': 'application/json', 'content-length': '380', 'x-openstack-request-id': 'req-bbc1eaa0-145f-43b7-83b6-e7d1f11524d0'})
RESP BODY: {"volume": {"status": "creating", "display_name": "test-volume", "attachments": [], "availability_zone": "nova", "bootable": "false", "encrypted": false, "created_at": "2014-06-12T06:19:09.438556", "display_description": "test-description", "volume_type": "None", "snapshot_id": null, "source_volid": null, "metadata": {}, "id": "3008d04d-5851-4f76-b15c-32ef94ec18a2", "size": 1}}

2014-06-12 15:19:09.491 13688 DEBUG cinderclient.client [-] RESP: [200] CaseInsensitiveDict({'date': 'Thu, 12 Jun 2014 06:19:09 GMT', 'x-compute-request-id': 'req-bbc1eaa0-145f-43b7-83b6-e7d1f11524d0', 'content-type': 'application/json', 'content-length': '380', 'x-openstack-request-id': 'req-bbc1eaa0-145f-43b7-83b6-e7d1f11524d0'})
RESP BODY: {"volume": {"status": "creating", "display_name": "test-volume", "attachments": [], "availability_zone": "nova", "bootable": "false", "encrypted": false, "created_at": "2014-06-12T06:19:09.438556", "display_description": "test-description", "volume_type": "None", "snapshot_id": null, "source_volid": null, "metadata": {}, "id": "3008d04d-5851-4f76-b15c-32ef94ec18a2", "size": 1}}
 http_log_resp /opt/stack/python-cinderclient/cinderclient/client.py:139

Changed in heat:
assignee: nobody → Takashi NATSUME (natsume-takashi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

Changed in heat:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/104745
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=abd687f5d8681143f4e338a6ae6ba51569112a70
Submitter: Jenkins
Branch: master

commit abd687f5d8681143f4e338a6ae6ba51569112a70
Author: Takashi NATSUME <email address hidden>
Date: Wed Jul 16 10:15:34 2014 +0900

    Add log output about HTTP calls in cinderclient

    This patch enables heat to output the details of requests
    to cinder and responses from cinder
    (including 'x-openstack-request-id' in the response header)
    to the log.

    Change-Id: I714c87e538bc3a51dce6a48e584824cf7f954bcf
    Closes-bug: #1329613

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: juno-3 → 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.