<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-family: Calibri, sans-serif; ">
<div style="font-size: 14px; ">
<div>
<div>David,</div>
</div>
</div>
<div style="font-size: 14px; "><br>
</div>
<div>Maybe I misunderstand your question but I would expect this behavior.  The "force_dhcp_release" flag says 'send a DHCP release to the DHCP server'.  This doesn't mean that the IP is immediately available for use as it is still associated with the instance
 UUID in the nova database. The "fixed_ip_disassociate_timeout" flag disassociates the IP from the relevant instance  in the nova.fixed_ips table after the specified time.</div>
<div><br>
</div>
<div>Useful link:</div>
<div><a href="http://docs.openstack.org/folsom/openstack-compute/admin/content/list-of-compute-config-options.html">http://docs.openstack.org/folsom/openstack-compute/admin/content/list-of-compute-config-options.html</a></div>
<div><br>
</div>
<div>Thanks,</div>
<div>Kevin</div>
<div>Rackspace</div>
<div style="font-size: 14px; "><br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="font-size: 14px; ">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>David Hill <<a href="mailto:david.hill@ubisoft.com">david.hill@ubisoft.com</a>><br>
<span style="font-weight:bold">Date: </span>Friday, March 22, 2013 12:59 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>" <<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>><br>
<span style="font-weight:bold">Subject: </span>[Openstack] DHCP release<br>
</div>
<div><br>
</div>
<div 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">
<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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.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 90.0pt 72.0pt 90.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]-->
<div lang="FR-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-CA">Hi guys,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">                I’m experiencing some kind of weird behaviour with our openstack setup here.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Let me explain:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">I create an instance that gets an IP: 172.0.0.3<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">I destroy the instance.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">I recreate an instance that will get another IP: 172.0.0.4.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">If I wait 600 seconds between each test, 172.0.0.3 will be attributed again instead of 172.0.0.4.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Would it be possible that the IP de-allocation relies on the periodic task to do some clean up?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">I’m asking because actually this doesn’t work:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">force_dhcp_release=true<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">dhcp_lease_time=604800<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">fixed_ip_disassociate_timeout=1209600<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">If I do this and stress test my lab, I will eventually run out of IPs!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">But this works:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">force_dhcp_release=true<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">dhcp_lease_time=604800<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">fixed_ip_disassociate_timeout=600<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">I will eventually start seeing my previously attributed IP address instead of running out of IPs.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Am I reading an old document that is outdated?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Thank you very much,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA">Dave<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
</div>
</div>
</div>
</span>
</body>
</html>