<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>From a message in Sept:</div><div><pre><pre>===============================================</pre><pre>Hi all,


Today i was looking into the lease file and found something that i think that should not happen.
In the lease file i found 2 leases with the same IP and MAC, to one par IP MAC there should exist just one lease right? 


lease 10.43.11.92 {
  starts 2 2011/09/20 14:57:21;
  ends 2 2011/09/20 22:57:21;
  tstp 3 2011/09/21 02:57:21;
  tsfp 2 2011/09/20 22:57:22;
  cltt 2 2011/09/20 14:57:21;
  binding state active;
  next binding state expired;
  hardware ethernet 00:40:ca:a4:3f:be;
  set ddns-txt = "0097558cd8aa1f47ff41f956ea212c89b8";
  set ddns-fwd-name = "00:40:ca:a4:3f:be.teste.t";
  client-hostname "T5413";
}


lease 10.43.11.92 {
  starts 2 2011/09/20 14:57:21;
  ends 2 2011/09/20 22:57:21;
  tstp 3 2011/09/21 02:57:21;
  tsfp 3 2011/09/21 02:57:21;
  atsfp 3 2011/09/21 02:57:21;
  cltt 2 2011/09/20 14:57:21;
  binding state active;
  next binding state expired;
  hardware ethernet 00:40:ca:a4:3f:be;
  set ddns-txt = "0097558cd8aa1f47ff41f956ea212c89b8";
  set ddns-fwd-name = "00:40:ca:a4:3f:be.teste.t";
  client-hostname "T5413";
}


After some minutes the file only had one.

i tested with omshell and i saw the error:
can't open object: more than one object matches key

Witch means that in memory structure in DHCPd there are more 2 leases 

The version that i m running is  3.1.3, is this the normal behavior? or its a bug? it's corrected in newer versions?

Thanks,
Carlos Abrantes</pre></pre></div><div><pre><pre>===============================================</pre></pre></div><div><br></div><div><br></div>It's been a long time to take this issue back up, but we are seeing exactly the same behavior. <div><div><br></div><div>The problem is: duplicate lease entries and OMAPI returning "more than one object matches key (error code 393222),</div><div><br></div><div>but this is DHCP  version 4.2.3</div><div><br></div><div>did some reading on the general subject and we do NOT currently have one-lease-per-client option set to true</div><div>(it's currently the default value of  false).</div><div><br></div><div><br></div><div><br></div><div>Here's an example:</div><div><br></div><div><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">lease 10.0.117.14 {</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">starts 1 2012/02/20 15:26:47;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">ends 1 2012/02/20 21:26:47;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">cltt 1 2012/02/20 15:26:47;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">binding state active;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">next binding state free;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">rewind binding state free;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">hardware ethernet 00:e0:6f:60:16:de;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">uid "\001\000\340o`\026\336";</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">}</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">--</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">lease 10.0.117.14 {</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">starts 1 2012/02/20 15:48:28;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">ends 1 2012/02/20 21:48:28;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">cltt 1 2012/02/20 15:48:28;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">binding state active;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">next binding state free;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">rewind binding state free;</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><font size="2" face="Tahoma">hardware ethernet 00:e0:6f:60:16:de;</font></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">uid "\001\000\340o`\026\336";</span><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span></div></div><div><span class="Apple-style-span" style="font-family: tahoma; font-size: small; "><br></span></div><div><span class="Apple-style-span" style="font-family: tahoma; font-size: small; ">-Jeff</span></div></body></html>