Skip to content

Commit 909676b

Browse files
committed
[#1723] add debug levels to message documentation
1 parent 2672bc6 commit 909676b

26 files changed

+1032
-13
lines changed

src/bin/agent/ca_messages.mes

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2016-2022 Internet Systems Consortium, Inc. ("ISC")
1+
# Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
22
#
33
# This Source Code Form is subject to the terms of the Mozilla Public
44
# License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -11,10 +11,12 @@ This informational message is issued when the CA successfully forwards
1111
the control message to the specified Kea service and receives a response.
1212

1313
% CTRL_AGENT_COMMAND_FORWARD_BEGIN begin forwarding command %1 to service %2
14+
Logged at debug log level 10.
1415
This debug message is issued when the Control Agent starts forwarding a
1516
received command to one of the Kea servers.
1617

1718
% CTRL_AGENT_COMMAND_FORWARD_FAILED failed forwarding command %1: %2
19+
Logged at debug log level 10.
1820
This debug message is issued when the Control Agent failed forwarding a
1921
received command to one of the Kea servers. The second argument provides
2022
the details of the error.
@@ -52,6 +54,7 @@ on the specified address and port. All control commands should be sent to this
5254
address and port.
5355

5456
% CTRL_AGENT_RUN_EXIT application is exiting the event loop
57+
Logged at debug log level 0.
5558
This is a debug message issued when the Control Agent exits its
5659
event loop.
5760

src/bin/dhcp4/dhcp4_messages.mes

Lines changed: 92 additions & 0 deletions
Large diffs are not rendered by default.

src/bin/dhcp6/dhcp6_messages.mes

Lines changed: 83 additions & 0 deletions
Large diffs are not rendered by default.

src/bin/netconf/netconf_messages.mes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This informational message is issued when the initial configuration
1111
was retrieved using NETCONF and successfully applied to Kea server.
1212

1313
% NETCONF_CONFIG_CHANGED_DETAIL YANG configuration changed: %1
14+
Logged at debug log level 55.
1415
This debug message indicates a YANG configuration change. The format
1516
is the change operation (created, modified, deleted or moved) followed
1617
by xpaths and values of old and new nodes.
@@ -38,6 +39,7 @@ This is a fatal error message issued when kea-netconf
3839
got an unrecoverable error from within the event loop.
3940

4041
% NETCONF_GET_CONFIG got configuration from %1 server: %2
42+
Logged at debug log level 55.
4143
This debug message indicates that kea-netconf got the configuration from a
4244
Kea server. The server name and the retrieved configuration are printed.
4345

@@ -99,10 +101,12 @@ there may be other more unexpected causes as well.
99101
The server name, module name and the error are printed.
100102

101103
% NETCONF_RUN_EXIT application is exiting the event loop
104+
Logged at debug log level 0.
102105
This is a debug message issued when kea-netconf exits its
103106
event loop. This is a normal step during kea-netconf shutdown.
104107

105108
% NETCONF_SET_CONFIG set configuration to %1 server: %2
109+
Logged at debug log level 55.
106110
This debug message indicates that kea-netconf set the configuration to a
107111
Kea server. The server name and the applied configuration are printed.
108112

@@ -137,6 +141,7 @@ This information message indicates that kea-netconf is trying to subscribe to
137141
notifications for a Kea server. The server name and module name are printed.
138142

139143
% NETCONF_UPDATE_CONFIG updating configuration with %1 server: %2
144+
Logged at debug log level 55.
140145
This debug message indicates that kea-netconf update the configuration
141146
of a Kea server. The server name and the updated configuration are
142147
printed.
@@ -156,6 +161,7 @@ This informational message indicates that kea-netconf is trying to update the
156161
configuration of a Kea server.
157162

158163
% NETCONF_VALIDATE_CONFIG validating configuration with %1 server: %2
164+
Logged at debug log level 55.
159165
This debug message indicates that kea-netconf is validating the configuration
160166
with a Kea server. The server name and the validated configuration are
161167
printed.

src/hooks/dhcp/bootp/bootp_messages.mes

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Copyright (C) 2019-2020 Internet Systems Consortium, Inc. ("ISC")
1+
# Copyright (C) 2019-2024 Internet Systems Consortium, Inc. ("ISC")
22

33
% BOOTP_BOOTP_QUERY recognized a BOOTP query: %1
4+
Logged at debug log level 40.
45
This debug message is printed when the BOOTP query was recognized. The
56
BOOTP client class was added and the message type set to DHCPREQUEST.
67
The query client and transaction identification are displayed.
@@ -9,12 +10,14 @@ The query client and transaction identification are displayed.
910
This info message indicates that the Bootp hooks library has been loaded.
1011

1112
% BOOTP_PACKET_OPTIONS_SKIPPED an error unpacking an option, caused subsequent options to be skipped: %1
13+
Logged at debug log level 40.
1214
A debug message issued when an option failed to unpack correctly, making it
1315
impossible to unpack the remaining options in the DHCPv4 query. The server
1416
will still attempt to service the packet. The sole argument provides a
1517
reason for unpacking error.
1618

1719
% BOOTP_PACKET_PACK %1: preparing on-wire format of the packet to be sent
20+
Logged at debug log level 40.
1821
This debug message is issued when the server starts preparing the on-wire
1922
format of the packet to be sent back to the client. The argument specifies
2023
the client and the transaction identification information.
@@ -25,6 +28,7 @@ packet has failed. The first argument identifies the client and the
2528
BOOTP transaction. The second argument includes the error string.
2629

2730
% BOOTP_PACKET_UNPACK_FAILED failed to parse query from %1 to %2, received over interface %3, reason: %4
31+
Logged at debug log level 40.
2832
This debug message is issued when received DHCPv4 query is malformed and
2933
can't be parsed by the buffer4_receive callout. The query will be
3034
dropped by the server. The first three arguments specify source IP address,

src/hooks/dhcp/flex_option/flex_option_messages.mes

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
# Copyright (C) 2019-2022 Internet Systems Consortium, Inc. ("ISC")
1+
# Copyright (C) 2019-2024 Internet Systems Consortium, Inc. ("ISC")
22

33
% FLEX_OPTION_LOAD_ERROR loading Flex Option hooks library failed: %1
44
This error message indicates an error during loading the Flex Option
55
hooks library. The details of the error are provided as argument of
66
the log message.
77

88
% FLEX_OPTION_PROCESS_ADD Added the option code %1 with value %2
9+
Logged at debug log level 40.
910
This debug message is printed when an option was added into the response
1011
packet. The option code and the value (between quotes if printable, in
1112
hexadecimal if not) are provided.
1213

1314
% FLEX_OPTION_PROCESS_CLIENT_CLASS Skip processing of the option code %1 for class '%2'
15+
Logged at debug log level 40.
1416
This debug message is printed when the processing for an option is skipped
1517
because the query does not belongs to the client class. The option code and
1618
the client class name are provided.
@@ -22,34 +24,41 @@ from the query and the details of the error are provided as arguments
2224
of the log message.
2325

2426
% FLEX_OPTION_PROCESS_REMOVE Removed option code %1
27+
Logged at debug log level 40.
2528
This debug message is printed when an option was removed from the response
2629
packet. The option code is provided.
2730

2831
% FLEX_OPTION_PROCESS_SUB_ADD Added the sub-option code %1 in option code %2 with value %3
32+
Logged at debug log level 40.
2933
This debug message is printed when an sub-option was added into the response
3034
packet. The sub-option and container option codes, and the value
3135
(between quotes if printable, in hexadecimal if not) are provided.
3236

3337
% FLEX_OPTION_PROCESS_SUB_CLIENT_CLASS Skip processing of the sub-option code %1 in option code %2 for class '%3'
38+
Logged at debug log level 40.
3439
This debug message is printed when the processing for a sub-option is skipped
3540
because the query does not belongs to the client class. The sub-option and
3641
container option codes, and the client class name are provided.
3742

3843
% FLEX_OPTION_PROCESS_SUB_REMOVE Removed sub-option code %1 in option code %2
44+
Logged at debug log level 40.
3945
This debug message is printed when a sub-option was removed from the response
4046
packet. The sub-option and container option codes are provided.
4147

4248
% FLEX_OPTION_PROCESS_SUB_SUPERSEDE Supersedes the sub-option code %1 in option code %2 with value %3
49+
Logged at debug log level 40.
4350
This debug message is printed when a sub-option was superseded into the
4451
response packet. The sub-option and container option codes, and the value
4552
(between quotes if printable, in hexadecimal if not) are provided.
4653

4754
% FLEX_OPTION_PROCESS_SUPERSEDE Supersedes the option code %1 with value %2
55+
Logged at debug log level 40.
4856
This debug message is printed when an option was superseded into the response
4957
packet. The option code and the value (between quotes if printable, in
5058
hexadecimal if not) are provided.
5159

5260
% FLEX_OPTION_PROCESS_VENDOR_ID_MISMATCH Skip processing of vendor option code %1 with vendor id %2 not matching wanted %3
61+
Logged at debug log level 40.
5362
This debug message is printed when a sub-option of a vendor option is
5463
processed but vendor ids do not match. The code of the vendor option
5564
and the two vendor ids are provided.

src/hooks/dhcp/high_availability/ha_messages.mes

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ point failed. This may occur as a result of an internal server error.
88
The argument contains a reason for the error.
99

1010
% HA_BUFFER4_RECEIVE_NOT_FOR_US %1: dropping query to be processed by another server
11+
Logged at debug log level 40.
1112
This debug message is issued when the received DHCPv4 query is dropped
1213
by this server because it should be served by another server. This
1314
is the case when the remote server was designated to process the packet
@@ -16,12 +17,14 @@ hot standby configuration. The argument provides client identification
1617
information retrieved from the query.
1718

1819
% HA_BUFFER4_RECEIVE_PACKET_OPTIONS_SKIPPED an error unpacking an option, caused subsequent options to be skipped: %1
20+
Logged at debug log level 40.
1921
A debug message issued when an option failed to unpack correctly, making it
2022
impossible to unpack the remaining options in the DHCPv4 query. The server
2123
will still attempt to service the packet. The sole argument provides a
2224
reason for unpacking error.
2325

2426
% HA_BUFFER4_RECEIVE_UNPACK_FAILED failed to parse query from %1 to %2, received over interface %3, reason: %4
27+
Logged at debug log level 40.
2528
This debug message is issued when received DHCPv4 query is malformed and
2629
can't be parsed by the buffer4_receive callout. The query will be
2730
dropped by the server. The first three arguments specify source IP address,
@@ -34,6 +37,7 @@ point failed. This may occur as a result of an internal server error.
3437
The argument contains a reason for the error.
3538

3639
% HA_BUFFER6_RECEIVE_NOT_FOR_US %1: dropping query to be processed by another server
40+
Logged at debug log level 40.
3741
This debug message is issued when the received DHCPv6 query is dropped
3842
by this server because it should be served by another server. This
3943
is the case when the remote server was designated to process the packet
@@ -42,12 +46,14 @@ hot standby configuration. The argument provides client identification
4246
information retrieved from the query.
4347

4448
% HA_BUFFER6_RECEIVE_PACKET_OPTIONS_SKIPPED an error unpacking an option, caused subsequent options to be skipped: %1
49+
Logged at debug log level 40.
4550
A debug message issued when an option failed to unpack correctly, making it
4651
impossible to unpack the remaining options in the DHCPv6 query. The server
4752
will still attempt to service the packet. The sole argument provides a
4853
reason for unpacking error.
4954

5055
% HA_BUFFER6_RECEIVE_UNPACK_FAILED failed to parse query from %1 to %2, received over interface %3, reason: %4
56+
Logged at debug log level 40.
5157
This debug message is issued when received DHCPv6 query is malformed and
5258
can't be parsed by the buffer6_receive callout. The query will be
5359
dropped by the server. The first three arguments specify source IP address,
@@ -281,6 +287,7 @@ the callout by the DHCP server (unlikely internal server error).
281287
The argument contains a reason for the error.
282288

283289
% HA_LEASES4_COMMITTED_NOTHING_TO_UPDATE %1: leases4_committed callout was invoked without any leases
290+
Logged at debug log level 40.
284291
This debug message is issued when the "leases4_committed" callout returns
285292
because there are neither new leases nor deleted leases for which updates
286293
should be sent. The sole argument specifies the details of the client
@@ -300,6 +307,7 @@ the callout by the DHCP server (unlikely internal server error).
300307
The argument contains a reason for the error.
301308

302309
% HA_LEASES6_COMMITTED_NOTHING_TO_UPDATE %1: leases6_committed callout was invoked without any leases
310+
Logged at debug log level 40.
303311
This debug message is issued when the "leases6_committed" callout returns
304312
because there are neither new leases nor deleted leases for which updates
305313
should be sent. The sole argument specifies the details of the client
@@ -377,6 +385,7 @@ provided as a first argument. The third argument provides a reason for
377385
the failure.
378386

379387
% HA_LEASE_SYNC_STALE_LEASE4_SKIP %1: skipping stale lease %2 in subnet %3
388+
Logged at debug log level 40.
380389
This debug message is issued during lease database synchronization, when
381390
fetched IPv4 lease instance appears to be older than the instance in the
382391
local database. The newer instance is left in the database and the fetched
@@ -386,6 +395,7 @@ specifies the local server's name. The second argument specifies leased
386395
address. The third argument specifies a subnet to which the lease belongs.
387396

388397
% HA_LEASE_SYNC_STALE_LEASE6_SKIP %1: skipping stale lease %2 in subnet %3
398+
Logged at debug log level 40.
389399
This debug message is issued during lease database synchronization, when
390400
fetched IPv6 lease instance appears to be older than the instance in the
391401
local database. The newer instance is left in the database and the fetched
@@ -440,12 +450,14 @@ by the partner exceeds the limit set with max-rejected-lease-updates
440450
configuration parameter.
441451

442452
% HA_LOAD_BALANCING_DUID_MISSING %1: load balancing failed for the DHCPv6 message (transaction id: %2) because DUID is missing
453+
Logged at debug log level 40.
443454
This debug message is issued when the HA hook library was unable to load
444455
balance an incoming DHCPv6 query because neither client identifier nor
445456
HW address was included in the query. The query will be dropped. The
446457
sole argument contains transaction id.
447458

448459
% HA_LOAD_BALANCING_IDENTIFIER_MISSING %1: load balancing failed for the DHCPv4 message (transaction id: %2) because HW address and client identifier are missing
460+
Logged at debug log level 40.
449461
This debug message is issued when the HA hook library was unable to load
450462
balance an incoming DHCPv4 query because neither client identifier nor
451463
HW address was included in the query. The query will be dropped. The
@@ -622,6 +634,7 @@ The first argument is the client identification information. The second argument
622634
is a subnet prefix.
623635

624636
% HA_SUBNET4_SELECT_NOT_FOR_US %1: dropping query in relationship %2 to be processed by another server
637+
Logged at debug log level 40.
625638
This debug message is issued when the received DHCPv4 query is dropped
626639
by this server because it should be served by another server. This
627640
is the case when a remote primary server is operational. The first argument
@@ -648,6 +661,7 @@ the client identification information. The second argument is a subnet
648661
prefix.
649662

650663
% HA_SUBNET4_SELECT_NO_SUBNET_SELECTED %1: unable to determine HA relationship because no subnet has been selected for the client
664+
Logged at debug log level 40.
651665
This debug message is issued when the received DHCPv4 query is dropped
652666
by this server because it could not select a subnet for this client.
653667
Selecting the subnet is required to find a suitable HA relationship.
@@ -667,6 +681,7 @@ The first argument is the client identification information. The second argument
667681
is a subnet prefix.
668682

669683
% HA_SUBNET6_SELECT_NOT_FOR_US %1: dropping query in relationship %2 to be processed by another server
684+
Logged at debug log level 40.
670685
This debug message is issued when the received DHCPv6 query is dropped
671686
by this server because it should be served by another server. This
672687
is the case when a remote primary server is operational. The first argument
@@ -693,6 +708,7 @@ the client identification information. The second argument is a subnet
693708
prefix.
694709

695710
% HA_SUBNET6_SELECT_NO_SUBNET_SELECTED %1: unable to determine HA relationship because no subnet has been selected for the client
711+
Logged at debug log level 40.
696712
This debug message is issued when the received DHCPv6 query is dropped
697713
by this server because it could not select a subnet for this client.
698714
Selecting the subnet is required to find a suitable HA relationship.

src/hooks/dhcp/lease_cmds/lease_cmds_messages.mes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
22

33
% LEASE_CMDS_ADD4 lease4-add command successful (address: %1)
4+
Logged at debug log level 20.
45
The lease4-add command has been successful. Lease IPv4 address
56
is logged.
67

@@ -14,6 +15,7 @@ The lease4-add command has failed. Both the reason as well as the
1415
parameters passed are logged.
1516

1617
% LEASE_CMDS_ADD6 lease6-add command successful (address: %1)
18+
Logged at debug log level 20.
1719
The lease6-add command has been successful. Lease IPv6 address
1820
is logged.
1921

@@ -27,6 +29,7 @@ The lease6-add command has failed. Both the reason as well as the
2729
parameters passed are logged.
2830

2931
% LEASE_CMDS_BULK_APPLY6 lease6-bulk-apply command successful (applied addresses count: %1)
32+
Logged at debug log level 20.
3033
The lease6-bulk-apply command has been successful. The number of applied
3134
addresses is logged.
3235

@@ -44,6 +47,7 @@ This info message indicates that the Lease Commands hooks library has been
4447
removed successfully.
4548

4649
% LEASE_CMDS_DEL4 lease4-del command successful (address: %1)
50+
Logged at debug log level 20.
4751
The attempt to delete an IPv4 lease (lease4-del command) has been successful.
4852
Lease IPv4 address is logged.
4953

@@ -52,6 +56,7 @@ The attempt to delete an IPv4 lease (lease4-del command) has failed. Both the
5256
reason as well as the parameters passed are logged.
5357

5458
% LEASE_CMDS_DEL6 lease4-del command successful (address: %1)
59+
Logged at debug log level 20.
5560
The attempt to delete an IPv4 lease (lease4-del command) has been successful.
5661
Lease IPv6 address is logged.
5762

@@ -93,6 +98,7 @@ A request to update DNS for the requested IPv6 lease has failed. The
9398
reason for the failure is logged.
9499

95100
% LEASE_CMDS_UPDATE4 lease4-update command successful (address: %1)
101+
Logged at debug log level 20.
96102
The lease4-update command has been successful. Lease IPv4 address
97103
is logged.
98104

@@ -107,6 +113,7 @@ The lease4-update command has failed. Both the reason as well as the
107113
parameters passed are logged.
108114

109115
% LEASE_CMDS_UPDATE6 lease6-update command successful (address: %1)
116+
Logged at debug log level 20.
110117
The lease6-update command has been successful. Lease IPv6 address
111118
is logged.
112119

0 commit comments

Comments
 (0)