From 3661933316561f9d680244a89564614d6d873f56 Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Mon, 28 Oct 2019 02:01:10 +0100 Subject: [PATCH] [#752] Updated alloc_engine_messages.mes --- src/lib/dhcpsrv/alloc_engine_messages.cc | 4 +++- src/lib/dhcpsrv/alloc_engine_messages.h | 3 ++- src/lib/dhcpsrv/alloc_engine_messages.mes | 8 ++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/lib/dhcpsrv/alloc_engine_messages.cc b/src/lib/dhcpsrv/alloc_engine_messages.cc index 6dc8e98e58..69779cf1b6 100644 --- a/src/lib/dhcpsrv/alloc_engine_messages.cc +++ b/src/lib/dhcpsrv/alloc_engine_messages.cc @@ -1,4 +1,4 @@ -// File created from ../../../src/lib/dhcpsrv/alloc_engine_messages.mes on Fri Feb 08 2019 20:31 +// File created from ../../../src/lib/dhcpsrv/alloc_engine_messages.mes on Mon Oct 28 2019 01:43 #include #include @@ -11,6 +11,7 @@ extern const isc::log::MessageID ALLOC_ENGINE_LEASE_RECLAIMED = "ALLOC_ENGINE_LE extern const isc::log::MessageID ALLOC_ENGINE_REMOVAL_NCR_FAILED = "ALLOC_ENGINE_REMOVAL_NCR_FAILED"; extern const isc::log::MessageID ALLOC_ENGINE_V4_ALLOC_ERROR = "ALLOC_ENGINE_V4_ALLOC_ERROR"; extern const isc::log::MessageID ALLOC_ENGINE_V4_ALLOC_FAIL = "ALLOC_ENGINE_V4_ALLOC_FAIL"; +extern const isc::log::MessageID ALLOC_ENGINE_V4_ALLOC_FAIL_CLASSES = "ALLOC_ENGINE_V4_ALLOC_FAIL_CLASSES"; extern const isc::log::MessageID ALLOC_ENGINE_V4_DECLINED_RECOVERED = "ALLOC_ENGINE_V4_DECLINED_RECOVERED"; extern const isc::log::MessageID ALLOC_ENGINE_V4_DISCOVER_ADDRESS_CONFLICT = "ALLOC_ENGINE_V4_DISCOVER_ADDRESS_CONFLICT"; extern const isc::log::MessageID ALLOC_ENGINE_V4_DISCOVER_HR = "ALLOC_ENGINE_V4_DISCOVER_HR"; @@ -82,6 +83,7 @@ const char* values[] = { "ALLOC_ENGINE_REMOVAL_NCR_FAILED", "sending removal name change request failed for lease %1: %2", "ALLOC_ENGINE_V4_ALLOC_ERROR", "%1: error during attempt to allocate an IPv4 address: %2", "ALLOC_ENGINE_V4_ALLOC_FAIL", "%1: failed to allocate an IPv4 address after %2 attempt(s)", + "ALLOC_ENGINE_V4_ALLOC_FAIL_CLASSES", "%1: Failed to allocate an IPv4 address for client with classes: %2", "ALLOC_ENGINE_V4_DECLINED_RECOVERED", "IPv4 address %1 was recovered after %2 seconds of probation-period", "ALLOC_ENGINE_V4_DISCOVER_ADDRESS_CONFLICT", "%1: conflicting reservation for address %2 with existing lease %3", "ALLOC_ENGINE_V4_DISCOVER_HR", "client %1 sending DHCPDISCOVER has reservation for the address %2", diff --git a/src/lib/dhcpsrv/alloc_engine_messages.h b/src/lib/dhcpsrv/alloc_engine_messages.h index 9f7a72108f..acf8318bc3 100644 --- a/src/lib/dhcpsrv/alloc_engine_messages.h +++ b/src/lib/dhcpsrv/alloc_engine_messages.h @@ -1,4 +1,4 @@ -// File created from ../../../src/lib/dhcpsrv/alloc_engine_messages.mes on Fri Feb 08 2019 20:31 +// File created from ../../../src/lib/dhcpsrv/alloc_engine_messages.mes on Mon Oct 28 2019 01:43 #ifndef ALLOC_ENGINE_MESSAGES_H #define ALLOC_ENGINE_MESSAGES_H @@ -12,6 +12,7 @@ extern const isc::log::MessageID ALLOC_ENGINE_LEASE_RECLAIMED; extern const isc::log::MessageID ALLOC_ENGINE_REMOVAL_NCR_FAILED; extern const isc::log::MessageID ALLOC_ENGINE_V4_ALLOC_ERROR; extern const isc::log::MessageID ALLOC_ENGINE_V4_ALLOC_FAIL; +extern const isc::log::MessageID ALLOC_ENGINE_V4_ALLOC_FAIL_CLASSES; extern const isc::log::MessageID ALLOC_ENGINE_V4_DECLINED_RECOVERED; extern const isc::log::MessageID ALLOC_ENGINE_V4_DISCOVER_ADDRESS_CONFLICT; extern const isc::log::MessageID ALLOC_ENGINE_V4_DISCOVER_HR; diff --git a/src/lib/dhcpsrv/alloc_engine_messages.mes b/src/lib/dhcpsrv/alloc_engine_messages.mes index 174abd1538..7a748fdd94 100644 --- a/src/lib/dhcpsrv/alloc_engine_messages.mes +++ b/src/lib/dhcpsrv/alloc_engine_messages.mes @@ -41,6 +41,14 @@ to clients that are no longer active on the network will become available sooner. % ALLOC_ENGINE_V4_ALLOC_FAIL_CLASSES %1: Failed to allocate an IPv4 address for client with classes: %2 +This warning message is printed when Kea failed to allocate an address +and the client's packet belongs to one or more classes. There may be several +reasons why a lease was not assigned. One of them may be a case when all +pools require packet to belong to certain classes and the incoming packet +didn't belong to any of them. Another case where this information may be +useful is to point out that the pool reserved to a given class has ran +out of addresses. When you see this message, you may consider checking your +pool size and your classification definitions. % ALLOC_ENGINE_V4_DECLINED_RECOVERED IPv4 address %1 was recovered after %2 seconds of probation-period This informational message indicates that the specified address was reported -- 2.47.2