2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00
Commit Graph

21666 Commits

Author SHA1 Message Date
Francis Dupont
eb67da1c5e [3932] Changed removeFile() to return a status one can check 2015-07-08 15:25:35 +02:00
Marcin Siodelski
3437d50c61 [3769] Fixed typos in the message files. 2015-07-08 15:19:15 +02:00
Marcin Siodelski
ab026519a7 [3484] Updated Developer's Guide for libdhcpsrv. 2015-07-08 15:09:55 +02:00
Thomas Markwalder
a6d898ec4b [3769] Addressed review comments
Removed Daemon::init() method, improved server log message
descpriptions, and minor typos.
2015-07-08 09:01:53 -04:00
Marcin Siodelski
96fac8d57e [3484] Updated sections of the Developer's Guide concerning libdhcp++. 2015-07-08 14:42:49 +02:00
Marcin Siodelski
b7720538a4 [3484] Updated Developer's Guide for the DHCPv4 server. 2015-07-08 13:33:47 +02:00
Marcin Siodelski
655ba0fe3f [3484] Updated heavily outdated sections about the DHCPv6 component. 2015-07-08 13:33:32 +02:00
Tomek Mrugalski
d4556fdf0c [master] ChangeLog updated after #3873 merge. trac3932_base trac3921a_base 2015-07-07 16:47:43 +02:00
Tomek Mrugalski
95683c9d3c [master] Merge branch 'trac3873' (FAQ section in the User's Guide) 2015-07-07 16:44:13 +02:00
Tomek Mrugalski
2bacfeb9fd [3873] Minor word-smithing after review 2015-07-07 16:43:52 +02:00
Tomek Mrugalski
eec8097b9f [master] ChangeLog updated after 3928 merge. 2015-07-07 16:17:32 +02:00
Tomek Mrugalski
2fb63a1889 [master] Merge branch 'trac3928' (missing images in dist tarball) 2015-07-07 16:16:00 +02:00
Marcin Siodelski
35f4c76b46 [3484] Updated documentation of the user_chk library. 2015-07-07 15:19:56 +02:00
Marcin Siodelski
1998d9eba2 [3484] Updated hooks maintenance guide. 2015-07-07 14:45:22 +02:00
Marcin Siodelski
db7adbb2f4 [3484] Updated Guide for Component Developers.
Mostly nits.
2015-07-07 14:13:52 +02:00
Marcin Siodelski
0fcceb6b27 [3484] Updated description of hooks for DHCPv4 and DHCPv6 server. 2015-07-07 13:36:47 +02:00
Marcin Siodelski
0d9d7115b0 [3484] Small updates to the Contributor's Guide. 2015-07-07 13:34:51 +02:00
Marcin Siodelski
34884ba4dd [3484] Moved logo to the top left corner of the developer's guide. 2015-07-07 13:33:40 +02:00
Marcin Siodelski
e1d2ed112d [3484] Replaced BIND10 logo with ISC logo in the developer's guide. 2015-07-07 13:32:34 +02:00
Thomas Markwalder
ac9aec7eb1 [3769] Updated Kea Admin guide with PID file info
Added discussion of PID files to start up section for
    each of the servers.
2015-07-06 10:30:54 -04:00
Thomas Markwalder
1c6b2862c9 [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.
2015-07-06 09:35:38 -04:00
Francis Dupont
88bd25dd06 [3752] Fixed logging.spec 2015-07-05 15:41:47 +02:00
Francis Dupont
50570f6baa [3752] Fixed flush and .spec stuff 2015-07-03 18:40:08 +02:00
Francis Dupont
9fff3d4508 [3752] Added logging.spec check 2015-07-03 18:29:13 +02:00
Francis Dupont
58a55649f2 [3752] Add the immediate flush flag 2015-07-03 15:14:49 +02:00
Francis Dupont
601e5c108c [3752] Uncommented the flush entry 2015-07-03 15:04:45 +02:00
Francis Dupont
0a5d4e4651 [3752] Added a logging.spec file (for documentation only today) 2015-07-03 13:40:07 +02:00
Thomas Markwalder
5776ee0cc7 [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
2015-07-02 17:17:08 -04:00
Thomas Markwalder
24267d20dd [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
2015-07-02 16:49:53 -04:00
Thomas Markwalder
d743c5f274 [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.
2015-07-02 14:42:58 -04:00
Francis Dupont
0709f8ea3e [master] Removed spurious io in util::io from doxygen comments (reviewed by jabber) trac3752_base 2015-07-02 14:46:46 +02:00
Shawn Routhier
f374d3819c [3873] Fix typos 2015-07-01 23:15:50 -07:00
Thomas Markwalder
e897f24ac6 [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;
2015-07-01 16:20:40 -04:00
Tomek Mrugalski
bc9e23fcf6 [3873] FAQ/troubleshooting section added. 2015-07-01 16:08:57 +02:00
Marcin Siodelski
637a79b284 [master] Added ChangeLog entry for #3578. trac3771_base 2015-06-30 18:47:37 +02:00
Marcin Siodelski
b361b28ce5 [master] Merge branch 'trac3578' 2015-06-30 18:45:43 +02:00
Shawn Routhier
dc083e3043 [3578] Minor fixes to docs 2015-06-30 08:41:56 -07:00
Tomek Mrugalski
8888087a89 [3928] Added missing images in src/lib/hooks/images to EXTRA_DIST 2015-06-30 15:40:48 +02:00
Tomek Mrugalski
7fe273010f [3928] Missing images added to EXTRA_DIST 2015-06-30 15:04:25 +02:00
Marcin Siodelski
2baf637d1f [master] Added ChangeLog for #3887. 2015-06-30 14:22:19 +02:00
Marcin Siodelski
54d1dbe613 [master] Merge branch 'trac3887' 2015-06-30 14:21:08 +02:00
Marcin Siodelski
1c1902f5a7 [master] Added ChangeLog entry for #3740. 2015-06-30 11:06:15 +02:00
Marcin Siodelski
22bcb060ce [master] Merge branch 'trac3740' 2015-06-30 10:56:20 +02:00
Marcin Siodelski
080e5f3cde [3740] Changes to the DHCPv4 message description per review comments. 2015-06-30 10:54:08 +02:00
Marcin Siodelski
70be0aada3 [master] Added ChangeLog entry for #3846. 2015-06-30 10:43:18 +02:00
Marcin Siodelski
6aebe0867c [master] Merge branch 'trac3846' 2015-06-30 10:26:12 +02:00
Marcin Siodelski
000fe29879 [3578] Updated User's Guide per review comments.
Clarifications in the section concerning option values setup.
2015-06-30 10:18:23 +02:00
Shawn Routhier
2f593d0331 [3470] Tidy up some typos 2015-06-29 22:50:19 -07:00
Shawn Routhier
e6f7686274 [3578] Tidy up some typos in the docs 2015-06-29 22:28:20 -07:00
Thomas Markwalder
b5d28c9c28 [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.
2015-06-29 14:08:46 -04:00