<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:EN-IN;}
span.typ
        {mso-style-name:typ;}
span.pln
        {mso-style-name:pln;}
span.str
        {mso-style-name:str;}
span.kwd
        {mso-style-name:kwd;}
span.pun
        {mso-style-name:pun;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IN" link="blue" vlink="purple">
<div class="WordSection1">
<div style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm">
<pre style="border:none;padding:0cm">Hi Tan,<o:p></o:p></pre>
<pre style="border:none;padding:0cm"><o:p> </o:p></pre>
<pre style="border:none;padding:0cm">Most of the OpenStack RESTful API returns `X-Openstack-Request-Id` in the API <span class="pln">response header but </span><span class="kwd">this</span><span class="pln"> request id </span><span class="kwd">is</span><span class="pln"> </span><span class="kwd">not</span><span class="pln"> available to the </span><span class="kwd">caller</span><span class="pln"> </span><span class="kwd">from</span><span class="pln"> the python client</span><span class="pun">.<o:p></o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="pun">When you use -–debug option from command from the command prompt using client, you can see </span><span class="str">`X-Openstack-Request-Id`</span><span class="pln"> on the console but it is not logged anywhere.<o:p></o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="pln"><o:p> </o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="pln">Currently a cross-project specs [1] is submitted and approved for returning </span><span class="str">X-Openstack-Request-Id to the caller and the implementation for the same is in progress.<o:p></o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str">Please go through the specs for detail information which will help you to understand more about request-ids and current work about the same.<o:p></o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str"><o:p> </o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str">Please feel free to revert back anytime for your doubts.<o:p></o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str"><o:p> </o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str">[1] https://github.com/openstack/openstack-specs/blob/master/specs/return-request-id.rst<o:p></o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str"><o:p> </o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str">Thanks,<o:p></o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str"><o:p> </o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str">Abhishek Kekane<o:p></o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str"><o:p> </o:p></span></pre>
<pre style="border:none;padding:0cm"><span class="str"><o:p> </o:p></span></pre>
<pre style="border:none;padding:0cm"><o:p> </o:p></pre>
</div>
<pre><o:p> </o:p></pre>
<pre>Hi guys<o:p></o:p></pre>
<pre>        I recently play around with 'x-openstack-request-id' header but have a dump question about how it works. At beginning, I thought an action across different services should use a same request-id but it looks like this is not the true. <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>First I read the spec: <a href="https://blueprints.launchpad.net/nova/+spec/cross-service-request-id">https://blueprints.launchpad.net/nova/+spec/cross-service-request-id</a> which said "This ID and the request ID of the other service will be logged at service boundaries". and I see cinder/neutron/glance will attach its context's request-id as the value of "x-openstack-request-id" header to its response while nova use X-Compute-Request-Id. This is easy to understand. So It looks like each service should generate its own request-id and attach to its response, that's all.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>But then I see glance read 'X-Openstack-Request-ID' to generate the request-id while cinder/neutron/nova read 'openstack.request_id' when using with keystone. It is try to reuse the request-id from keystone.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>This totally confused me. It would be great if you can correct me or point me some reference. Thanks a lot<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Best Regards,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Tan<o:p></o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br clear="both">
______________________________________________________________________<BR>
Disclaimer: This email and any attachments are sent in strictest confidence<BR>
for the sole use of the addressee and may contain legally privileged,<BR>
confidential, and proprietary data. If you are not the intended recipient,<BR>
please advise the sender by replying promptly to this email and then delete<BR>
and destroy this email and any attachments without any further use, copying<BR>
or forwarding.<BR>
</body>
</html>