<html><head>

<meta name="Generator" content="Novell Groupwise Client (Version 14.2.2  Build: 126868)">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body style="font: 10pt/normal Segoe UI; font-size-adjust: none; font-stretch: normal;"><div class="GroupWiseMessageBody" id="GroupWiseSection_1604492590000_Christian.Schuldt@studiofunk.de_840AD280013B0000AF646F7362663333_"><div>Hey,</div><div><br></div><div>I updated one of our Kea hot-standby HA pairs from 1.6 to 1.8 and now HA lease-updates to the standby server no longer work.</div><div>The only config change was the required move of the logging section into the dhcp4-server section.</div><div><br></div><div>Error on primary:</div><div><span style="font-family: monospace;"><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">2020-11-04 13:48:48.754 INFO  [kea-dhcp4.leases/3244.139646677208128] DHCP4_LEASE_ALLOC [hwtype=1 00:01:02:81:41:ed], cid=[no info], tid=0x1ec6987e: lease 192.168.100.211 has been allocated for 86400 seconds
</span><br>2020-11-04 13:48:48.760 WARN  [kea-dhcp4.ha-hooks/3244.139646677208128] HA_LEASE_UPDATE_FAILED [hwtype=1 00:01:02:81:41:ed], cid=[no info], tid=0x1ec6987e: lease update to ns2-kea (http://10.1.0.254:8080/) failed: unable to update lease for address 192.168.100.211 as it does not exist, error code 1<br>
</span></div><span style="font-family: monospace;"></span></div><div><div><font face="Courier New"><br></font></div><span style="font-family: monospace;"><div>Error on standby:</div><div><span style="font-family: monospace;"><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">2020-11-04 13:48:48.759 ERROR [kea-dhcp4.callouts/15648.140137833094208] HOOKS_CALLOUT_ERROR error returned by callout on hook 1 registered by library with index $lease4_update (callout address 0x7f74577f0d40) (callout duration 1.262 ms)</span><br>
<br></span><font face="Segoe UI">I already purged both kea and mariadb (leases and reservations) and  thenreinstalled, syncing reservations and then trying again with no change.</font></div><font face="Segoe UI"></font></span></div><div><br></div><div>I previously tried to manually update a lease on the standby with a query extracted from traffic which also doesn't work. The error seems to originate from the lease_commands hooks:</div><div><span style="font-family: monospace;"><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">curl -XPOST http://localhost:8080 -H  "Content-Type: application/json" \</span></span></div><div><span style="font-family: monospace;"><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">  -d '{ "arguments": { "expire": 1604579347, "force-create": true, "fqdn-fwd": false, "fqdn-rev": false, "hostname": "pc.", "hw-address": "00:01:02:73:93:b7", "ip-address": "192.</span>168.210.148", "state": 0, "subnet-id": 124, "valid-lft": 86400 }, "command": "lease4-update", "service": [ "dhcp4" ] }'</span></div><div><span style="font-family: monospace;">[ { "result": 1, "text": "unable to update lease for address 192.168.210.148 as it does not exist" } ]<br></span></div><div><br></div><span style="font-family: monospace;"><div><font face="Segoe UI">However when immediately trying "lease4-add" instead of update, it fails with "IPv4 lease already exists."</font></div><div><font face="Segoe UI">A manual update also doesn't work on the primary.</font></div><div><br></div><div>When deleting the leases4 table contents on the standby server, initial HA lease synchronization runs without issues, but afterwards updates don't work. Restarting after initial synchronization causes the same lease update errors as during "normal" operation.</div><div><br></div><div><font face="Segoe UI">The servers configuration is the same (synchronised via git) with the necessary exceptions of interfaces and HA config. Subnets have fixed IDs for database reservations.</font></div><div><font face="Segoe UI">HA config only differs in "this-server-name".</font></div><div><font face="Segoe UI"><br></font></div><div><font face="Segoe UI">Hooks config:</font></div><div><font face="Segoe UI"><br></font></div><div>"hooks-libraries": [<br>  {<br>    #" lease cmds are required for ha",<br>    "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so",<br>    "parameters": { }<br>  },<br>  {<br>    "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",<br>    "parameters": {<br>      "high-availability": [<br>        {<br>          "this-server-name": "ns2-kea",<br>          "mode": "hot-standby",<br>          "heartbeat-delay": 4000,<br>          "max-response-delay": 15000,<br>          "max-ack-delay": 5000,<br>          "max-unacked-clients": 0,<br>          "sync-page-limit": 5000,<br>          "sync-timeout": 30000,<br>          "peers": [<br>            {<br>              "name": "ns1-kea",<br>              "url": "http://10.1.0.253:8080/",<br>              "role": "primary",<br>              #"role": "standby",<br>              "auto-failover": true<br>            },<br>            {<br>              "name": "ns2-kea",<br>              "url": "http://10.1.0.254:8080/",<br>              #"role": "primary",<br>              "role": "standby",<br>              "auto-failover": true<br>            }<br>          ]<br>        }<br>      ]<br>    }<br>  }<br>]<br></div><div><br></div><div><font face="Segoe UI">Any help would be appreciated.</font></div><div><font face="Segoe UI"><br></font></div><div><font face="Segoe UI">Best Regards</font></div><div><font face="Segoe UI">Christian Schuldt</font><br></div></span><BR>

    
  <br />  
  <a href="http://www.studiofunk.de"><img src="cid:DLXJARFMJGKV.322fa4e1-7fa2-4a45-8088-a817d31da2af.gif" /></a> 
  <div> 
   <br /> 
   <div> 
    <div> 
     <div> 
      <div> 
       <img /> 
      </div> 
      <div>
          
       <a href="https://www.instagram.com/studiofunk/"><img src="cid:OLRPAIQIBKZU.21a86d62-0dde-40bf-ab3c-ea67c31cfa44.gif" /></a>  
       <a href="https://www.facebook.com/Studio-Funk-100165310029765/"><img src="cid:RJGDROQPDQZY.3d05688c-9f4a-4607-9459-50cd47bc0f11.gif" /></a> 
       <a href="https://twitter.com/studio_funk"><img src="cid:WNKSCBLRGACD.59a57831-6d50-498e-90a3-7d41986793e1.gif" /></a> 
      </div> 
      <div> 
       <div> 
       </div> 
       <div> 
        <font size="1" face="Tahoma" color="#999999">This email may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. Any review, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.<br /><br />Studio Funk GmbH & Co. KG · Geschäftsführer: Klaus Funk, Markus Weber · Sitz der Gesellschaft: Hamburg · Handelsregister-Nr.: 67553</font> 
       </div> 
      </div> 
     </div> 
    </div> 
   </div> 
  </div> 
 
<BR>
</body></html>