[stork-users] DHCPv4 and V6 stats not displayed properly
Buclin, Bertrand
Bertrand.Buclin at intl.att.com
Tue Jun 13 08:51:13 UTC 2023
HI Stork team,
Looks like the Stork server GUI (version 1.10 and 1.11, at least; not checked on prior versions, agent version 1.10 and 1.11 too showing the same behavior; KEA 2.2) is not displaying properly the utilization of IPv4 subnets. The Kea Control Agent is showing its receiving and responding to the API call properly (log entries trimmed to relevant stuff only):
DEBUG [kea-ctrl-agent.http/594970.140579578214272] HTTP_CLIENT_REQUEST_RECEIVED_DETAILS detailed information about well-formed request
received from
…
{"command":"stat-lease4-get","service":["dhcp4"]}
…
DEBUG [kea-ctrl-agent.http/594970.140579578214272] HTTP_SERVER_RESPONSE_SEND_DETAILS detailed information about response sent to
…
[ { "arguments": { "result-set": { "columns": [ "subnet-id", "total-addresses", "cumulative-assigned-addresses", "assigned-addresses", "declined-addresses" ],
"rows": [ [ 200, 6, 5, 0, 0 ], [ 201, 15, 0, 0, 0 ] ], "timestamp": "2023-06-13 07:36:46.830289" } }, "result": 0, "text": "stat-lease4-get[all subnets]: 2 row
s found" } ]
But the Stork GUI shows:
[A screenshot of a calculator Description automatically generated with medium confidence]
It is showing the subnets (200 and 201), with the right number of total addresses, but it is not displaying the cumulative-assigned-addresses (should be 5 for the top subnet, and 83% utilization).
On Ipv6 subnets, I get something similar:
{"command":"stat-lease6-get","service":["dhcp6"]}
2023-06-13 08:34:55.149 INFO [kea-ctrl-agent.auth/594970.140579578214272] HTTP_CLIENT_REQUEST_AUTHORIZED received HTTP request authorized for 'stork-agent'
2023-06-13 08:34:55.149 INFO [kea-ctrl-agent.commands/594970.140579578214272] COMMAND_RECEIVED Received command 'stat-lease6-get'
…
2023-06-13 08:34:55.241 DEBUG [kea-ctrl-agent.http/594970.140579578214272] HTTP_SERVER_RESPONSE_SEND_DETAILS detailed information about response sent
…
[ { "arguments": { "result-set": { "columns": [ "subnet-id", "total-nas", "cumulative-assigned-nas", "assigned-nas", "declined-nas", "total-pds", "cumulative-a
ssigned-pds", "assigned-pds" ], "rows": [ [ 200, 281474976710656, 0, 0, 0, 256, 0, 0 ], [ 201, 281474976710656, 55, 0, 0, 0, 0, 0 ], [ 202, 281474976710656, 0,
0, 0, 0, 0, 0 ], [ 999901, 281474976710656, 0, 0, 0, 0, 0, 0 ] ], "timestamp": "2023-06-13 08:34:55.240818" } }, "result": 0, "text": "stat-lease6-get[all sub
nets]: 4 rows found" } ]
And Stork GUI shows :
[A screenshot of a calculator Description automatically generated with medium confidence]
It should show the 55 addresses assigned in the bottom subnet. It can show the 256 PD prefixes available in the top one, so clearly, it is receiving the API response and doing something with it.
Bertrand Buclin
AT&T
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20230613/47842385/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 10333 bytes
Desc: image001.png
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20230613/47842385/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 26568 bytes
Desc: image002.png
URL: <https://lists.isc.org/pipermail/stork-users/attachments/20230613/47842385/attachment-0003.png>
More information about the Stork-users
mailing list