2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

21666 Commits

Author SHA1 Message Date
Tomek Mrugalski
ba36626dbd [3902] Workaround for file descriptor 0 implemented. 2015-08-21 13:12:24 +02:00
Tomek Mrugalski
be4c905d3d [trac4000] Exception handling in DHCPv6 improved
- std::exception is now caught
 - try/catch clause added around handleSignal
2015-08-20 16:36:24 +02:00
Tomek Mrugalski
f71885fb8a [trac4000] Unit-tests for process spawn + errno, verbose exceptions added. 2015-08-20 16:31:03 +02:00
Tomek Mrugalski
680b404237 [trac4000] Unnecessary messages removed. 2015-08-20 15:37:50 +02:00
Tomek Mrugalski
861397d1c7 [support8785] Likely fix for the issues with "no child processes" exception
This fix makes the signal handler no longer modify errno value.
  That was causing "no child processes" exceptions in places that
  had nothing to do with signals or processes.
2015-08-20 14:58:54 +02:00
Tomek Mrugalski
2954301e6d [support8785] Verbose Exception::what() has been implemented.
This change by itself does nothing, but it allows changing
  e.what() to e.what(true) to get more details about an exception.
  This can be useful for exception debugging.
2015-08-20 14:57:05 +02:00
Tomek Mrugalski
f1982bb487 [support8785] std::exception, not just isc::Exception is caught
If std::exception would be thrown anywhere in message processing
  in Dhcp4Srv::run(), we would not catch it. In principle, that
  should never happen, as the Kea code only throws isc::Exception
  derivatives, but maybe some of the system or boost calls could
  throw std::exception.
2015-08-20 14:57:05 +02:00
Tomek Mrugalski
8b42a07752 [support8785] ISC and std exceptions in handleSignal() are now caught
The calls to handleSignal() are now wrapped with catch clauses
  for both ISC and standard exceptions. This would not solve the
  underlying issue, but at least would cause the server to continue
  after the issue occurs.
2015-08-20 14:57:05 +02:00
Tomek Mrugalski
7384d94e93 [support8785] Select interruption by signal is now logged.
One of the hypotheses for the #8785 issue is mis-handling of
  the SingalInterruptOnSelect exception. This message will
  be printed every time a signal is received during select().

Conflicts:
	src/bin/dhcp4/dhcp4_messages.mes
	src/bin/dhcp4/dhcp4_srv.cc
2015-08-20 14:56:26 +02:00
Francis Dupont
47f2e13646 [4006] removed pfto macros and some compiler junk conditionals 2015-08-18 12:25:31 +02:00
Thomas Markwalder
e9c58e3dc3 [master] Added ChangeLog entry 989 for #3997. trac4006_base 2015-08-13 11:04:50 -04:00
Thomas Markwalder
ce91bdd78f Merge branch 'trac3997' 2015-08-13 10:39:27 -04:00
Thomas Markwalder
6e249400a1 [3997] Address review comments
Minor comment cleanup.
2015-08-13 10:34:37 -04:00
Thomas Markwalder
ef1033c4c4 [3997] Corrected DHCP6 server crash on exit when DDNS is enabled
Rather that stopping it explicitly, the server was relying D2ClientMgr
to stop itself during its own destruction.  This was falling over during
process wind-down because the IfaceMgr singletone was being destroyed before
the D2ClientMgr instance.  The server destructor now explicitly stops the
D2ClientMgr.

src/bin/dhcp6/dhcp6_messages.mes
    added DHCP6_SRV_D2STOP_ERROR log message

src/bin/dhcp6/dhcp6_srv.cc
    Dhcpv6Srv::stopD2() - new method stops the NCR sender, causing it to
    unregister its WathSocket from IfaceMgr

    Dhcpv6Srv::~Dhcpv6Srv() - added call to Dhcpv6Srv::stopD2()

src/bin/dhcp6/tests/dhcp6_process_tests.sh.in
    Enabled DNS updates in the CONFIG string.  This ensures the D2
    client will be started during system tests
2015-08-12 16:28:55 -04:00
Thomas Markwalder
5e855328c8 [3997] Corrected DHCP4 server crash on exit when DDNS is enabled
Rather that stopping it explicitly, the server was relying D2ClientMgr
to stop itself during its own destruction.  This was falling over during
process wind-down because the IfaceMgr singletone was being destroyed before
the D2ClientMgr instance.
The server destructor now explicitly stops the D2ClientMgr.

src/bin/dhcp4/dhcp4_messages.mes
    added DHCP4_SRV_D2STOP_ERROR log message

src/bin/dhcp4/dhcp4_srv.cc
    Dhcpv4Srv::stopD2() - new method stops the NCR sender, causing it to
    unregister its WathSocket from IfaceMgr

    Dhcpv4Srv::~Dhcpv4Srv() - added call to Dhcpv4Srv::stopD2()

src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
    Enabled DNS updates in the CONFIG string.  This ensures the D2
    client will be started during system tests
2015-08-12 15:50:47 -04:00
Wlodek Wencel
ba81e891e7 [master] ChangeLog and dhcp6_messages reordered 2015-07-23 19:20:12 +02:00
Thomas Markwalder
223626338a [master] Corrected distcheck failure in cfgrpt
Merges branch 'trac3929'
2015-07-23 11:24:09 -04:00
Marcin Siodelski
380d6511af [master] Added ChangeLog entry for #3785. 2015-07-22 23:39:01 +02:00
Marcin Siodelski
a27d72ef3c [master] Merge branch 'trac3785' 2015-07-22 22:53:26 +02:00
Marcin Siodelski
e5701db4c9 [3785] Minor update to the gitignore for keactrl tests. 2015-07-22 22:49:38 +02:00
Marcin Siodelski
e97919a292 [3785] Simplified the unit test for keactrl status command. 2015-07-22 22:47:46 +02:00
Thomas Markwalder
c2c8a9087c [3929] pass input file path into mk_cfgrpt.sh
Added required input config report file parameter to
mk_cfgrpt.sh rather than having hard-coded by configure.

This allows cfgrpt/Makefile to pass in the pathname of
the report file it used in its "config_report.cc", as
the input report file.  In other words, we garuantee that
the file we used for change is the same file we generate
the source from.
2015-07-22 15:23:38 -04:00
Thomas Markwalder
37a9566461 [3929] Added basic unittests to src/lib/cfgrpt 2015-07-22 12:56:45 -04:00
Thomas Markwalder
7eaa1ec09c [3929] config_report.cc is now generated during src/lib/cfgrpt/Makefile
By generating config_report.cc in the cfgrpt directory Makefile
rather than configure, it can be treated as any other generated
source file, rather than a one-off special case.

Moved cfgrpt directory from bin to lib since it creates a library
rather than an executable.

mk_cfgrpt.sh is now generated by configure from a .in file and

Details:

configure.ac
   removed call to mk_cfgrpts.sh
   added mk_cfgprt.sh to list of files generated by configure

src/bin/Makefile.am
   removed cfgrpt dir

changed cfgrpt directory to lib
    src/bin/d2/Makefile.am
    src/bin/d2/tests/Makefile.am
    src/bin/dhcp4/Makefile.am
    src/bin/dhcp4/tests/Makefile.am
    src/bin/dhcp6/Makefile.am
    src/bin/dhcp6/tests/Makefile.am
    src/bin/lfc/Makefile.am
    src/bin/lfc/tests/Makefile.am
    src/bin/perfdhcp/Makefile.am
    src/bin/perfdhcp/tests/Makefile.am

src/lib/Makefile.am
    added cfgrpt dir

src/lib/cfgrpt/Makefile.am
    changed include dir to be in lib not dir
    added config_report.cc to CLEANFILES
    added config_report.cc to BUILD_SOURCES
    removed config_report.cc from libcfgrpt_la_SOURCES
    added rule for config_report.cc to call mk_cfgrpt.sh
2015-07-22 11:53:35 -04:00
Francis Dupont
576b7c95c7 [3785] Unembedded status_no_config_test 2015-07-22 16:45:29 +02:00
Francis Dupont
5c9becd5c7 [3785] Added missing files in .gitignore 2015-07-22 16:32:02 +02:00
Francis Dupont
f9e3fa0ea4 [3785] Terminated correctly .gitignore (i.e, added missing end of line) 2015-07-22 16:17:56 +02:00
Francis Dupont
a1e61f9165 [3785] Added *.saved to CLEANFILES 2015-07-22 16:14:55 +02:00
Marcin Siodelski
300f8f61ab [master] Added ChangeLog entry for #3959. 2015-07-21 23:37:05 +02:00
Marcin Siodelski
9045fd9d6d [master] Merge branch 'trac3959' 2015-07-21 23:34:55 +02:00
Wlodek Wencel
9b6ef162ea [3929] config_report.cc added to SOURCES 2015-07-21 18:23:02 +02:00
Wlodek Wencel
40f1ce356e [3929] mk_cfgrpt.sh added to EXTRA_DIST 2015-07-21 18:22:25 +02:00
Marcin Siodelski
1fd41f5e62 [3959] Fixed output from OptionIntArray::toText for uint8 values. 2015-07-21 17:50:25 +02:00
Marcin Siodelski
bc9b37ad3a [master] Added Changelog entry for 3958. 2015-07-21 10:07:11 +02:00
Marcin Siodelski
c86b6a6872 [master] Merge branch 'trac3958' 2015-07-21 10:05:44 +02:00
Marcin Siodelski
ff29b8b5cb [master] Merge branch 'trac3955' 2015-07-21 09:52:05 +02:00
Tomek Mrugalski
5ad7dc3492 [3955] Removed unnecessary whitespace chars. 2015-07-20 18:12:15 +02:00
Tomek Mrugalski
f3edafb8b8 [3955] Added version info for dhcp-ddns library 2015-07-20 18:10:27 +02:00
Tomek Mrugalski
2bc0480a83 [3955] Corrected duplicate initialization of LDFLAGS in cryptolink 2015-07-20 17:24:08 +02:00
Marcin Siodelski
e490a10cfe [master] Added ChangeLog entry for #3949. 2015-07-20 15:46:59 +02:00
Marcin Siodelski
023973cbce [master] Merge branch 'trac3949' 2015-07-20 15:31:03 +02:00
Marcin Siodelski
15df99746b [3958] Allocation engine allows for overriding the # of allocation attempts. 2015-07-19 14:01:27 +02:00
Marcin Siodelski
3946e8ad94 [3958] Fixed invalid number of allocation attampts in the log message. 2015-07-19 12:03:07 +02:00
Marcin Siodelski
f4bb35f799 [3955] Bumped up libs version numbers for the 0.9.2 release. 2015-07-19 11:19:45 +02:00
Tomek Mrugalski
ee25dc7dba [3958] Extra test for large (80 bits pool) configuration implemented. 2015-07-19 11:14:33 +02:00
Marcin Siodelski
22071c7155 [3958] Fixed the allocation from the large PD pool. 2015-07-19 10:06:07 +02:00
Thomas Markwalder
f0d1cb5315 [master] Added ChangeLog entry 984 for #3954 2015-07-17 06:43:31 -04:00
Thomas Markwalder
f7f22b2443 [master] keatctrl status can be run as non-root user
Merges branch 'trac3954'
2015-07-17 06:28:10 -04:00
Francis Dupont
e7f3658578 [master] Updated git hash 2015-07-17 08:48:24 +02:00
Francis Dupont
fdbe74b023 [master] Finished merge of trac3944 (posix date formatting) 2015-07-17 08:47:33 +02:00