<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFCC">
<br>
<br>
<div class="moz-cite-prefix">On 06/06/2019 13.02, Laurent Aubert
(laaubert) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20F74B12-C4CA-4231-A5EC-AB052FF647E7@cisco.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
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.apple-converted-space
{mso-style-name:apple-converted-space;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">We
deployed KEA 1.5 with a postgresql DB without any issue. We
have an application which asks for IP addresses with an
infinite lease.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">When
KEA receives the request, we see the following error:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier
New";color:black" lang="EN-US"><a href="tel:2019"
moz-do-not-send="true"><span
style="color:#00AFFA;text-decoration:none">2019</span></a>-06-06
09:05:02.566 ERROR [kea-dhcp4.alloc-engine/259]
ALLOC_ENGINE_V4_ALLOC_ERROR [hwtype=1 00:00:00:00:00:00],
cid=[ff:00:00:00:00:00:02:00:00:00:09:01:10:49:52:38:30:39:47:2d:4c:54:45:2d:47:41:2d:4b:39:02:0<br>
b:4a:4d:58:32:30:32:33:58:30:30:30], tid=0x8aed1f: error
during attempt to allocate an IPv4 address: Could not create
bind array from Lease4:<span class="apple-converted-space"> </span><a
href="http://192.168.89.2" moz-do-not-send="true"><span
style="color:#00AFFA;text-decoration:none">192.168.89.2</span></a>,
reason: Time value is too large:<span
class="apple-converted-space"> </span><a
href="tel:5854779197" moz-do-not-send="true"><span
style="color:#00AFFA;text-decoration:none">5854779197</span></a></span></p>
</div>
</blockquote>
How is your definition of the lease time field in the database? this
value requires 33 bits to be stored.<br>
<blockquote type="cite"
cite="mid:20F74B12-C4CA-4231-A5EC-AB052FF647E7@cisco.com">
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Everything works fine if
we use csv file to store the leases instead of postgres.</span></p>
</div>
</blockquote>
Yes, not limited by a fixed number of bits.<br>
<blockquote type="cite"
cite="mid:20F74B12-C4CA-4231-A5EC-AB052FF647E7@cisco.com">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any idea why such leases
can’t be stored in the DB ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<br>
</div>
</blockquote>
Sten<br>
</body>
</html>