BIND 10 master, updated. 6674553cc7932dee920e06a4936ba28916552e25 Merge #2807
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Aug 5 11:04:19 UTC 2013
The branch, master has been updated
via 6674553cc7932dee920e06a4936ba28916552e25 (commit)
via 869ac09027a0fc146ac995e7b1dcc875e6184608 (commit)
from b68e8f32a7128d99e69a9ed42f9d8d21d6a68706 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6674553cc7932dee920e06a4936ba28916552e25
Merge: b68e8f3 869ac09
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Mon Aug 5 12:24:07 2013 +0200
Merge #2807
commit 869ac09027a0fc146ac995e7b1dcc875e6184608
Author: David Carlier <dcarlier at afilias.info>
Date: Mon Aug 5 12:20:18 2013 +0200
[2807] Include tsig key name with log messages
Applied with trivial whitespace fixes.
-----------------------------------------------------------------------
Summary of changes:
src/bin/xfrin/xfrin.py.in | 31 ++++++++++++++++++-------------
src/bin/xfrin/xfrin_messages.mes | 10 +++++-----
2 files changed, 23 insertions(+), 18 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/xfrin/xfrin.py.in b/src/bin/xfrin/xfrin.py.in
index de265c6..683048e 100755
--- a/src/bin/xfrin/xfrin.py.in
+++ b/src/bin/xfrin/xfrin.py.in
@@ -652,7 +652,8 @@ class XfrinConnection(asyncore.dispatcher):
self.connect(self._master_addrinfo[2])
return True
except socket.error as e:
- logger.error(XFRIN_CONNECT_MASTER, self._master_addrinfo[2],
+ logger.error(XFRIN_CONNECT_MASTER, self.tsig_key_name,
+ self._master_addrinfo[2],
str(e))
return False
@@ -767,14 +768,15 @@ class XfrinConnection(asyncore.dispatcher):
'''
Used as error callback below.
'''
- logger.error(XFRIN_ZONE_INVALID, self._zone_name, self._rrclass,
- reason)
+ logger.error(XFRIN_ZONE_INVALID, self._zone_name,
+ self._rrclass, reason)
def __validate_warning(self, reason):
'''
Used as warning callback below.
'''
- logger.warn(XFRIN_ZONE_WARN, self._zone_name, self._rrclass, reason)
+ logger.warn(XFRIN_ZONE_WARN, self._zone_name,
+ self._rrclass, reason)
def finish_transfer(self):
"""
@@ -965,17 +967,18 @@ class XfrinConnection(asyncore.dispatcher):
# The log message doesn't contain the exception text, since there's
# only one place where the exception is thrown now and it'd be the
# same generic message every time.
- logger.error(XFRIN_INVALID_ZONE_DATA, self.zone_str(),
+ logger.error(XFRIN_INVALID_ZONE_DATA,
+ self.zone_str(),
format_addrinfo(self._master_addrinfo))
ret = XFRIN_FAIL
except XfrinProtocolError as e:
- logger.info(XFRIN_XFR_TRANSFER_PROTOCOL_VIOLATION, req_str,
- self.zone_str(),
+ logger.info(XFRIN_XFR_TRANSFER_PROTOCOL_VIOLATION,
+ req_str, self.zone_str(),
format_addrinfo(self._master_addrinfo), str(e))
ret = XFRIN_FAIL
except XfrinException as e:
- logger.error(XFRIN_XFR_TRANSFER_FAILURE, req_str,
- self.zone_str(),
+ logger.error(XFRIN_XFR_TRANSFER_FAILURE,
+ req_str, self.zone_str(),
format_addrinfo(self._master_addrinfo), str(e))
ret = XFRIN_FAIL
except Exception as e:
@@ -1142,12 +1145,12 @@ def __process_xfrin(server, zone_name, rrclass, datasrc_client, zone_soa,
# fallback.
if request_ixfr == ZoneInfo.REQUEST_IXFR_ONLY:
logger.warn(XFRIN_XFR_TRANSFER_FALLBACK_DISABLED,
- conn.zone_str())
+ tsig_key, conn.zone_str())
else:
retry = True
request_type = RRType.AXFR
logger.warn(XFRIN_XFR_TRANSFER_FALLBACK,
- conn.zone_str())
+ tsig_key, conn.zone_str())
conn.close()
conn = None
@@ -1688,7 +1691,8 @@ class Xfrin:
except isc.cc.session.SessionTimeout:
pass # for now we just ignore the failure
except socket.error as err:
- logger.error(XFRIN_MSGQ_SEND_ERROR, XFROUT_MODULE_NAME, ZONE_MANAGER_MODULE_NAME)
+ logger.error(XFRIN_MSGQ_SEND_ERROR, self.tsig_key_name,
+ XFROUT_MODULE_NAME, ZONE_MANAGER_MODULE_NAME)
else:
msg = create_command(notify_out.ZONE_XFRIN_FAILED, param)
@@ -1702,7 +1706,8 @@ class Xfrin:
except isc.cc.session.SessionTimeout:
pass # for now we just ignore the failure
except socket.error as err:
- logger.error(XFRIN_MSGQ_SEND_ERROR_ZONE_MANAGER, ZONE_MANAGER_MODULE_NAME)
+ logger.error(XFRIN_MSGQ_SEND_ERROR_ZONE_MANAGER, self.tsig_key_name,
+ ZONE_MANAGER_MODULE_NAME)
def startup(self):
logger.debug(DBG_PROCESS, XFRIN_STARTED)
diff --git a/src/bin/xfrin/xfrin_messages.mes b/src/bin/xfrin/xfrin_messages.mes
index 9e4281a..4383324 100644
--- a/src/bin/xfrin/xfrin_messages.mes
+++ b/src/bin/xfrin/xfrin_messages.mes
@@ -56,7 +56,7 @@ most likely cause is that xfrin the msgq daemon is not running.
There was an error while the given command was being processed. The
error is given in the log message.
-% XFRIN_CONNECT_MASTER error connecting to master at %1: %2
+% XFRIN_CONNECT_MASTER (with TSIG %1) error connecting to master at %2: %3
There was an error opening a connection to the master. The error is
shown in the log message.
@@ -159,12 +159,12 @@ the primary server between the SOA and IXFR queries. The client
implementation confirms the whole response is this single SOA, and
aborts the transfer just like a successful case.
-% XFRIN_MSGQ_SEND_ERROR error while contacting %1 and %2
+% XFRIN_MSGQ_SEND_ERROR (with TSIG %1) error while contacting %2 and %3
There was a problem sending a message to the xfrout module or the
zone manager. This most likely means that the msgq daemon has quit or
was killed.
-% XFRIN_MSGQ_SEND_ERROR_ZONE_MANAGER error while contacting %1
+% XFRIN_MSGQ_SEND_ERROR_ZONE_MANAGER (with TSIG %1) error while contacting %2
There was a problem sending a message to the zone manager. This most
likely means that the msgq daemon has quit or was killed.
@@ -245,13 +245,13 @@ often.
The XFR transfer for the given zone has failed due to an internal error.
The error is shown in the log message.
-% XFRIN_XFR_TRANSFER_FALLBACK falling back from IXFR to AXFR for %1
+% XFRIN_XFR_TRANSFER_FALLBACK (with TSIG %1) falling back from IXFR to AXFR for %2
The IXFR transfer of the given zone failed. This might happen in many cases,
such that the remote server doesn't support IXFR, we don't have the SOA record
(or the zone at all), we are out of sync, etc. In many of these situations,
AXFR could still work. Therefore we try that one in case it helps.
-% XFRIN_XFR_TRANSFER_FALLBACK_DISABLED suppressing fallback from IXFR to AXFR for %1
+% XFRIN_XFR_TRANSFER_FALLBACK_DISABLED (with TSIG %1) suppressing fallback from IXFR to AXFR for %2
An IXFR transfer of the given zone failed. By default AXFR will be
tried next, but this fallback is disabled by configuration, so the
whole transfer attempt failed at that point. If the reason for the
More information about the bind10-changes
mailing list