]>
git.ipfire.org Git - thirdparty/kea.git/log
Michal 'vorner' Vaner [Wed, 30 May 2012 08:14:53 +0000 (10:14 +0200)]
Merge #1944
This fixes the logging placeholders in messages to really match what is logged.
Mukund Sivaraman [Wed, 30 May 2012 06:54:05 +0000 (12:24 +0530)]
[2009] Fix narrowing warnings with GCC 4.7
Mukund Sivaraman [Wed, 30 May 2012 05:48:41 +0000 (11:18 +0530)]
[1890] Clarify message shown when command to clear the config file is used
Jelte Jansen [Tue, 29 May 2012 21:32:16 +0000 (23:32 +0200)]
[1457] fix a few final todo's
most important, a catchall during processing of the update section
Jelte Jansen [Tue, 29 May 2012 21:19:08 +0000 (23:19 +0200)]
[1457] whitespace fix
Jelte Jansen [Tue, 29 May 2012 21:15:46 +0000 (23:15 +0200)]
[1457] refactor: don't return tuple from __get_update_zone()
Jelte Jansen [Tue, 29 May 2012 21:13:11 +0000 (23:13 +0200)]
[1457] refactor: make new members private
Jelte Jansen [Tue, 29 May 2012 21:07:33 +0000 (23:07 +0200)]
[1457] refactor: initialize ZoneFinder once per session
Jelte Jansen [Tue, 29 May 2012 20:53:51 +0000 (22:53 +0200)]
[1457] refactor: make zname, zclass and datasrclient member variables
instead of arguments that need to be passed to nearly every method
Jelte Jansen [Tue, 29 May 2012 20:28:24 +0000 (22:28 +0200)]
[1457] refactor ddns session unit tests
made a local easy function to create rrsets, which should make most tests much easier to read (less clutter around rrset creation and rdata addition).
Also changed the tests added in #1455 to use this
Jelte Jansen [Tue, 29 May 2012 19:17:52 +0000 (21:17 +0200)]
[1457] finish ddns update unit tests for code coverage
Jelte Jansen [Sun, 27 May 2012 11:36:24 +0000 (13:36 +0200)]
[1457] docstrings
Jelte Jansen [Sun, 27 May 2012 11:19:15 +0000 (13:19 +0200)]
[1457] tests for rrset class convert function
Jelte Jansen [Sun, 27 May 2012 10:56:25 +0000 (12:56 +0200)]
[1457] log message descriptions
Jelte Jansen [Sun, 27 May 2012 10:40:39 +0000 (12:40 +0200)]
[1457] more CNAME update tests and fixes
Jelte Jansen [Sun, 27 May 2012 10:26:30 +0000 (12:26 +0200)]
[1457] rename helpers, add cname update tests
Jelte Jansen [Sun, 27 May 2012 09:30:41 +0000 (09:30 +0000)]
[1457] initial addition of log messages for update section
Jelte Jansen [Fri, 25 May 2012 15:17:55 +0000 (17:17 +0200)]
[1457] added test, and check for dupe rrs
Jelte Jansen [Fri, 25 May 2012 14:17:34 +0000 (16:17 +0200)]
[1457] initial update handling
Still needs a lot of cleanup, logging and more tests, but the basics are there
JINMEI Tatuya [Tue, 29 May 2012 16:50:30 +0000 (09:50 -0700)]
[master] (re)add the LIBRARY_PATH_PLACEHOLDER trick for dhcp6 tests
now its python test relies on isc python modules we need this workaround
for MacOS X. This fix solves recent buildbot failures on macmini.
okayed on jabber
Jelte Jansen [Tue, 29 May 2012 14:20:07 +0000 (16:20 +0200)]
[master] Merge branch 'trac1456'
Tomek Mrugalski [Tue, 29 May 2012 14:02:54 +0000 (16:02 +0200)]
[1503] -p portnumber option implemented for b10-dhcp6
-p portnumber command-line option implemeneted for b10-dhcp6
Corresponding tests implemented as well.
Tomek Mrugalski [Tue, 29 May 2012 12:53:49 +0000 (14:53 +0200)]
[master] Unnecessary header removed from iface_mgr.cc
- Compilation fix for FreeBSD
Yoshitaka Aharen [Tue, 29 May 2012 12:37:33 +0000 (21:37 +0900)]
[master] added missing copyright statement
This fix is trivial, so directly committing without review.
Michal 'vorner' Vaner [Tue, 29 May 2012 11:59:38 +0000 (13:59 +0200)]
[1944] Don't use shared method for logging
At least for some logging. This eliminates having more real parameters
than placeholders for the used messages. Other occurrences of the
function are preserved, as the corresponding messages have full set of
placeholders.
Tomek Mrugalski [Tue, 29 May 2012 10:21:08 +0000 (12:21 +0200)]
[master] Removing unused_id variable (compilation fix for perfdhcp)
Tomek Mrugalski [Tue, 29 May 2012 09:53:00 +0000 (11:53 +0200)]
Merge branch 'master' of ssh://git.bind10.isc.org/var/bind10/git/bind10
Tomek Mrugalski [Tue, 29 May 2012 09:45:52 +0000 (11:45 +0200)]
[master] ChangeLog numbers update, after 1281 merge.
Marcin Siodelski [Tue, 29 May 2012 09:36:43 +0000 (11:36 +0200)]
[master] Clean fix for unused variables warning.
Jelte Jansen [Tue, 29 May 2012 09:24:36 +0000 (11:24 +0200)]
[1456] addressed review comments
- refactored duplicate code
- updated docstrings
Tomek Mrugalski [Tue, 29 May 2012 09:16:55 +0000 (11:16 +0200)]
Merge branch 'trac1281'
Mukund Sivaraman [Tue, 29 May 2012 08:07:25 +0000 (13:37 +0530)]
[1704] Add some tests for InterprocessSyncNull class too
Marcin Siodelski [Mon, 28 May 2012 19:27:56 +0000 (21:27 +0200)]
[master] Workaround for unused-variable issues on Solaris.
Marcin Siodelski [Mon, 28 May 2012 14:51:42 +0000 (16:51 +0200)]
[master] Use clockid to avoid "unused variable" warning.
Marcin Siodelski [Mon, 28 May 2012 13:59:03 +0000 (15:59 +0200)]
[1956] Created PerfPkt6 class
New class handles DHCPv6 messages in perfdhcp tool
Marcin Siodelski [Mon, 28 May 2012 13:35:04 +0000 (15:35 +0200)]
Merge branch 'trac1954'
Mukund Sivaraman [Mon, 28 May 2012 13:32:06 +0000 (19:02 +0530)]
[1704] Use 'logger' as the task name for all interprocess sync objects inside log/
Stephen Morris [Mon, 28 May 2012 13:01:12 +0000 (14:01 +0100)]
[1954] Minor changes
Remove a duplicated line in commandOptions::reset() and corrected
header comments in initClientsNum().
Mukund Sivaraman [Mon, 28 May 2012 12:55:26 +0000 (18:25 +0530)]
[1704] Check that logger acquires and releases locks correctly when logging messages
Mukund Sivaraman [Mon, 28 May 2012 12:14:44 +0000 (17:44 +0530)]
[1704] Add note about exception thrown
Michal 'vorner' Vaner [Mon, 28 May 2012 10:34:17 +0000 (12:34 +0200)]
Merge #1948
This is the guide update to mention the listen_on workaround for multi-homed
hosts.
Mukund Sivaraman [Mon, 28 May 2012 08:50:21 +0000 (14:20 +0530)]
[1704] Set B10_LOCKFILE_DIR_FROM_BUILD for various tests
Mukund Sivaraman [Mon, 28 May 2012 07:49:13 +0000 (13:19 +0530)]
[1704] Use a null InterprocessSync object for some tests
This makes some tests pass which uses logger_example, which is
a standalone binary.
Mukund Sivaraman [Mon, 28 May 2012 07:24:24 +0000 (12:54 +0530)]
[1704] Update documentation
Mukund Sivaraman [Mon, 28 May 2012 07:14:15 +0000 (12:44 +0530)]
[1704] Set and use B10_LOCKFILE_DIR_FROM_BUILD in tests
* Also set this env variable in isc::log::initLogger()
Mukund Sivaraman [Mon, 28 May 2012 06:18:49 +0000 (11:48 +0530)]
[1704] Remove log_test_messages.{cc,h} from the tree
They are auto-generated during build now.
Mukund Sivaraman [Mon, 28 May 2012 06:09:14 +0000 (11:39 +0530)]
[1704] Add targets to create log_test_messages.{h,cc} from .mes
Mukund Sivaraman [Mon, 28 May 2012 06:02:41 +0000 (11:32 +0530)]
[1704] Throw if NULL is passed to logger.setInterprocessSync()
Mukund Sivaraman [Mon, 28 May 2012 05:40:40 +0000 (11:10 +0530)]
[1704] Use @abs_top_builddir@ directly in the .py.in file instead of using an env variable
Mukund Sivaraman [Mon, 28 May 2012 05:35:13 +0000 (11:05 +0530)]
[1704] Assert that the lockfiles exist
Mukund Sivaraman [Mon, 28 May 2012 05:32:39 +0000 (11:02 +0530)]
[1704] Assert that the lockfile_test directory exists, and is removed
Mukund Sivaraman [Mon, 28 May 2012 05:01:51 +0000 (10:31 +0530)]
[1948] Make minor editorial changes
Mukund Sivaraman [Mon, 28 May 2012 04:55:47 +0000 (10:25 +0530)]
[1704] Move test directory creation to setUp() / tearDown()
JINMEI Tatuya [Fri, 25 May 2012 22:02:45 +0000 (15:02 -0700)]
[1704] style matters: don't omit {}, func name convention, typo.
also use unnamed namespace instead of file-scope static. technically, this
use of static was deprecated in C++. also use the unnamed namespace for
the entire TESTs, which is our common (though not explicitly documented)
convention.
Tomek Mrugalski [Fri, 25 May 2012 19:32:28 +0000 (21:32 +0200)]
[1503] DHCPv4 Python tests now don't block when nothing is printed on stderr
Tomek Mrugalski [Fri, 25 May 2012 18:54:27 +0000 (20:54 +0200)]
[1503] ChangeLog updated.
Marcin Siodelski [Fri, 25 May 2012 13:27:22 +0000 (15:27 +0200)]
[1954] Correcting error in -D<value%>
Jelte Jansen [Fri, 25 May 2012 13:13:13 +0000 (15:13 +0200)]
[1456] remove double empty line
Marcin Siodelski [Fri, 25 May 2012 12:55:42 +0000 (14:55 +0200)]
[1954] Updated with suggestions from second round of review
Jelte Jansen [Fri, 25 May 2012 12:50:16 +0000 (14:50 +0200)]
[master] Merge remote-tracking branch 'origin/trac1455'
Jelte Jansen [Fri, 25 May 2012 12:49:28 +0000 (14:49 +0200)]
[1455] Merge branch 'trac1455' of ssh://git.bind10.isc.org/var/bind10/git/bind10 into trac1455
Jelte Jansen [Fri, 25 May 2012 12:48:56 +0000 (14:48 +0200)]
[1455] add new test data files to EXTRA_DIST
Jelte Jansen [Fri, 25 May 2012 12:35:02 +0000 (14:35 +0200)]
[1456] fix a few comments and error messages
Jelte Jansen [Fri, 25 May 2012 12:18:22 +0000 (14:18 +0200)]
[1456] bit more explanation about single_update_mode
Michal 'vorner' Vaner [Fri, 25 May 2012 10:48:34 +0000 (12:48 +0200)]
[1944] Deactivate logger on exception
We want to disable the logger if there was an exception while putting
the parameters in. While we can't detect all possible ones, we can
detect some and reduce some false positives of the strict log checker
and not output mangled messages.
Michal 'vorner' Vaner [Thu, 24 May 2012 12:30:54 +0000 (14:30 +0200)]
[1944] Make sure we print the message ID on abort
When we enable the strict log checking and the excess placeholders check
triggers, we need to print the message to easily identify the message ID
with the problem.
Michal 'vorner' Vaner [Thu, 24 May 2012 12:07:48 +0000 (14:07 +0200)]
[1944] Add a missing placeholder for number of labels
The DATASRC_DATABASE_FINDNSEC3_COVER logging message was missing a
placeholder. Added.
Jelte Jansen [Fri, 25 May 2012 10:29:13 +0000 (12:29 +0200)]
[1455] Added notes about possible optimizations
As per review comment http://bind10.isc.org/ticket/1455#comment:15
Jelte Jansen [Fri, 25 May 2012 10:04:25 +0000 (12:04 +0200)]
[1456] Add 'single-update-mode' to xfrin/diff.py
This mode is useful for DDNS-type updates; it allows for additions and deletions to be done in any order (keeping track of them separately).
It does have some extra restrictions; SOA records must be the first deleted and the first added type, and may not occur later anymore (causes ValueError).
For now, I left this in python/isc/xfrin, even though it is not purely xfrin anymore. Should we move it to datasrc? or util?
Jeremy C. Reed [Fri, 25 May 2012 09:29:26 +0000 (04:29 -0500)]
[master] also link with libutil_io
This fixes problem noticed with
g++ (Debian 4.6.3-2) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
The linker no longer indirectly links. The linker no loner
searches for dependencies.
This one line addition patch shared on jabber yesterday; builder had problem
again today.
Mukund Sivaraman [Fri, 25 May 2012 06:29:29 +0000 (11:59 +0530)]
[1704] Test remove_lock_files()
JINMEI Tatuya [Fri, 25 May 2012 06:09:28 +0000 (23:09 -0700)]
[1458] added documentation for ACL related methods of ZoneConfig.
Mukund Sivaraman [Fri, 25 May 2012 05:36:19 +0000 (11:06 +0530)]
[1704] Use B10_FROM_BUILD instead of B10_FROM_SOURCE (contd.)
Mukund Sivaraman [Fri, 25 May 2012 05:23:10 +0000 (10:53 +0530)]
[1704] Use B10_FROM_BUILD instead of B10_FROM_SOURCE
Mukund Sivaraman [Fri, 25 May 2012 05:18:45 +0000 (10:48 +0530)]
[1704] Don't set B10_FROM_SOURCE for logger unittest
Mukund Sivaraman [Fri, 25 May 2012 04:58:26 +0000 (10:28 +0530)]
[1704] Add documentation for InterprocessSync and InterprocessSyncFile
Mukund Sivaraman [Fri, 25 May 2012 04:33:01 +0000 (10:03 +0530)]
[1704] Add documentation for setInterprocessSync()
Mukund Sivaraman [Fri, 25 May 2012 04:32:36 +0000 (10:02 +0530)]
[1704] In case NULL is passed as the sync object, do nothing and return
Mukund Sivaraman [Fri, 25 May 2012 04:24:03 +0000 (09:54 +0530)]
[1704] Move code to different places (no functional changes)
Mukund Sivaraman [Fri, 25 May 2012 04:16:52 +0000 (09:46 +0530)]
[1704] Add a comment about use of select() in the test
This commit also:
* Moves the parent's code to read the lock state into a helper
function.
* Describes the 5 second timeout as an arbitrary value.
Mukund Sivaraman [Fri, 25 May 2012 04:06:10 +0000 (09:36 +0530)]
[1704] Initialize sync_ in the initialization list
Mukund Sivaraman [Fri, 25 May 2012 04:04:27 +0000 (09:34 +0530)]
[1704] Update comment about using locking in the logger
Mukund Sivaraman [Fri, 25 May 2012 04:02:56 +0000 (09:32 +0530)]
[1704] Remove obsolete include
Mukund Sivaraman [Fri, 25 May 2012 04:01:56 +0000 (09:31 +0530)]
[1704] Make InterprocessSyncFile's destructor virtual
JINMEI Tatuya [Fri, 25 May 2012 03:22:37 +0000 (20:22 -0700)]
[1458] sort the log messages.
JINMEI Tatuya [Fri, 25 May 2012 03:11:40 +0000 (20:11 -0700)]
[1458] supported update ACL with TSIG.
on thinking about this in more detail, I deprecated UpdateSession's req_data.
the new assumption is that the caller should complete TSIG validation,
and for ACL check UpdateSession just uses the stored TSIG record in the
given message.
JINMEI Tatuya [Thu, 24 May 2012 22:50:17 +0000 (15:50 -0700)]
[1458] handle the case of ACL action being DROP.
JINMEI Tatuya [Thu, 24 May 2012 22:13:45 +0000 (15:13 -0700)]
[1458] first step for __check_update_acl: check ACL, and handle reject case.
JINMEI Tatuya [Thu, 24 May 2012 21:39:23 +0000 (14:39 -0700)]
[1704] style matters: long line, () for return, const, { position.
also change 'const string' to 'const string&' in some places
Michal 'vorner' Vaner [Thu, 24 May 2012 10:55:24 +0000 (12:55 +0200)]
[1948] Suggest listing all addresses in listen_on
The guide is modified to suggest to list all the addresses explicitly
for a multi-homed server, since the wildcard addresses don't work well
yet.
Jelte Jansen [Thu, 24 May 2012 07:42:54 +0000 (09:42 +0200)]
[1455] make shallow copy of to-be-modified list
Mukund Sivaraman [Thu, 24 May 2012 07:41:37 +0000 (13:11 +0530)]
[1704] Use top_builddir during tests as top_srcdir may not be writable
Mukund Sivaraman [Thu, 24 May 2012 07:18:43 +0000 (12:48 +0530)]
[1704] Unit test the logger for the lock
Mukund Sivaraman [Thu, 24 May 2012 06:46:29 +0000 (12:16 +0530)]
[1704] Open lock files lazily
Mukund Sivaraman [Thu, 24 May 2012 06:19:18 +0000 (11:49 +0530)]
[1704] Add a select() to the parent reader in case the child messes up
Mukund Sivaraman [Thu, 24 May 2012 06:06:45 +0000 (11:36 +0530)]
[1704] Replace TEST_F with TEST
Mukund Sivaraman [Thu, 24 May 2012 06:02:22 +0000 (11:32 +0530)]
[1704] Minimize code
Mukund Sivaraman [Thu, 24 May 2012 05:49:59 +0000 (11:19 +0530)]
[1704] fd_ cannot be -1 here
Mukund Sivaraman [Thu, 24 May 2012 05:48:34 +0000 (11:18 +0530)]
[1704] Use a helper for lock/unlock/tryLock as they use the same pattern
Mukund Sivaraman [Thu, 24 May 2012 05:33:45 +0000 (11:03 +0530)]
[1704] Remove separate class hierarchy for InterprocessSyncLocker