]>
git.ipfire.org Git - thirdparty/kea.git/log
Stephen Morris [Tue, 22 Sep 2015 13:40:29 +0000 (14:40 +0100)]
[3952] Abandon hooks tests on unrecoverable error
Changed some EXPECT_EQ tests to ASSERT_EQ in cases where the length
of a vector was checked and subsequently followed by checks that
accessed elements of the array. This way, if the array is too short,
the test will cleanly exit rather than possibly segmentation fault.
Stephen Morris [Thu, 13 Aug 2015 10:01:01 +0000 (11:01 +0100)]
[3952] Minor comment fixes
Stephen Morris [Sat, 18 Jul 2015 18:45:40 +0000 (19:45 +0100)]
[3952] Update hooks-libraries parser tests
These tests were updated while investigating the issue described in
the ticket.
Marcin Siodelski [Wed, 15 Jul 2015 12:39:29 +0000 (14:39 +0200)]
[master] Added ChangeLog entry for #3951.
Marcin Siodelski [Wed, 15 Jul 2015 12:38:25 +0000 (14:38 +0200)]
[master] Merge branch 'trac3951'
Thomas Markwalder [Wed, 15 Jul 2015 11:37:52 +0000 (07:37 -0400)]
[master] Added ChangeLog entry 981 for #3939.
Thomas Markwalder [Wed, 15 Jul 2015 10:39:09 +0000 (06:39 -0400)]
[master] keactrl now uses server PID files
Merge branch 'trac3939'
Francis Dupont [Wed, 15 Jul 2015 07:28:41 +0000 (09:28 +0200)]
[master] Merged trac3932 (check remove() return)
Marcin Siodelski [Tue, 14 Jul 2015 17:37:44 +0000 (19:37 +0200)]
[3951] Fixed typo in the D2 logger name.
Thomas Markwalder [Tue, 14 Jul 2015 13:55:35 +0000 (09:55 -0400)]
[3939] Addressed review comments
doc/devel/qa.dox
Added description of KEA_PIDFILE_DIR
doc/guide/keactrl.xml
Added discusion of PID files to section 6
src/bin/keactrl/keactrl.in
start_server()
Revised wording of already-running log message
Marcin Siodelski [Tue, 14 Jul 2015 13:19:56 +0000 (15:19 +0200)]
[master] Added ChangeLog entry for #3484.
Marcin Siodelski [Tue, 14 Jul 2015 13:18:36 +0000 (15:18 +0200)]
[master] Merge branch 'trac3484'
Stephen Morris [Tue, 14 Jul 2015 12:46:33 +0000 (13:46 +0100)]
[3484] Further corrections to spelling and grammar in the documentation
Stephen Morris [Tue, 14 Jul 2015 11:59:52 +0000 (12:59 +0100)]
[3484] Miscellanous editing changes during review
Correction of typos/grammatical errors etc. Also included text in the
contributors' section explaining why test-driven development is used.
Stephen Morris [Tue, 14 Jul 2015 11:59:19 +0000 (12:59 +0100)]
[3484] Correct error in example code
Marcin Siodelski [Mon, 13 Jul 2015 15:45:33 +0000 (17:45 +0200)]
[master] Merge branch 'trac3941'
Francis Dupont [Thu, 9 Jul 2015 12:46:25 +0000 (14:46 +0200)]
[master] Updated git hash
Francis Dupont [Thu, 9 Jul 2015 12:45:32 +0000 (14:45 +0200)]
[master] Finished merge of trac3920 (data_ defined twice)
Marcin Siodelski [Thu, 9 Jul 2015 08:38:07 +0000 (10:38 +0200)]
[3941] Renamed logger objects used by DHCPv4 and DHCPv6 server.
Thomas Markwalder [Wed, 8 Jul 2015 19:28:19 +0000 (15:28 -0400)]
[3939] keactrl now uses PID files to control servers
src/bin/keactrl/keactrl.in
- get_pid_from_file() - new function which returns a server's PID from its
pid file, or 0
- check_running() - modified to use get_pid_from_file(), sets $_pid and $_pid_file
globals
- send_signal() - modified to use get_pid_from_file()
- start_server() - modified log emitted if server is already running to
contain the PID and pid file
- stop_server() - new function to stop a given server, IF it is running.
reload_server() - new function to reload a given server, IF it is running.
- get_pids() - deleted
- Replaced use of send_signal with stop_server or reload_server to provide
better visual feedback to users.
~
Thomas Markwalder [Wed, 8 Jul 2015 16:23:48 +0000 (12:23 -0400)]
[master] Fixed BSD compile error introduced by 3769
Added #include for waitpid() added to testing by 3769.
Marcin Siodelski [Wed, 8 Jul 2015 14:55:19 +0000 (16:55 +0200)]
[3484] Fixed quite a few doxygen warnings.
Francis Dupont [Wed, 8 Jul 2015 14:24:55 +0000 (16:24 +0200)]
[3932] Fixed typo
Marcin Siodelski [Wed, 8 Jul 2015 14:11:39 +0000 (16:11 +0200)]
[3484] Small fixes to remaining dox files.
Thomas Markwalder [Wed, 8 Jul 2015 14:07:21 +0000 (10:07 -0400)]
[master] Added ChangeLog entry 978, for #3769.
Francis Dupont [Wed, 8 Jul 2015 13:56:56 +0000 (15:56 +0200)]
[3932] Ignored remove return status
Francis Dupont [Wed, 8 Jul 2015 13:52:28 +0000 (15:52 +0200)]
[3932] Ignored remove return status
Francis Dupont [Wed, 8 Jul 2015 13:50:04 +0000 (15:50 +0200)]
[3932] Ignored remove return status
Thomas Markwalder [Wed, 8 Jul 2015 13:49:49 +0000 (09:49 -0400)]
[master] Servers now create PID files
Merge branch 'trac3769'
Francis Dupont [Wed, 8 Jul 2015 13:46:33 +0000 (15:46 +0200)]
[3932] Ignored remove return status
Francis Dupont [Wed, 8 Jul 2015 13:45:22 +0000 (15:45 +0200)]
[3932] Ignored remove return status
Francis Dupont [Wed, 8 Jul 2015 13:41:18 +0000 (15:41 +0200)]
[3932] Ignored remove return status
Francis Dupont [Wed, 8 Jul 2015 13:37:40 +0000 (15:37 +0200)]
[3932] Ignored remove return status
Francis Dupont [Wed, 8 Jul 2015 13:33:28 +0000 (15:33 +0200)]
[3932] Ignored remove return status
Francis Dupont [Wed, 8 Jul 2015 13:32:14 +0000 (15:32 +0200)]
[3932] Ignored remove return status
Francis Dupont [Wed, 8 Jul 2015 13:25:35 +0000 (15:25 +0200)]
[3932] Changed removeFile() to return a status one can check
Marcin Siodelski [Wed, 8 Jul 2015 13:19:15 +0000 (15:19 +0200)]
[3769] Fixed typos in the message files.
Marcin Siodelski [Wed, 8 Jul 2015 13:09:55 +0000 (15:09 +0200)]
[3484] Updated Developer's Guide for libdhcpsrv.
Thomas Markwalder [Wed, 8 Jul 2015 13:01:53 +0000 (09:01 -0400)]
[3769] Addressed review comments
Removed Daemon::init() method, improved server log message
descpriptions, and minor typos.
Marcin Siodelski [Wed, 8 Jul 2015 12:42:49 +0000 (14:42 +0200)]
[3484] Updated sections of the Developer's Guide concerning libdhcp++.
Marcin Siodelski [Wed, 8 Jul 2015 11:33:47 +0000 (13:33 +0200)]
[3484] Updated Developer's Guide for the DHCPv4 server.
Marcin Siodelski [Tue, 7 Jul 2015 14:22:31 +0000 (16:22 +0200)]
[3484] Updated heavily outdated sections about the DHCPv6 component.
Tomek Mrugalski [Tue, 7 Jul 2015 14:47:43 +0000 (16:47 +0200)]
[master] ChangeLog updated after #3873 merge.
Tomek Mrugalski [Tue, 7 Jul 2015 14:44:13 +0000 (16:44 +0200)]
[master] Merge branch 'trac3873' (FAQ section in the User's Guide)
Tomek Mrugalski [Tue, 7 Jul 2015 14:43:52 +0000 (16:43 +0200)]
[3873] Minor word-smithing after review
Tomek Mrugalski [Tue, 7 Jul 2015 14:17:32 +0000 (16:17 +0200)]
[master] ChangeLog updated after 3928 merge.
Tomek Mrugalski [Tue, 7 Jul 2015 14:16:00 +0000 (16:16 +0200)]
[master] Merge branch 'trac3928' (missing images in dist tarball)
Marcin Siodelski [Tue, 7 Jul 2015 13:19:56 +0000 (15:19 +0200)]
[3484] Updated documentation of the user_chk library.
Marcin Siodelski [Tue, 7 Jul 2015 12:45:22 +0000 (14:45 +0200)]
[3484] Updated hooks maintenance guide.
Marcin Siodelski [Tue, 7 Jul 2015 12:13:52 +0000 (14:13 +0200)]
[3484] Updated Guide for Component Developers.
Mostly nits.
Marcin Siodelski [Tue, 7 Jul 2015 11:36:47 +0000 (13:36 +0200)]
[3484] Updated description of hooks for DHCPv4 and DHCPv6 server.
Marcin Siodelski [Tue, 7 Jul 2015 11:34:51 +0000 (13:34 +0200)]
[3484] Small updates to the Contributor's Guide.
Marcin Siodelski [Tue, 7 Jul 2015 11:33:40 +0000 (13:33 +0200)]
[3484] Moved logo to the top left corner of the developer's guide.
Marcin Siodelski [Tue, 7 Jul 2015 11:32:34 +0000 (13:32 +0200)]
[3484] Replaced BIND10 logo with ISC logo in the developer's guide.
Thomas Markwalder [Mon, 6 Jul 2015 14:30:54 +0000 (10:30 -0400)]
[3769] Updated Kea Admin guide with PID file info
Added discussion of PID files to start up section for
each of the servers.
Thomas Markwalder [Mon, 6 Jul 2015 13:35:38 +0000 (09:35 -0400)]
[3769] Removed static from Daemon::config_file_ and proc_name_
Rendered config_file_ and proc_name_ instance members as there is
no reason for them to be static.
Thomas Markwalder [Thu, 2 Jul 2015 21:17:08 +0000 (17:17 -0400)]
[3769] DHCPv6 now uses PID file
Added PID file creation to DHCP6
src/bin/dhcp6/dhcp6_messages.mes
- added log DHCP6_ALREADY_RUNNING
src/bin/dhcp6/main.cc
- added logic to create the PID and catch
exception specific to PID conflict
src/bin/dhcp6/tests/Makefile.am
- exports KEA_PIDFILE_DIR
src/bin/dhcp6/tests/dhcp6_process_tests.sh.in
- added call to server_pid_file_test
src/bin/dhcp6/tests/dhcp6_unittests.cc
- main(int argc, char* argv[])
sets env var KEA_PIDFILE_DIR
Thomas Markwalder [Thu, 2 Jul 2015 20:49:53 +0000 (16:49 -0400)]
[3769] DHPCv4 now uses PID file, made pid test common
src/lib/testutils/dhcp_test_lib.sh.in
- server_pid_file_test() - common test for any server
to verify PID file management
src/bin/d2/tests/d2_process_tests.sh.in
remmoved duplicate_server_start_test
now calls server_pid_file_test
Added PID file creation to DHCP4
src/bin/dhcp4/dhcp4_messages.mes
- added log DHCP4_ALREADY_RUNNING
src/bin/dhcp4/main.cc
- added logic to create the PID and catch
exception specific to PID conflict
src/bin/dhcp4/tests/Makefile.am
- exports KEA_PIDFILE_DIR
src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
- added call to server_pid_file_test
src/bin/dhcp4/tests/dhcp4_unittests.cc
- main(int argc, char* argv[])
sets env var KEA_PIDFILE_DIR
Thomas Markwalder [Thu, 2 Jul 2015 18:42:58 +0000 (14:42 -0400)]
[3769] Added env var,KEA_PIDFILE_DIR; D2 now uses a PIDFile
src/lib/dhcpsrv/daemon.c/h
Daemon::Daemon() - Constructor will now override the default PID
directory with the value of env variable KEA_PIDFILE_DIR. This
provides a simple means to alter the value for tests.
Added am_file_author_ flag so Daemon instances will only delete
a file they have written.
src/lib/testutils/dhcp_test_lib.sh.in
- verify_server_pid() - new function which verifies that a server has a PID file
and that it contains the server's PID, and that the process is alive.
src/bin/keactrl/tests/Makefile.am
- added export of KEA_PIDFILE_DIR to override default PID directory during tests
Added PID file creation to D2
src/bin/d2/d_controller.cc
- DControllerBase::launch() - Added block to createPIDFile()
-DControllerBase::parseArgs() Replaced call to Daemon::init()
with call to Daemon::setConfigFile()
src/bin/d2/tests/Makefile.am
- added export of KEA_PIDFILE_DIR to override default PID directory during tests
src/bin/d2/tests/d2_process_tests.sh.in
- dupcliate_server_start_test() - new test which verifies that D2 cannot be
started twice (with the same configuration file)
src/bin/d2/tests/d2_unittests.cc
- main(int argc, char* argv[]) sets environment variable KEA_PIDFILE_DIR
to override default PID diretory during tests
src/lib/util/pid_file.cc/h
src/lib/util/tests/pid_file_unittest.cc
Changed PIDFile::check() to return either the PID contained in the PID file
if the process is alive, or 0, rather than bool. This permits callers
to see/log the PID.
Francis Dupont [Thu, 2 Jul 2015 12:46:46 +0000 (14:46 +0200)]
[master] Removed spurious io in util::io from doxygen comments (reviewed by jabber)
Shawn Routhier [Thu, 2 Jul 2015 06:15:50 +0000 (23:15 -0700)]
[3873] Fix typos
Thomas Markwalder [Wed, 1 Jul 2015 20:20:40 +0000 (16:20 -0400)]
[3769] Added support for creating PIDFiles to dhcpsrv::Daemon
src/lib/dhcpsrv/daemon.h/cc
New methods:
static void setConfigFile(const std::string& config_file);
std::string getProcName() const;
setProcName(const std::string& proc_name);
std::string getPIDFileDir() const;
void setPIDFileDir(const std::string& pid_file_dir);
std::string getPIDFileName() const;
void setPIDFileName(const std::string& pid_file_name);
void createPIDFile(int pid = 0);
std::string makePIDFileName() const;
New members:
std::string proc_name_;
std::string pid_file_dir_;
isc::util::PIDFilePtr pid_file_;
src/lib/dhcpsrv/tests/daemon_unittest.cc
New tests:
TEST_F(DaemonTest, getSetConfigFile)
TEST_F(DaemonTest, getSetProcName)
TEST_F(DaemonTest, getSetPIDFileDir)
TEST_F(DaemonTest, setPIDFileName)
TEST_F(DaemonTest, makePIDFileName)
TEST_F(DaemonTest, createPIDFile)
TEST_F(DaemonTest, createPIDFileOverwrite)
TEST_F(DaemonTest, PIDFileCleanup)
src/lib/util/pid_file.h
Added typedef boost::shared_ptr<PIDFile> PIDFilePtr;
Tomek Mrugalski [Wed, 1 Jul 2015 14:08:57 +0000 (16:08 +0200)]
[3873] FAQ/troubleshooting section added.
Marcin Siodelski [Tue, 30 Jun 2015 16:47:37 +0000 (18:47 +0200)]
[master] Added ChangeLog entry for #3578.
Marcin Siodelski [Tue, 30 Jun 2015 16:45:43 +0000 (18:45 +0200)]
[master] Merge branch 'trac3578'
Shawn Routhier [Tue, 30 Jun 2015 15:41:56 +0000 (08:41 -0700)]
[3578] Minor fixes to docs
Tomek Mrugalski [Tue, 30 Jun 2015 13:40:48 +0000 (15:40 +0200)]
[3928] Added missing images in src/lib/hooks/images to EXTRA_DIST
Tomek Mrugalski [Tue, 30 Jun 2015 13:04:25 +0000 (15:04 +0200)]
[3928] Missing images added to EXTRA_DIST
Marcin Siodelski [Tue, 30 Jun 2015 12:22:19 +0000 (14:22 +0200)]
[master] Added ChangeLog for #3887.
Marcin Siodelski [Tue, 30 Jun 2015 12:21:08 +0000 (14:21 +0200)]
[master] Merge branch 'trac3887'
Marcin Siodelski [Tue, 30 Jun 2015 09:06:15 +0000 (11:06 +0200)]
[master] Added ChangeLog entry for #3740.
Marcin Siodelski [Tue, 30 Jun 2015 08:56:20 +0000 (10:56 +0200)]
[master] Merge branch 'trac3740'
Marcin Siodelski [Tue, 30 Jun 2015 08:54:08 +0000 (10:54 +0200)]
[3740] Changes to the DHCPv4 message description per review comments.
Marcin Siodelski [Tue, 30 Jun 2015 08:43:18 +0000 (10:43 +0200)]
[master] Added ChangeLog entry for #3846.
Marcin Siodelski [Tue, 30 Jun 2015 08:26:12 +0000 (10:26 +0200)]
[master] Merge branch 'trac3846'
Marcin Siodelski [Tue, 30 Jun 2015 08:18:23 +0000 (10:18 +0200)]
[3578] Updated User's Guide per review comments.
Clarifications in the section concerning option values setup.
Shawn Routhier [Tue, 30 Jun 2015 05:50:19 +0000 (22:50 -0700)]
[3470] Tidy up some typos
Shawn Routhier [Tue, 30 Jun 2015 05:28:20 +0000 (22:28 -0700)]
[3578] Tidy up some typos in the docs
Thomas Markwalder [Mon, 29 Jun 2015 18:08:46 +0000 (14:08 -0400)]
[master] Fixed distcheck issues with src/bin/admin tests
There were several minor issues related to src/bin/admin tests
that were visible only when distcheck was perfomed with mysql
and/or postgresql enabled.
Marcin Siodelski [Mon, 29 Jun 2015 09:52:16 +0000 (11:52 +0200)]
[3846] Trivial change in the kea-guide.
Marcin Siodelski [Mon, 29 Jun 2015 09:49:46 +0000 (11:49 +0200)]
[3846] Removed the invalid note from the kea-guide.
Marcin Siodelski [Mon, 29 Jun 2015 09:46:14 +0000 (11:46 +0200)]
[3846] Revised DHCPv6 option definitions in the kea-guide.
Marcin Siodelski [Mon, 29 Jun 2015 09:45:52 +0000 (11:45 +0200)]
[3846] Revised DHCPv4 option definitions in the kea guide.
Francis Dupont [Sat, 27 Jun 2015 11:20:22 +0000 (13:20 +0200)]
[3920] Applied proposed cleanup of Pkt{,4} buf/len constructor
Francis Dupont [Sat, 27 Jun 2015 11:13:02 +0000 (13:13 +0200)]
[3920] Removed reinit of data_
Francis Dupont [Sat, 27 Jun 2015 11:08:39 +0000 (13:08 +0200)]
[master] Finished merge of trac3839 (removed unused exception variables)
Francis Dupont [Sat, 27 Jun 2015 11:02:39 +0000 (13:02 +0200)]
[3839] copyright
Francis Dupont [Sat, 27 Jun 2015 11:02:07 +0000 (13:02 +0200)]
[3839] reindented
Francis Dupont [Sat, 27 Jun 2015 07:12:29 +0000 (09:12 +0200)]
[master] Removed spurious lease_(0) introduced by accident in #3919 marge
Marcin Siodelski [Fri, 26 Jun 2015 17:08:50 +0000 (19:08 +0200)]
[master] Added ChangeLog entry for #3913.
Marcin Siodelski [Fri, 26 Jun 2015 16:41:40 +0000 (18:41 +0200)]
[master] Merge branch 'trac3913'
Marcin Siodelski [Fri, 26 Jun 2015 16:33:29 +0000 (18:33 +0200)]
[3913] Addressed review comments.
Moved the function from the anon namespace to the AllocEngine class.
Marcin Siodelski [Fri, 26 Jun 2015 10:29:25 +0000 (12:29 +0200)]
[3913] Allocation engine extends the lifetime of the lease for Request.
Francis Dupont [Fri, 26 Jun 2015 07:16:39 +0000 (09:16 +0200)]
[master] Updated git hash
Francis Dupont [Fri, 26 Jun 2015 07:15:55 +0000 (09:15 +0200)]
[master] Finished merge of trac3919 (cppcheck small fixes)
Francis Dupont [Fri, 26 Jun 2015 07:06:10 +0000 (09:06 +0200)]
[3919] grammar
Francis Dupont [Fri, 26 Jun 2015 07:00:44 +0000 (09:00 +0200)]
[3919] copyrights
Francis Dupont [Thu, 25 Jun 2015 12:08:54 +0000 (14:08 +0200)]
[master] Merged trac3858a (locat paths in libdhcpsrv_unittests)
Francis Dupont [Thu, 25 Jun 2015 10:54:18 +0000 (12:54 +0200)]
[master] Merged trac3922 (Stopwatch not copyable)
Francis Dupont [Wed, 24 Jun 2015 17:45:57 +0000 (19:45 +0200)]
[3922] Made Stopwatch not copyable