[stork-users] No leases showing on Stork
Roberto Greiner
mrgreiner at gmail.com
Fri Nov 8 12:48:03 UTC 2024
Hi,
I've installed Kea and Stork in my network and have almost everything
working, except that Stork is not showing the leases that are allocated
by kea. Stork does show all the networks I've set and in the "Machines"
pages shows that the dhcpv4, dhcpv6, ddns and ca daemons are working and
communicating. The "kea Apps" page shows that one server and also
indicates all status ok. The dashboard page shows all networks, but says
all leases are in zero.
Can somebody help me on this?
Thank you,
Roberto
My setup:
Both kea and and stork are installed using packages from the isc servers.
Kea version 2.6.1
Stork version 1.19
Server is a 24.04.1 Ubuntu VM with 4GB RAM and 12 GB disk in a Xen
Citrix environment
I have one IPv4 network and 3 IPv6 network configured, but only in one
of each is the server allocating IPs
leases files are in /var/lib/kea/ and are being populated properly
(kea-leases4.csv and kea-leases6.csv)
I've tried using MySQL for the leases, but the result was the same. In
both cases, Stork shows correctly where the leases are stored, but does
not fetch those leases.
My configs (with password and actual networks replaced):
kea-dhcp4.conf:
{
"Dhcp4": {
"interfaces-config": {
"interfaces": [ "enX2" ]
},
"control-socket": {
"socket-type": "unix",
"socket-name": "/tmp/kea4-ctrl-socket"
},
"lease-database": {
"type": "memfile",
"persist": true,
"lfc-interval": 3600,
"name": "/var/lib/kea/kea-leases4.csv"
},
"expired-leases-processing": {
"reclaim-timer-wait-time": 10,
"flush-reclaimed-timer-wait-time": 25,
"hold-reclaimed-time": 3600,
"max-reclaim-leases": 100,
"max-reclaim-time": 250,
"unwarned-reclaim-cycles": 5
},
"renew-timer": 900,
"rebind-timer": 1800,
"valid-lifetime": 3600,
"option-data": [
{
"name": "domain-name-servers",
"data": "10.0.0.1, 8.8.8.8"
},
{
"code": 15,
"data": "domain.org.br"
},
{
"name": "domain-search",
"data": "domain.org.br"
},
{
"name": "boot-file-name",
"data": "EST5EDT4\\,M3.2.0/02:00\\,M11.1.0/02:00"
},
{
"name": "default-ip-ttl",
"data": "0xf0"
}
],
"subnet4": [
{
"id": 1,
"subnet": "10.0.0.192/26",
"pools": [ { "pool": "10.0.0.193 - 10.0.0.251" } ],
"option-data": [
{
"name": "routers",
"data": "10.0.0.254"
}
],
}
],
"loggers": [
{
"name": "kea-dhcp4",
"output-options": [
{
"output": "stdout",
"pattern": "%-5p %m\n",
}
],
"severity": "INFO",
"debuglevel": 0
}
]
}
}
kea-dhcp6.conf
{
"Dhcp6": {
"valid-lifetime": 4000,
"renew-timer": 1000,
"rebind-timer": 2000,
"preferred-lifetime": 3000,
"interfaces-config": {
"interfaces": [ "enX2/fc00::9" ]
},
"control-socket": {
"socket-type": "unix",
"socket-name": "/tmp/kea6-ctrl-socket"
},
"lease-database": {
"type": "memfile",
"persist": true,
"name": "/var/lib/kea/kea-leases6.csv"
},
"subnet6": [
{
"id": 1,
"subnet": "fc00:20::/64"
},
{
"interface": "enX2",
"id": 2,
"subnet": "fc00::/64",
"pools": [
{
"pool": "fc00::10:1-fc00::a2:ffff:ffff:ffff"
}
],
"option-data": [
{
"name": "domain-search",
"code": 24,
"data": "fdn.domain.org.br"
},
{
"name": "dns-servers",
"data": "fc00::1, 2001:4860:4860::8888"
}
],
},
{
"id": 3,
"interface": "enX0",
"subnet": "fc00:10::/64"
}
],
"loggers": [
{
"name": "kea-dhcp6",
"output-options": [
{
"output": "stdout",
"pattern": "%-5p %m\n",
}
],
"severity": "INFO",
}
]
}
}
kea-ctrl-agent.conf
{
"Control-agent": {
"http-host": "127.0.0.1",
"http-port": 8000,
"control-sockets": {
"dhcp4": {
"socket-type": "unix",
"socket-name": "/tmp/kea4-ctrl-socket"
},
"dhcp6": {
"socket-type": "unix",
"socket-name": "/tmp/kea6-ctrl-socket"
},
"d2": {
"socket-type": "unix",
"socket-name": "/tmp/kea-ddns-ctrl-socket"
}
},
"hooks-libraries": [
],
"loggers": [
{
"name": "kea-ctrl-agent",
"output-options": [
{
"output": "stdout",
"pattern": "%-5p %m\n"
}
],
"severity": "info",
"debuglevel": 0
}
]
}
}
server.env:
STORK_DATABASE_NAME=stork
STORK_DATABASE_USER_NAME=stork-server
STORK_DATABASE_PASSWORD=<some pass>
STORK_REST_STATIC_FILES_DIR=/usr/share/stork/www
agent.env
STORK_AGENT_PORT=8079
--
-----------------------------------------------------
Marcos Roberto Greiner
Os otimistas acham que estamos no melhor dos mundos
Os pessimistas tem medo de que isto seja verdade
James Branch Cabell
-----------------------------------------------------
More information about the Stork-users
mailing list