<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
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;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Please provide your valuable inputs on the proposal below mentioned.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Rajesh Tailor<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Tailor, Rajesh
<br>
<b>Sent:</b> Thursday, July 17, 2014 12:38 PM<br>
<b>To:</b> 'openstack-dev@lists.openstack.org'<br>
<b>Subject:</b> [openstack-dev] [glance] Use Launcher/ProcessLauncher in glance<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">Hi all,</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">Why glance is not using Launcher/ProcessLauncher (oslo-incubator) for its wsgi service like it is used in other openstack projects i.e. nova, cinder, keystone etc.</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">As of now when SIGHUP signal is sent to glance-api parent process, it calls the callback handler and then throws OSError.</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">The OSError is thrown because os.wait system call was interrupted due to SIGHUP callback handler.</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">As a result of this parent process closes the server socket.</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">All the child processes also gets terminated without completing existing api requests because the server socket is already closed and the service doesn’t restart.</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">Ideally when SIGHUP signal is received by the glance-api process, it should process all the pending requests and then restart the glance-api service.</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">If (oslo-incubator) Launcher/ProcessLauncher is used in glance then it will handle service restart on ‘SIGHUP’ signal properly.</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">Can anyone please let me know what will be the positive/negative impact of using Launcher/ProcessLauncher (oslo-incubator) in glance?</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">Thank You, </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-IN" style="color:black">Rajesh Tailor</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br clear="both">
______________________________________________________________________<BR>
Disclaimer:This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data.  If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding<BR>
</body>
</html>