<!doctype html>
<html>
 <head> 
  <meta charset="UTF-8"> 
 </head>
 <body>
  <div>
   Replying to myself: 
   <br>
  </div>
  <div class="default-style">
   <br>
  </div>
  <div class="default-style">
   The problem has been solved by deleting the lease files which was containing stale lease information from previous tests.
  </div>
  <div class="default-style">
   <br>
  </div>
  <div class="default-style">
   Is there a tool that an admin can use to remove stale entries from a lease file ?
  </div>
  <div class="default-style">
   <br>
  </div>
  <div class="default-style">
   By the way, I have tries to use kea-admin to have a look at the leases but it exists with:
  </div>
  <div class="default-style">
   <br>
  </div>
  <div class="default-style">
    kea-admin lease-dump memfile
   <br>ERROR/kea-admin: lease-dump is not supported for memfile
   <br>
  </div>
  <div class="default-style">
   <br>
  </div>
  <div class="default-style">
   While the help says:
  </div>
  <div class="default-style">
   <br>
  </div>
  <div class="default-style">
   <div class="default-style">
    Usage: /usr/sbin/kea-admin COMMAND BACKEND [parameters]
   </div>
   <div class="default-style">
    <br>
   </div>
   <div class="default-style">
    COMMAND: Currently supported operations are:
   </div>
   <div class="default-style">
    - db-init: Initializes new database. Useful for first time installation.
    <br>- db-version: Checks version of the existing database schema. Useful
    <br>- for checking database version when preparing for an upgrade.
    <br>- db-upgrade: Upgrades your database schema.
    <br>- lease-dump: Dumps current leases to a memfile-ready CSV file.
    <br>- lease-upload: Uploads leases from a CSV file to the database.
    <br>- stats-recount: Recounts lease statistics.
   </div>
   <div class="default-style">
    <br>
   </div>
   <div class="default-style">
    BACKEND - one of the supported backends: memfile|mysql|pgsql
   </div>
   <div class="default-style">
    <br>
   </div>
   <div class="default-style">
    Is "memfile" really supported ?
   </div>
   <div class="default-style">
    <br>
   </div>
   <div class="default-style">
    Thanks,
   </div>
   <div class="default-style">
    Veronique
   </div>
   <div class="default-style">
    <br>
   </div>
  </div>
  <blockquote type="cite">
   <div>
    On 21/06/2022 16:59 Veronique Lefebure <veronique.lefebure@cern.ch> wrote:
   </div>
   <div>
    <br>
   </div>
   <div>
    <br>
   </div>
   <div class="default-style">
    <pre class="code highlight"><span class="line">Hi,<br>Out test client is failing to get an IPv6 IP.<br>Enabling debug logs, we see messages from the server that seem contradictory:<br><br>2022-06-21 16:43:50.948 DEBUG [kea-dhcp6.alloc-engine/13499.139838611867840] ALLOC_ENGINE_V6_ALLOC_NO_LEASES_HR no leases found but reservations exist for client duid=[00:01:00:01:2a:44:7a:5c:xx:xx:xx:xx:xx:xx], tid=0x93e611</span>
<span class="line">2022-06-21 16:43:50.948 DEBUG [kea-dhcp6.alloc-engine/13499.139838611867840] ALLOC_ENGINE_V6_ALLOC_UNRESERVED no static reservations available - trying to dynamically allocate leases for client duid=[00:01:00:01:2a:44:7a:5c:xx:xx:xx:xx:xx:xx], tid=0x93e611<br><br></span>where <span class="line">xx:xx:xx:xx:xx:xx is the client mac address.<br>How can that happen ?<br><br>Kea has correctly identified the subnet where the client reservation is defined:<br>2022-06-21 16:43:50.947 DEBUG [kea-dhcp6.packets/13499.139838611867840] DHCP6_SUBNET_SELECTED duid=[00:01:00:01:2a:44:7a:5c:xx:xx:xx:xx:xx:xx], tid=0x93e611: the subnet with ID 2156789248 was selected for client assignments<br><br>Thanks for helping.<br>Veronique</span></pre>
   </div>-- 
   <br>ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
   <br>
   <br>To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
   <br>
   <br>Kea-users mailing list
   <br>Kea-users@lists.isc.org
   <br>https://lists.isc.org/mailman/listinfo/kea-users
   <br>
  </blockquote>
 </body>
</html>